From: Glenn Morris Date: Tue, 20 Aug 2002 20:23:25 +0000 (+0000) Subject: (imenu--generic-function): Use mapc. X-Git-Tag: ttn-vms-21-2-B4~13614 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5b89a8c974074c13e762c39575fa75733a00f769;p=emacs.git (imenu--generic-function): Use mapc. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 76af07968a7..4f25704b27e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2002-08-20 Glenn Morris + + * imenu.el (imenu--generic-function): Use mapc. + 2002-08-20 Richard M. Stallman * font-core.el (font-lock-change-mode): New function. diff --git a/lisp/imenu.el b/lisp/imenu.el index 3b06925c334..34c2ca19beb 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -788,8 +788,9 @@ PATTERNS." ;; The character(s) to modify may be a single char or a string. (if (numberp (car syn)) (modify-syntax-entry (car syn) (cdr syn) table) - (dolist (c (car syn)) - (modify-syntax-entry c (cdr syn) table)))) + (mapc (lambda (c) + (modify-syntax-entry c (cdr syn) table)) + (car syn)))) (goto-char (point-max)) (imenu-progress-message prev-pos 0 t) (unwind-protect ; for syntax table