diff lisp/longlines.el @ 66132:3fe20f1edf7b

* longlines.el (longlines-search-forward) (longlines-search-backward): Match any number of spaces.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 16 Oct 2005 23:46:15 +0000
parents b63142efae15
children ce840b1d13ad
line wrap: on
line diff
--- a/lisp/longlines.el	Sun Oct 16 21:49:00 2005 +0000
+++ b/lisp/longlines.el	Sun Oct 16 23:46:15 2005 +0000
@@ -398,11 +398,11 @@
       '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