Function: reftex-change-label
reftex-change-label is an autoloaded, interactive and byte-compiled
function defined in reftex-global.el.gz.
Signature
(reftex-change-label &optional FROM TO)
Documentation
Run query-replace-regexp of FROM with TO in all macro arguments.
Works on the entire multifile document.
If you exit (C-g (keyboard-quit), RET or q), you can resume the query replace
with the command M-x tags-loop-continue (tags-loop-continue).
No active TAGS table is required.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex-global.el.gz
;;;###autoload
(defun reftex-change-label (&optional from to)
"Run `query-replace-regexp' of FROM with TO in all macro arguments.
Works on the entire multifile document.
If you exit (\\[keyboard-quit], RET or q), you can resume the query replace
with the command \\[tags-loop-continue].
No active TAGS table is required."
(interactive)
(let ((default (reftex-this-word "-a-zA-Z0-9_*.:")))
(unless from
(setq from (read-string (format "Replace label globally [%s]: "
default))))
(if (string= from "") (setq from default))
(unless to
(setq to (read-string (format "Replace label %s with: " from)
nil nil from)))
(reftex-query-replace-document
(concat "{" (regexp-quote from) "}")
(format "{%s}" to))))