emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-clock-goto: switch to clicked window
@ 2009-06-19 11:07 Magnus Henoch
  2009-06-19 12:04 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Henoch @ 2009-06-19 11:07 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 508 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: org-clock-goto: switch to clicked window
  2009-06-19 11:07 org-clock-goto: switch to clicked window Magnus Henoch
@ 2009-06-19 12:04 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-06-19 12:04 UTC (permalink / raw)
  To: Magnus Henoch; +Cc: emacs-orgmode

Applied, thanks.

- Carsten

On Jun 19, 2009, at 1:07 PM, Magnus Henoch wrote:

> 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
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-19 12:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-19 11:07 org-clock-goto: switch to clicked window Magnus Henoch
2009-06-19 12:04 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).