From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] Reveal after goto Date: Sun, 28 Mar 2010 22:16:42 -0400 Message-ID: <1269829005-25254-2-git-send-email-bernt@norang.ca> References: <1269829005-25254-1-git-send-email-bernt@norang.ca> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nw4XP-0001nL-9a for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 22:17:11 -0400 Received: from [140.186.70.92] (port=33682 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nw4XN-0001n9-Gb for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 22:17:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nw4XK-0001S7-Q6 for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 22:17:09 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:62390) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nw4XK-0001RT-OA for emacs-orgmode@gnu.org; Sun, 28 Mar 2010 22:17:06 -0400 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Nw4XD-0002qC-Bk for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 02:16:59 +0000 In-Reply-To: <1269829005-25254-1-git-send-email-bernt@norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Bernt Hansen Occasionally when jumping to the last task we end up inside a folded region. This just reveals the headline to make editing easier. --- lisp/org-clock.el | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 1dbb08e..d8d1fe0 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1305,6 +1305,7 @@ With prefix arg SELECT, offer recently clocked tasks for selection." (org-back-to-heading t) (org-cycle-hide-drawers 'children) (recenter) + (org-reveal) (if recent (message "No running clock, this is the most recently clocked task")) (run-hooks 'org-clock-goto-hook))) -- 1.7.0.2.279.gf1ba1c