Emacs Lisp 2
■ このスレッドは過去ログ倉庫に格納されています
0439デフォルトの名無しさん
NGNGbound も la-regexp にしたがって調整して
(when (and bound
(save-excursion
(let ((p (point)))
(goto-char bound)
(or (looking-at la-regexp)
(re-search-backward la-regexp p t)))))
(setq bound (max bound (match-end 0))))
こんな感じか。
count を指定した時の挙動が変だから最後は
(re-search-forward regexp bound noerror)
■ このスレッドは過去ログ倉庫に格納されています