mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-22 18:35:09 +00:00
* longlines.el (longlines-search-forward)
(longlines-search-backward): Match any number of spaces.
This commit is contained in:
parent
72147c533b
commit
625fca9a90
@ -1,3 +1,8 @@
|
||||
2005-10-16 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* longlines.el (longlines-search-forward)
|
||||
(longlines-search-backward): Match any number of spaces.
|
||||
|
||||
2005-10-16 Thien-Thi Nguyen <ttn@gnu.org>
|
||||
|
||||
* diff-mode.el (diff-mode): Doc fix.
|
||||
|
@ -398,11 +398,11 @@ This is called by `window-size-change-functions'."
|
||||
'longlines-search-backward))))
|
||||
|
||||
(defun longlines-search-forward (string &optional bound noerror count)
|
||||
(let ((search-spaces-regexp "[ \n]"))
|
||||
(let ((search-spaces-regexp "[ \n]+"))
|
||||
(re-search-forward (regexp-quote string) bound noerror count)))
|
||||
|
||||
(defun longlines-search-backward (string &optional bound noerror count)
|
||||
(let ((search-spaces-regexp "[ \n]"))
|
||||
(let ((search-spaces-regexp "[ \n]+"))
|
||||
(re-search-backward (regexp-quote string) bound noerror count)))
|
||||
|
||||
;; Loading and saving
|
||||
|
Loading…
Reference in New Issue
Block a user