emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] kill contents of a headline, but retain properties


From: Matt Price
Subject: Re: [O] kill contents of a headline, but retain properties
Date: Fri, 7 Aug 2015 10:21:30 -0400



On Fri, Aug 7, 2015 at 9:01 AM, Nicolas Goaziou <address@hidden> wrote:
Hello,

Matt Price <address@hidden> writes:

> I have a headline like this:
>
> * Gradebook
> :PROPERTIES:
> :CUSTOM_ID: gradebook
> :END:
>
> some content etc etc etc.
>
> I would like to be able to replace the contents of that headline
> automatically, but retain the properties.

  (org-link-search "[[#gradebook]]")

  (delete-region (org-end-of-meta-data)
                 (progn (outline-next-heading) (point)))


Thanks for the wizardry, Nicolas.  Very helpful.
You can also create contents with a dynamic block, which will replace
contents at each update.

can you just provide a skeletal example so I understand better wha that means?  thanks so much!
 
Regards,

--
Nicolas Goaziou


reply via email to

[Prev in Thread] Current Thread [Next in Thread]