summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien <bzg@gnu.org>2020-01-28 12:44:27 +0100
committerBastien <bzg@gnu.org>2020-01-28 12:44:27 +0100
commite9526b5a79e64f9d333693bed4ec96acf4c0f1cb (patch)
tree4045f5da8c44a65bf57803cbaeeebb2ac711c78b
parent82ebc73b921febbc346dea6a79535e1a43d6df1e (diff)
downloadorg-mode-e9526b5a79e64f9d333693bed4ec96acf4c0f1cb.tar.gz
Enhance C-c C-c in agenda buffers
* lisp/org-agenda.el (org-agenda-ctrl-c-ctrl-c): Don't try to deactivate columns as `org-columns-toggle-or-columns-quit' is already bound to `C-c C-c' when the column view is active. * lisp/org.el (org-ctrl-c-ctrl-c): Update docstring.
-rw-r--r--lisp/org-agenda.el4
-rw-r--r--lisp/org.el9
2 files changed, 7 insertions, 6 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 09ef069..09832c5 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -10546,9 +10546,9 @@ when defining today."
(org-agenda-todo arg)))
(defun org-agenda-ctrl-c-ctrl-c ()
- "If columns are active, deactivate them."
+ "Set tags in agenda buffer."
(interactive)
- (when org-agenda-columns-active (org-columns-quit)))
+ (org-agenda-set-tags))
(provide 'org-agenda)
diff --git a/lisp/org.el b/lisp/org.el
index 3fc3dad..90a6dbd 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17810,7 +17810,7 @@ Otherwise, return a user error."
This command does many different things, depending on context:
-- If column view is active, quit it.
+- If column view is active, in agenda or org buffers, quit it.
- If there are highlights, remove them.
@@ -17819,9 +17819,10 @@ This command does many different things, depending on context:
- If the cursor is on a statistics cookie, update it.
-- If the cursor is in a headline, prompt for tags and insert them
- into the current line, aligned to `org-tags-column'. When called
- with prefix arg, realign all tags in the current buffer.
+- If the cursor is in a headline, in an agenda or an org buffer,
+ prompt for tags and insert them into the current line, aligned
+ to `org-tags-column'. When called with prefix arg, realign all
+ tags in the current buffer.
- If the cursor is in one of the special #+KEYWORD lines, this
triggers scanning the buffer for these lines and updating the