From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aankhen Subject: Re: Enforcing drawer setup Date: Sat, 2 Apr 2011 00:30:33 +0530 Message-ID: References: <87liztj47i.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=53299 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5jaZ-0002P6-Ck for emacs-orgmode@gnu.org; Fri, 01 Apr 2011 15:00:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5jaY-0005nR-3G for emacs-orgmode@gnu.org; Fri, 01 Apr 2011 15:00:55 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:50070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5jaX-0005nL-WE for emacs-orgmode@gnu.org; Fri, 01 Apr 2011 15:00:54 -0400 Received: by vws4 with SMTP id 4so3826674vws.0 for ; Fri, 01 Apr 2011 12:00:53 -0700 (PDT) In-Reply-To: <87liztj47i.fsf@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: Bernt Hansen , Org-mode ml Hi Bernt, On Fri, Apr 1, 2011 at 22:31, Bernt Hansen wrote: > Aankhen writes: >> Is there any command I can run to put into effect my >> =E2=80=98org-log-into-drawer=E2=80=99 setting? =C2=A0I recently changed = it to =E2=80=98t=E2=80=99, but I >> have a fair number of existing entries where it was =E2=80=98nil=E2=80= =99, meaning >> that the files as a whole look rather haphazardly organized. >> >> Thanks, >> Aankhen > > Hi Aankhen, > > There's not built-in function to accomplish this that I am aware of. > > This is a bit of a hack but it will probably get you the result you > want. =C2=A0If you set org-clock-into-drawer to the drawer than you want = and > set org-clock-out-remove-zero-time-clocks then you can visit each > heading using some elisp code, clock in and immediately clock out the > headline and it should create a drawer and wrap your existing data. > > I haven't actually done this... so YMMV. Yes, that was my first thought when I enabled logging into a drawer, as I thought I=E2=80=99d read about it working that way, but unfortunately = it doesn=E2=80=99t seem to. :-( I appreciate the suggestion though. Aankhen