From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: prevent drawer from folding for specific subtree Date: Sun, 16 Dec 2012 19:02:09 +0100 Message-ID: <50CE0CA1.6050107@online.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkIXD-0008TV-Ae for emacs-orgmode@gnu.org; Sun, 16 Dec 2012 13:01:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TkIXC-0007jP-F5 for emacs-orgmode@gnu.org; Sun, 16 Dec 2012 13:01:55 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:51653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkIXC-0007jL-5f for emacs-orgmode@gnu.org; Sun, 16 Dec 2012 13:01:54 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: emacs-orgmode@gnu.org Am 14.12.2012 16:51, schrieb Rainer Stengele: > Hi all! > > I have subtrees which I do clock regularly, never closing them. > I always do have to adjust the clockings manually. > When I am bookmark-jumping to one of these subtrees and then clock in > the clock drawer is always closed - which normally is fine. But in this > case I would like to maybe have a property signaling the drawer to open > as soon as I do clock the task in. > > Any idea? > > Thanks, > Rainer > > > Hi again, what I really intended to get was this (see doc string) (defun rst/clock-organisation-todo () "jump to organisation todo, clock in and out, move starttime to previous full quarter of hour, endtime to following full quarter of hour, place point on starttime to be able to adjust the clockings" (interactive) (save-excursion (bookmark-jump "Organisation") (outline-previous-visible-heading 1) (show-subtree) (org-clock-in) (search-forward "CLOCK: ") (end-of-line) (backward-char 2) (org-shiftcontroldown) (org-clock-out) (org-shiftcontrolup) (org-shiftdown))) This will save me several keystrokes every day. Sorry this is beginners emacs lisp. Rainer