summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-10-21 01:31:18 -0400
committerKyle Meyer <kyle@kyleam.com>2017-10-21 01:31:29 -0400
commit33ca07b5df2a67f3e2bb4fdb3858cd009d19a646 (patch)
treecddd3a27bdf948951f7e774979af6db2b0718da6
parent620ba14460e67391e76de4570749fe5d92eccc95 (diff)
downloadorg-mode-33ca07b5df2a67f3e2bb4fdb3858cd009d19a646.tar.gz
org-agenda: Fix the display of more key substitutions
* lisp/org-agenda.el (org-todo-list): (org-tags-view): Specify the keymap for the substitute-command-keys call because, as of b6c5a174d, this call is made outside of the agenda buffer. The substitute-command-keys call in org-search-view is already taken care of by 48f333805.
-rw-r--r--lisp/org-agenda.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index fb5448e..fce0b4b 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4710,7 +4710,7 @@ for a keyword. A numeric prefix directly selects the Nth keyword in
(setq pos (point))
(unless org-agenda-multi
(insert (substitute-command-keys "Available with \
-`N \\[org-agenda-redo]': (0)[ALL]"))
+\\<org-agenda-mode-map>`N \\[org-agenda-redo]': (0)[ALL]"))
(let ((n 0))
(dolist (k kwds)
(let ((s (format "(%d)%s" (cl-incf n) k)))
@@ -4810,7 +4810,8 @@ The prefix arg TODO-ONLY limits the search to TODO entries."
(setq pos (point))
(unless org-agenda-multi
(insert (substitute-command-keys
- "Press `\\[universal-argument] \\[org-agenda-redo]' \
+ "Press \
+\\<org-agenda-mode-map>`\\[universal-argument] \\[org-agenda-redo]' \
to search again with new search string\n")))
(add-text-properties pos (1- (point))
(list 'face 'org-agenda-structure))