comparison lisp/textmodes/reftex-toc.el @ 85195:718f0bcfdb7c

(reftex-toc-do-promote): Use mapc rather than mapcar.
author Glenn Morris <rgm@gnu.org>
date Fri, 12 Oct 2007 06:34:33 +0000
parents b6d25790aab2
children d38cf2bfafa5 d38543a1c0f9
comparison
equal deleted inserted replaced
85194:b4b8e47fe18b 85195:718f0bcfdb7c
616 (if (= 1 nsec) "" "s") 616 (if (= 1 nsec) "" "s")
617 sections))) 617 sections)))
618 nil ; we have permission, do nothing 618 nil ; we have permission, do nothing
619 (error "Abort")) ; abort, we don't have permission 619 (error "Abort")) ; abort, we don't have permission
620 ;; Do the changes 620 ;; Do the changes
621 (mapcar 'reftex-toc-promote-action entries) 621 (mapc 'reftex-toc-promote-action entries)
622 ;; Rescan the document and rebuilt the toc buffer 622 ;; Rescan the document and rebuilt the toc buffer
623 (save-window-excursion 623 (save-window-excursion
624 (reftex-toc-Rescan)) 624 (reftex-toc-Rescan))
625 (reftex-toc-restore-region start-line mark-line) 625 (reftex-toc-restore-region start-line mark-line)
626 (message "%d section%s %smoted" 626 (message "%d section%s %smoted"