[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] org-clock-goto: switch to clicked window
From: |
Magnus Henoch |
Subject: |
[Orgmode] org-clock-goto: switch to clicked window |
Date: |
Fri, 19 Jun 2009 12:07:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) |
I just discovered that org-clock-in displays the clocked-in task in the
mode line, so that I can click it and go back to the Org file, which I
really like. I changed it to switch to the window in which I click,
by prepending "@" to the interactive spec of org-clock-goto.
Magnus
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 4825c1a..14d1158 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -729,7 +729,7 @@ If there is no running clock, throw an error, unless
FAIL-QUIETLY is set."
(defun org-clock-goto (&optional select)
"Go to the currently clocked-in entry, or to the most recently clocked one.
With prefix arg SELECT, offer recently clocked tasks for selection."
- (interactive "P")
+ (interactive "@P")
(let* ((recent nil)
(m (cond
(select
- [Orgmode] org-clock-goto: switch to clicked window,
Magnus Henoch <=