emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Enforcing drawer setup
@ 2011-04-01 12:47 Aankhen
  2011-04-01 17:01 ` Bernt Hansen
  0 siblings, 1 reply; 3+ messages in thread
From: Aankhen @ 2011-04-01 12:47 UTC (permalink / raw)
  To: Org-mode ml

Hi,

Is there any command I can run to put into effect my
‘org-log-into-drawer’ setting?  I recently changed it to ‘t’, but I
have a fair number of existing entries where it was ‘nil’, meaning
that the files as a whole look rather haphazardly organized.

Thanks,
Aankhen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Enforcing drawer setup
  2011-04-01 12:47 Enforcing drawer setup Aankhen
@ 2011-04-01 17:01 ` Bernt Hansen
  2011-04-01 19:00   ` Aankhen
  0 siblings, 1 reply; 3+ messages in thread
From: Bernt Hansen @ 2011-04-01 17:01 UTC (permalink / raw)
  To: Aankhen; +Cc: Org-mode ml

Aankhen <aankhen@gmail.com> writes:

> Hi,
>
> Is there any command I can run to put into effect my
> ‘org-log-into-drawer’ setting?  I recently changed it to ‘t’, but I
> have a fair number of existing entries where it was ‘nil’, 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Enforcing drawer setup
  2011-04-01 17:01 ` Bernt Hansen
@ 2011-04-01 19:00   ` Aankhen
  0 siblings, 0 replies; 3+ messages in thread
From: Aankhen @ 2011-04-01 19:00 UTC (permalink / raw)
  To: Bernt Hansen, Org-mode ml

Hi Bernt,

On Fri, Apr 1, 2011 at 22:31, Bernt Hansen <bernt@norang.ca> wrote:
> Aankhen <aankhen@gmail.com> writes:
>> Is there any command I can run to put into effect my
>> ‘org-log-into-drawer’ setting?  I recently changed it to ‘t’, but I
>> have a fair number of existing entries where it was ‘nil’, 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.

Yes, that was my first thought when I enabled logging into a drawer,
as I thought I’d read about it working that way, but unfortunately it
doesn’t seem to. :-( I appreciate the suggestion though.

Aankhen

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-01 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-01 12:47 Enforcing drawer setup Aankhen
2011-04-01 17:01 ` Bernt Hansen
2011-04-01 19:00   ` Aankhen

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).