# HG changeset patch # User Juanma Barranquero # Date 1190718461 0 # Node ID b39ee0f351f1ed3b0a97d3302e43b5133b53d2d0 # Parent 534e99349c417581fb0687256e13410595439086 (hi-lock-write-interactive-patterns): Use `mapc' rather than `mapcar'. diff -r 534e99349c41 -r b39ee0f351f1 lisp/hi-lock.el --- a/lisp/hi-lock.el Tue Sep 25 11:07:06 2007 +0000 +++ b/lisp/hi-lock.el Tue Sep 25 11:07:41 2007 +0000 @@ -309,7 +309,7 @@ Write active REGEXPs into buffer as comments (if possible). They may be read the next time file is loaded or when the \\[hi-lock-find-patterns] command is issued. The inserted regexps are in the form of font lock keywords. - (See `font-lock-keywords'.) They may be edited and re-loaded with \\[hi-lock-find-patterns], + (See `font-lock-keywords'.) They may be edited and re-loaded with \\[hi-lock-find-patterns], any valid `font-lock-keywords' form is acceptable. When a file is loaded the patterns are read if `hi-lock-file-patterns-policy is 'ask and the user responds y to the prompt, or if @@ -515,7 +515,7 @@ (if (null hi-lock-interactive-patterns) (error "There are no interactive patterns")) (let ((beg (point))) - (mapcar + (mapc (lambda (pattern) (insert (format "%s: (%s)\n" hi-lock-file-patterns-prefix