From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: How to call org-set-property from a function Date: Wed, 06 Jan 2016 01:53:12 +0100 Message-ID: <87egdvle9z.fsf@gmx.us> References: <87r3hv8yid.fsf@free.fr> <87bn8zmzlk.fsf@gmx.us> <877fjn8w2w.fsf@free.fr> <87ziwjlhxg.fsf@gmx.us> <87si2b7da5.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGcLz-0004OW-7W for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 19:53:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGcLv-00047B-V1 for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 19:53:31 -0500 Received: from plane.gmane.org ([80.91.229.3]:41832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGcLv-000476-Or for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 19:53:27 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aGcLu-0006kM-KK for emacs-orgmode@gnu.org; Wed, 06 Jan 2016 01:53:26 +0100 Received: from x4db0e905.dyn.telefonica.de ([77.176.233.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Jan 2016 01:53:26 +0100 Received: from rasmus by x4db0e905.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Jan 2016 01:53:26 +0100 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: emacs-orgmode@gnu.org Julien Cubizolles writes: > Rasmus writes: > > >> For more fine grained control you probably need to write something akin to >> org-set-property and check the actual values (e.g. to signal quit if an >> empty quote is returned). > > Actually, shouldn't org-set-property check for an empty quote for the > property name since it will result :: ie a malformed drawer  It's a bug. http://orgmode.org/worg/dev/org-syntax.html#Node_Properties Please start a new thread, and feel free to suggest a patch. Thanks, Rasmus -- One thing that is clear: it's all down hill from here