aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2007-09-25 11:07:41 +0000
committerJuanma Barranquero2007-09-25 11:07:41 +0000
commitee44464cb40474d96920528f5bfdca35e35adc2a (patch)
tree7e25e0ae30e5ca9d4d6e8a8637a43e2da897c2c9
parentcc6650afd62e15a828d7f751dba72ca096d647f6 (diff)
downloademacs-ee44464cb40474d96920528f5bfdca35e35adc2a.tar.gz
emacs-ee44464cb40474d96920528f5bfdca35e35adc2a.zip
(hi-lock-write-interactive-patterns): Use `mapc' rather than `mapcar'.
-rw-r--r--lisp/hi-lock.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el
index b5e62e7a909..d65dd01ee1c 100644
--- a/lisp/hi-lock.el
+++ b/lisp/hi-lock.el
@@ -309,7 +309,7 @@ called interactively, are:
309 Write active REGEXPs into buffer as comments (if possible). They may 309 Write active REGEXPs into buffer as comments (if possible). They may
310 be read the next time file is loaded or when the \\[hi-lock-find-patterns] command 310 be read the next time file is loaded or when the \\[hi-lock-find-patterns] command
311 is issued. The inserted regexps are in the form of font lock keywords. 311 is issued. The inserted regexps are in the form of font lock keywords.
312 (See `font-lock-keywords'.) They may be edited and re-loaded with \\[hi-lock-find-patterns], 312 (See `font-lock-keywords'.) They may be edited and re-loaded with \\[hi-lock-find-patterns],
313 any valid `font-lock-keywords' form is acceptable. When a file is 313 any valid `font-lock-keywords' form is acceptable. When a file is
314 loaded the patterns are read if `hi-lock-file-patterns-policy is 314 loaded the patterns are read if `hi-lock-file-patterns-policy is
315 'ask and the user responds y to the prompt, or if 315 'ask and the user responds y to the prompt, or if
@@ -515,7 +515,7 @@ be found in variable `hi-lock-interactive-patterns'."
515 (if (null hi-lock-interactive-patterns) 515 (if (null hi-lock-interactive-patterns)
516 (error "There are no interactive patterns")) 516 (error "There are no interactive patterns"))
517 (let ((beg (point))) 517 (let ((beg (point)))
518 (mapcar 518 (mapc
519 (lambda (pattern) 519 (lambda (pattern)
520 (insert (format "%s: (%s)\n" 520 (insert (format "%s: (%s)\n"
521 hi-lock-file-patterns-prefix 521 hi-lock-file-patterns-prefix