]> git.eshelyaron.com Git - emacs.git/commitdiff
Put the old label into the future history in reftex-change-label
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 22 Jan 2022 12:00:31 +0000 (13:00 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 22 Jan 2022 12:14:43 +0000 (13:14 +0100)
* 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).

lisp/textmodes/reftex-global.el

index 5ab9ecd8db3ff08a3287f0a7c35dc34d61543d11..2dbb4484a715c1f048da4d2df221378c4da59dd5 100644 (file)
@@ -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))))