[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor a16f5e8 101/140: with-editor-usage-message: Ne
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/with-editor a16f5e8 101/140: with-editor-usage-message: New variable |
Date: |
Fri, 6 Aug 2021 12:51:28 -0400 (EDT) |
branch: elpa/with-editor
commit a16f5e88cd682faaae42f1240a6e035f9a219460
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
with-editor-usage-message: New variable
Modes can set that to display their own usage message instead
of the default one.
---
with-editor.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/with-editor.el b/with-editor.el
index a071c55..f8f4da8 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -440,15 +440,18 @@ And some tools that do not handle $EDITOR properly also
break."
(user-error (substitute-command-keys "\
Don't kill this buffer. Instead cancel using \\[with-editor-cancel]"))))
+(defvar-local with-editor-usage-message "\
+Type \\[with-editor-finish] to finish, \
+or \\[with-editor-cancel] to cancel")
+
(defun with-editor-usage-message ()
;; Run after `server-execute', which is run using
;; a timer which starts immediately.
(run-with-timer
- 0.05 nil `(lambda ()
- (with-current-buffer ,(current-buffer)
- (message (substitute-command-keys "\
-Type \\[with-editor-finish] to finish, \
-or \\[with-editor-cancel] to cancel"))))))
+ 0.05 nil
+ `(lambda ()
+ (with-current-buffer ,(current-buffer)
+ (message (substitute-command-keys with-editor-usage-message))))))
;;; Wrappers
- [nongnu] elpa/with-editor ebcbd3b 134/140: Use defvar-local instead of make-variable-buffer-local, (continued)
- [nongnu] elpa/with-editor ebcbd3b 134/140: Use defvar-local instead of make-variable-buffer-local, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 48e1b2d 082/140: with-editor-shell-command-use-emacsclient: Fix last modified info, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ac6b2e3 085/140: with-editor*: New macro, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 53dcd4d 106/140: Fix typos, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 590ff0b 124/140: manual: Use a favicon in html export, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor a339d65 126/140: with-editor-export-editor: Support vterm, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 5b62e6e 138/140: AUTHORS.md: Update list of contributors, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor f69daaf 084/140: with-editor-{finish, cancel}: Run post hooks in correct directory, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 76f238f 088/140: make: Remove leftover debug statement, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 23919ec 095/140: Release version 2.8.2, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor a16f5e8 101/140: with-editor-usage-message: New variable,
Jonas Bernoulli <=
- [nongnu] elpa/with-editor 45c29f9 103/140: Fix travis setup, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor f17d129 073/140: Rename COPYING file to LICENSE, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ad5bb00 078/140: Improve detection of remacs client in macOS, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor fb9fdde 079/140: manual: Use a preamble to make initial text collapsible, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 7ac5743 087/140: with-editor*: Correct debug declaration, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 9dd9f17 092/140: manual: Clarify with-editor-shell-command's description, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 38df9bf 094/140: manual: Prevent evaluation of code blocks, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 7b8520b 096/140: with-editor-kill-buffer-noop: When killing Emacs silently cancel, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 4f06aba 102/140: with-editor-usage-message: Cosmetics, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 19ebf53 104/140: Handle async-bytecomp-allowed-packages properly, Jonas Bernoulli, 2021/08/06