From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Mitchell Subject: Inconsistencies in email and author export Date: Thu, 13 Jan 2011 14:48:42 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=44268 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdOUN-0006Zj-Rh for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 09:49:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdOU2-0006Qe-DP for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 09:49:23 -0500 Received: from lo.gmane.org ([80.91.229.12]:39302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdOU2-0006QZ-53 for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 09:49:02 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PdOTy-0006NR-5J for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 15:48:58 +0100 Received: from e4300lm.epcc.ed.ac.uk ([129.215.63.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jan 2011 15:48:58 +0100 Received: from wence by e4300lm.epcc.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jan 2011 15:48:58 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org The decision for when to add email and author information to an exported document seems to be treated somewhat inconsistently between export backends. The intent appears to be that the global default for exporting the author's name is controlled by org-export-author-info, and the email by org-export-email-info. These can be overriden by options in the file of the form author:value and email:value respectively. To check whether a backend should export the relevant info it appears one should use: (if (plist-get opt-plist :author-info) ;; we can export author info now ) And similarly for email export. This obeys the file-local setting first and foremost and then falls back on the default value if no local setting is in effect. However, most backends do not seem to stick to this. For example org-docbook.el exports the author info unilaterally and the email info if org-export-email-info is non-nil. org-ascii.el exports the author info if org-export-author-info is non-nil and email if both org-export-author-info and org-export-email-info are non-nil. org-latex.el exports the author info if :author-info is non-nil in the options plist, and doesn't export the email info at all (see my recent patch fixing this). org-html.el uses org-export-author-info and org-export-email-info. It seems then that most backends do not pay attention to file-local settings, which does feel like a bug. Any thoughts? Cheers, Lawrence -- Lawrence Mitchell