From: Lars Ingebrigtsen Date: Sat, 22 Jan 2022 12:00:31 +0000 (+0100) Subject: Put the old label into the future history in reftex-change-label X-Git-Tag: emacs-29.0.90~2865 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=07f32fa70a219637f6872655ba46e5293e607df4;p=emacs.git Put the old label into the future history in reftex-change-label * lisp/textmodes/reftex-global.el (reftex-change-label): Put the old label into the future history so that it can be edited easily (bug#53417). --- diff --git a/lisp/textmodes/reftex-global.el b/lisp/textmodes/reftex-global.el index 5ab9ecd8db3..2dbb4484a71 100644 --- a/lisp/textmodes/reftex-global.el +++ b/lisp/textmodes/reftex-global.el @@ -184,8 +184,8 @@ No active TAGS table is required." default)))) (if (string= from "") (setq from default)) (unless to - (setq to (read-string (format "Replace label %s with: " - from)))) + (setq to (read-string (format "Replace label %s with: " from) + nil nil from))) (reftex-query-replace-document (concat "{" (regexp-quote from) "}") (format "{%s}" to))))