From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: koma letter exporter: changing the priority of options Date: Mon, 22 Jul 2013 14:42:47 +0200 Message-ID: References: <20130609180059.GA2104@kenny.local> <874nd6we8q.fsf@pank.eu> <20130720115503.GA67549@kenny.local> <87li4z5906.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1FRx-0004YJ-0g for emacs-orgmode@gnu.org; Mon, 22 Jul 2013 08:42:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1FRv-0002TA-6T for emacs-orgmode@gnu.org; Mon, 22 Jul 2013 08:42:48 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:61077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1FRv-0002Sw-0D for emacs-orgmode@gnu.org; Mon, 22 Jul 2013 08:42:47 -0400 In-reply-to: <87li4z5906.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Rasmus Hello Nicolas, n.goaziou@gmail.com writes: > Hello, > > Alan Schmitt writes: > >> Yes, this is not satisfactory (and the email and author is also >> problematic in this regard). We need to know whether an option was set >> in the file, independently of its default value. Is there a way to do >> this? > > I didn't follow this thread closely, but to answer your question, you > can add the following option: > > (:email-changed-in-buffer-p "EMAIL" nil nil t) > > If (plist-get info :email-changed-in-buffer-p) is non-nil, email was set > from a buffer keyword. This is a promising approach. Unfortunately I cannot make it work: email-changed-in-buffer-p is always equal to nil, even with an EMAIL in the buffer (which I see picked up during export). Here is what I have. This is the code to set up the EMAIL keyword: (:email "EMAIL" nil (org-koma-letter--get-custom org-koma-letter-email) t) (:email-changed-in-buffer-p "EMAIL" nil nil t) Do we agree there should be two entries for "EMAIL"? Thanks, Alan