diff options
| author | Lars Ingebrigtsen | 2022-04-25 09:47:54 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-04-25 09:47:54 +0200 |
| commit | e1d0632003157228650ba20d47cc607c0f9cae86 (patch) | |
| tree | 91971e3cb011c7f05147d4141726909384ba2719 /lisp/textmodes/string-edit.el | |
| parent | 91175a1fae92d521377bde8687d96b17556d1458 (diff) | |
| download | emacs-e1d0632003157228650ba20d47cc607c0f9cae86.tar.gz emacs-e1d0632003157228650ba20d47cc607c0f9cae86.zip | |
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.
Diffstat (limited to 'lisp/textmodes/string-edit.el')
| -rw-r--r-- | lisp/textmodes/string-edit.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/textmodes/string-edit.el b/lisp/textmodes/string-edit.el index 2a4c9abfade..7c3b5702248 100644 --- a/lisp/textmodes/string-edit.el +++ b/lisp/textmodes/string-edit.el | |||
| @@ -37,10 +37,10 @@ | |||
| 37 | (cl-defun string-edit (string success-callback | 37 | (cl-defun string-edit (string success-callback |
| 38 | &key abort-callback help-text) | 38 | &key abort-callback help-text) |
| 39 | "Switch to a new buffer to edit STRING. | 39 | "Switch to a new buffer to edit STRING. |
| 40 | When the user finishes editing (with `C-c C-c'), SUCCESS-CALLBACK | 40 | When the user finishes editing (with \\<string-edit-mode-map>\\[string-edit-done]), SUCCESS-CALLBACK |
| 41 | is called with the resulting string. | 41 | is called with the resulting string. |
| 42 | 42 | ||
| 43 | If the user aborts (with `C-c C-k'), ABORT-CALLBACK (if any) is | 43 | If the user aborts (with \\<string-edit-mode-map>\\[string-edit-abort]), ABORT-CALLBACK (if any) is |
| 44 | called with no parameters. | 44 | called with no parameters. |
| 45 | 45 | ||
| 46 | If present, HELP-TEXT will be inserted at the start of the | 46 | 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." | |||
| 66 | (setq-local string-edit--success-callback success-callback) | 66 | (setq-local string-edit--success-callback success-callback) |
| 67 | (when abort-callback | 67 | (when abort-callback |
| 68 | (setq-local string-edit--abort-callback abort-callback)) | 68 | (setq-local string-edit--abort-callback abort-callback)) |
| 69 | (message "%S" (substitute-command-keys | 69 | (message "%s" (substitute-command-keys |
| 70 | "Type `C-c C-c' when you've finished editing"))) | 70 | "Type \\<string-edit-mode-map>\\[string-edit-done] when you've finished editing"))) |
| 71 | 71 | ||
| 72 | (defun read-string-from-buffer (string &optional help-text) | 72 | (defun read-string-from-buffer (string &optional help-text) |
| 73 | "Switch to a new buffer to edit STRING in a recursive edit. | 73 | "Switch to a new buffer to edit STRING in a recursive edit. |
| 74 | The user finishes editing with `C-c C-c', or aborts with `C-c C-k'). | 74 | The user finishes editing with \\<string-edit-mode-map>\\[string-edit-done], or aborts with \\<string-edit-mode-map>\\[string-edit-abort]). |
| 75 | 75 | ||
| 76 | If present, HELP-TEXT will be inserted at the start of the | 76 | If present, HELP-TEXT will be inserted at the start of the |
| 77 | buffer, but won't be included in the resulting string." | 77 | buffer, but won't be included in the resulting string." |