From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Enforcing drawer setup Date: Fri, 01 Apr 2011 13:01:37 -0400 Message-ID: <87liztj47i.fsf@norang.ca> References: 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=51109 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5hjP-0001wM-HW for emacs-orgmode@gnu.org; Fri, 01 Apr 2011 13:01:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5hjI-0002r6-5C for emacs-orgmode@gnu.org; Fri, 01 Apr 2011 13:01:49 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:25339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5hjI-0002nW-2A for emacs-orgmode@gnu.org; Fri, 01 Apr 2011 13:01:48 -0400 In-Reply-To: (aankhen@gmail.com's message of "Fri, 1 Apr 2011 18:17:10 +0530") 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: Aankhen Cc: Org-mode ml Aankhen writes: > Hi, > > Is there any command I can run to put into effect my > =E2=80=98org-log-into-drawer=E2=80=99 setting? I 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. If 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. HTH, Bernt