summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-04-24 16:06:43 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-04-24 16:06:43 +0200
commit1a6fa4c5d51e105a90ab4c5f5f26a0e01f25500b (patch)
tree58e84562340854cbf3e7c63a5c80c462d4a0b4e2
parent07f8fafe6ba095bb5a811d947ad2772dad058d4f (diff)
downloademacs-1a6fa4c5d51e105a90ab4c5f5f26a0e01f25500b.tar.gz
Use `C-c C-k' instead of `C-c C-d' to abort in string-edit
* lisp/textmodes/string-edit.el (string-edit-mode-map): Use `C-c C-k' to abort.
-rw-r--r--lisp/textmodes/string-edit.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/textmodes/string-edit.el b/lisp/textmodes/string-edit.el
index 9f28fe773f0..2a4c9abfade 100644
--- a/lisp/textmodes/string-edit.el
+++ b/lisp/textmodes/string-edit.el
@@ -40,7 +40,7 @@
When the user finishes editing (with `C-c C-c'), SUCCESS-CALLBACK
is called with the resulting string.
-If the user aborts (with `C-c C-d'), ABORT-CALLBACK (if any) is
+If the user aborts (with `C-c C-k'), ABORT-CALLBACK (if any) is
called with no parameters.
If present, HELP-TEXT will be inserted at the start of the
@@ -71,7 +71,7 @@ buffer, but won't be included in the resulting string."
(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-d').
+The user finishes editing with `C-c C-c', or aborts with `C-c C-k').
If present, HELP-TEXT will be inserted at the start of the
buffer, but won't be included in the resulting string."
@@ -89,7 +89,7 @@ buffer, but won't be included in the resulting string."
(defvar-keymap string-edit-mode-map
"C-c C-c" #'string-edit-done
- "C-c C-d" #'string-edit-abort)
+ "C-c C-k" #'string-edit-abort)
(define-derived-mode string-edit-mode text-mode "String"
"Mode for editing strings."