[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 07f32fa70a 2/3: Put the old label into the future history in reft
From: |
Lars Ingebrigtsen |
Subject: |
master 07f32fa70a 2/3: Put the old label into the future history in reftex-change-label |
Date: |
Sat, 22 Jan 2022 07:14:54 -0500 (EST) |
branch: master
commit 07f32fa70a219637f6872655ba46e5293e607df4
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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).
---
lisp/textmodes/reftex-global.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/textmodes/reftex-global.el b/lisp/textmodes/reftex-global.el
index 5ab9ecd8db..2dbb4484a7 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))))