emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e1d0632003: Fix up some string-edit.el strings


From: Lars Ingebrigtsen
Subject: master e1d0632003: Fix up some string-edit.el strings
Date: Mon, 25 Apr 2022 03:48:13 -0400 (EDT)

branch: master
commit e1d0632003157228650ba20d47cc607c0f9cae86
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix up some string-edit.el strings
    
    * lisp/textmodes/string-edit.el (string-edit)
    (read-string-from-buffer): Make doc strings use dynamic key
    bindings.
    (string-edit): Fix message at the end.
---
 lisp/textmodes/string-edit.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lisp/textmodes/string-edit.el b/lisp/textmodes/string-edit.el
index 2a4c9abfad..7c3b570224 100644
--- a/lisp/textmodes/string-edit.el
+++ b/lisp/textmodes/string-edit.el
@@ -37,10 +37,10 @@
 (cl-defun string-edit (string success-callback
                               &key abort-callback help-text)
   "Switch to a new buffer to edit STRING.
-When the user finishes editing (with `C-c C-c'), SUCCESS-CALLBACK
+When the user finishes editing (with 
\\<string-edit-mode-map>\\[string-edit-done]), SUCCESS-CALLBACK
 is called with the resulting string.
 
-If the user aborts (with `C-c C-k'), ABORT-CALLBACK (if any) is
+If the user aborts (with \\<string-edit-mode-map>\\[string-edit-abort]), 
ABORT-CALLBACK (if any) is
 called with no parameters.
 
 If present, HELP-TEXT will be inserted at the start of the
@@ -66,12 +66,12 @@ buffer, but won't be included in the resulting string."
   (setq-local string-edit--success-callback success-callback)
   (when abort-callback
     (setq-local string-edit--abort-callback abort-callback))
-  (message "%S" (substitute-command-keys
-                 "Type `C-c C-c' when you've finished editing")))
+  (message "%s" (substitute-command-keys
+                 "Type \\<string-edit-mode-map>\\[string-edit-done] when 
you've finished editing")))
 
 (defun read-string-from-buffer (string &optional help-text)
   "Switch to a new buffer to edit STRING in a recursive edit.
-The user finishes editing with `C-c C-c', or aborts with `C-c C-k').
+The user finishes editing with \\<string-edit-mode-map>\\[string-edit-done], 
or aborts with \\<string-edit-mode-map>\\[string-edit-abort]).
 
 If present, HELP-TEXT will be inserted at the start of the
 buffer, but won't be included in the resulting string."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]