Mercurial > emacs
comparison lisp/textmodes/reftex-toc.el @ 105170:f8ba8d6fd250
Fix typos.
* allout.el
* dired-aux.el
* dired-x.el
* epa-file.el
* ps-print.el
* shell.el
* vc-hooks.el
* vc-rcs.el
* vc-sccs.el
* vc.el
* view.el
* wdired.el
* emacs-lisp/authors.el
* net/dig.el
* net/socks.el
* net/zeroconf.el
* obsolete/vc-mcvs.el
* progmodes/gdb-mi.el
* progmodes/grep.el
* progmodes/idlw-help.el
* progmodes/idlw-shell.el
* progmodes/idlwave.el
* progmodes/inf-lisp.el
* textmodes/bibtex.el
* textmodes/ispell.el
* textmodes/reftex-toc.el
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 24 Sep 2009 01:37:14 +0000 |
parents | 17d2ae0948e2 |
children | df4934f25eef |
comparison
equal
deleted
inserted
replaced
105169:1d903e2f65af | 105170:f8ba8d6fd250 |
---|---|
673 ;; OK, get the makro name | 673 ;; OK, get the makro name |
674 (progn | 674 (progn |
675 (beginning-of-line 1) | 675 (beginning-of-line 1) |
676 (if (looking-at reftex-section-regexp) | 676 (if (looking-at reftex-section-regexp) |
677 (setq name (reftex-match-string 2)) | 677 (setq name (reftex-match-string 2)) |
678 (error "Something is wrong! Contact maintainer!"))) | 678 (error "Something is wrong! Contact maintainer!"))) |
679 ;; Section has changed, request scan and loading | 679 ;; Section has changed, request scan and loading |
680 ;; We use a variable to delay until after the safe-exc. | 680 ;; We use a variable to delay until after the safe-exc. |
681 ;; because otherwise we loose the region. | 681 ;; because otherwise we loose the region. |
682 (setq load t))) | 682 (setq load t))) |
683 ;; Scan document and load all files, this exits command | 683 ;; Scan document and load all files, this exits command |
779 label prefix determines the wording of a reference." | 779 label prefix determines the wording of a reference." |
780 (interactive) | 780 (interactive) |
781 (let* ((toc (get-text-property (point) :data)) | 781 (let* ((toc (get-text-property (point) :data)) |
782 (label (car toc)) newlabel) | 782 (label (car toc)) newlabel) |
783 (if (not (stringp label)) | 783 (if (not (stringp label)) |
784 (error "This is not a label entry.")) | 784 (error "This is not a label entry")) |
785 (setq newlabel (read-string (format "Rename label \"%s\" to:" label))) | 785 (setq newlabel (read-string (format "Rename label \"%s\" to:" label))) |
786 (if (assoc newlabel (symbol-value reftex-docstruct-symbol)) | 786 (if (assoc newlabel (symbol-value reftex-docstruct-symbol)) |
787 (if (not (y-or-n-p | 787 (if (not (y-or-n-p |
788 (format "Label '%s' exists. Use anyway? " label))) | 788 (format "Label '%s' exists. Use anyway? " label))) |
789 (error "Abort"))) | 789 (error "Abort"))) |