Mercurial > emacs
comparison lisp/imenu.el @ 36175:09e4cd51e147
(imenu--generic-function): Use mapc to iterate over
syntax characters.
author | Dave Love <fx@gnu.org> |
---|---|
date | Sun, 18 Feb 2001 16:41:13 +0000 |
parents | fc00137bf0bf |
children | b7c32154721a |
comparison
equal
deleted
inserted
replaced
36174:19101dffc5c1 | 36175:09e4cd51e147 |
---|---|
793 ;; Modify the syntax table used while matching regexps. | 793 ;; Modify the syntax table used while matching regexps. |
794 (while slist | 794 (while slist |
795 ;; The character(s) to modify may be a single char or a string. | 795 ;; The character(s) to modify may be a single char or a string. |
796 (if (numberp (caar slist)) | 796 (if (numberp (caar slist)) |
797 (modify-syntax-entry (caar slist) (cdar slist) table) | 797 (modify-syntax-entry (caar slist) (cdar slist) table) |
798 (dolist (c (caar slist)) | 798 (mapc (lambda (c) |
799 (modify-syntax-entry c (cdar slist) table))) | 799 (modify-syntax-entry c (cdar slist) table)) |
800 (caar slist))) | |
800 (setq slist (cdr slist))) | 801 (setq slist (cdr slist))) |
801 (goto-char (point-max)) | 802 (goto-char (point-max)) |
802 (imenu-progress-message prev-pos 0 t) | 803 (imenu-progress-message prev-pos 0 t) |
803 (unwind-protect ; for syntax table | 804 (unwind-protect ; for syntax table |
804 (save-match-data | 805 (save-match-data |