From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: [PATCH] Center currently clocked headline to top of screen
Date: Thu, 22 Aug 2013 10:36:00 +0200 [thread overview]
Message-ID: <861u5mgm1b.fsf@somewhere.org> (raw)
Hello,
When jumping to the currently clocked headline (via `C-c C-x C-j'), it seems
(to me) more logical to recenter that headline at the top of the screen (vs at
the center of the screen, that is the current behavior).
Here the patch to do so.
Best regards,
Seb
From dc2cabbab8ed13b47c310821447ac7c0ed58af55 Mon Sep 17 00:00:00 2001
From: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
Date: Thu, 22 Aug 2013 10:31:08 +0200
Subject: [PATCH] Move current headline to top of screen
---
lisp/org-clock.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 656fb4c..b7d2add 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1691,7 +1691,7 @@ With prefix arg SELECT, offer recently clocked tasks for selection."
(org-show-entry)
(org-back-to-heading t)
(org-cycle-hide-drawers 'children)
- (recenter)
+ (recenter 0)
(org-reveal)
(if recent
(message "No running clock, this is the most recently clocked task"))
--
1.7.9
--
Sebastien Vauban
next reply other threads:[~2013-08-22 8:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-22 8:36 Sebastien Vauban [this message]
2013-08-22 11:36 ` [PATCH] Center currently clocked headline to top of screen Daniel Clemente
2013-08-30 16:15 ` Carsten Dominik
2013-09-02 14:02 ` Sebastien Vauban
2013-09-02 14:16 ` Carsten Dominik
2013-09-10 9:57 ` Sebastien Vauban
2013-09-13 6:10 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=861u5mgm1b.fsf@somewhere.org \
--to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).