From e9526b5a79e64f9d333693bed4ec96acf4c0f1cb Mon Sep 17 00:00:00 2001 From: Bastien Date: Tue, 28 Jan 2020 12:44:27 +0100 Subject: [PATCH] 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. --- lisp/org-agenda.el | 4 ++-- lisp/org.el | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 09ef069ac..09832c5eb 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 3fc3dade3..90a6dbdf7 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