From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: kill contents of a headline, but retain properties Date: Fri, 07 Aug 2015 15:01:08 +0200 Message-ID: <87614rtfqj.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNhFG-0001q4-EW for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 08:59:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNhFF-0005FN-PF for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 08:59:34 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:45456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNhFF-0005F1-IZ for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 08:59:33 -0400 In-Reply-To: (Matt Price's message of "Fri, 7 Aug 2015 08:44:16 -0400") 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 To: Matt Price Cc: Org Mode Hello, Matt Price 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))) You can also create contents with a dynamic block, which will replace contents at each update. Regards, -- Nicolas Goaziou