# HG changeset patch # User Glenn Morris # Date 1029874860 0 # Node ID 54ce0e6e293ff7b51481dce7ef4406561ff1bb68 # Parent abdfba946eef47a11f3d927abbe4caadc2e372a7 (imenu--generic-function): Use mapc. diff -r abdfba946eef -r 54ce0e6e293f lisp/imenu.el --- a/lisp/imenu.el Tue Aug 20 17:28:55 2002 +0000 +++ b/lisp/imenu.el Tue Aug 20 20:21:00 2002 +0000 @@ -788,8 +788,9 @@ ;; 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