From: Chong Yidong Date: Sun, 16 Oct 2005 23:46:15 +0000 (+0000) Subject: * longlines.el (longlines-search-forward) X-Git-Tag: emacs-pretest-22.0.90~6569 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=625fca9a902a069f814c7b1a3fa2306090b16d97;p=emacs.git * longlines.el (longlines-search-forward) (longlines-search-backward): Match any number of spaces. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5ac616dbe46..b448ead1d47 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2005-10-16 Chong Yidong + + * longlines.el (longlines-search-forward) + (longlines-search-backward): Match any number of spaces. + 2005-10-16 Thien-Thi Nguyen * diff-mode.el (diff-mode): Doc fix. diff --git a/lisp/longlines.el b/lisp/longlines.el index 9665931e046..00a2782d0a3 100644 --- a/lisp/longlines.el +++ b/lisp/longlines.el @@ -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