[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb 2aab7c3 433/449: [gnorb] Use substitute-command-k
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb 2aab7c3 433/449: [gnorb] Use substitute-command-keys |
Date: |
Fri, 27 Nov 2020 23:16:27 -0500 (EST) |
branch: externals/gnorb
commit 2aab7c374a3d701e728cf8473d23c2ab5c83e193
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
[gnorb] Use substitute-command-keys
* packages/gnorb/gnorb-gnus.el (gnorb-gnus-hint-relevant-message):
Instead of fudging it myself with `where-is-internal' and
`key-description'.
---
gnorb-gnus.el | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/gnorb-gnus.el b/gnorb-gnus.el
index 9c6e354..ff69220 100644
--- a/gnorb-gnus.el
+++ b/gnorb-gnus.el
@@ -967,19 +967,15 @@ option `gnorb-gnus-hint-relevant-article' is non-nil."
(assoc-heading
(gnus-registry-get-id-key
(gnus-fetch-original-field "message-id") 'gnorb-ids))
- (tracked-headings (gnorb-find-tracked-headings headers))
- (key
- (where-is-internal 'gnorb-gnus-incoming-do-todo
- nil t)))
+ (tracked-headings (gnorb-find-tracked-headings headers)))
(cond (assoc-heading
(message "Message is associated with %s"
(gnorb-pretty-outline (car assoc-heading) t)))
(tracked-headings
- (message "Possible relevant todo %s, trigger with %s"
- (gnorb-pretty-outline (car tracked-headings) t)
- (if key
- (key-description key)
- "M-x gnorb-gnus-incoming-do-todo")))
+ (message
+ (substitute-command-keys
+ "Possible relevant todo %s, trigger with
\\[gnorb-gnus-incomding-do-todo]")
+ (gnorb-pretty-outline (car tracked-headings) t)))
(t nil)))))
(defun gnorb-gnus-insert-format-letter-maybe (header)
- [elpa] externals/gnorb 42ba9d9 347/449: Change the gnus hook to use for hinting, (continued)
- [elpa] externals/gnorb 42ba9d9 347/449: Change the gnus hook to use for hinting, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e17a402 353/449: Mess with TODOs in README.org, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb b53c93f 354/449: Enormous quantities of compiler-inspired fixes, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4a8fa84 369/449: Fix nnir search routine, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb dfb2acd 375/449: Bug fix in mail tracking extraction, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb de4b0e8 145/449: Associate outgoing messages with arbitrary headings, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 0f18c45 311/449: Allow persistent nnir search groups, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4f62ec8 374/449: Fix inevitable screwup in previous commit, bump version, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3b81d8c 377/449: Don't mark the 'artno key as precious, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5a88948 382/449: Fix gnorb-version command, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 2aab7c3 433/449: [gnorb] Use substitute-command-keys,
Stefan Monnier <=
- [elpa] externals/gnorb afafa8a 424/449: * gnorb/gnorb-registry.el: Fix compilation warnings, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 16f1ab6 183/449: Make gnorb-registry-make-entry more careful, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e07c4cf 194/449: Refactor splitting of message reference headers, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a0b039c 199/449: Probably shouldn't use assoc as a symbol, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4cfd40c 207/449: Rework gnorb-org-handle-mail to use tracking, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 357c9c6 220/449: Always append function to message-exit-actions, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb cffdd60 221/449: Warn people of impending changes in README, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 294e1eb 224/449: Fix calls to gnorb-trigger-todo-action, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 73b7f47 227/449: Use org-element-map's arguments properly, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 82d1e46 230/449: New gnorb.org file, and elpaignore, Stefan Monnier, 2020/11/27