From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Draft mode Date: Wed, 07 Oct 2015 22:22:06 +0200 Message-ID: <87mvvujuoh.fsf@nicolasgoaziou.fr> References: <87io6w9p7y.fsf@nicolasgoaziou.fr> <87a8s89jp2.fsf@nicolasgoaziou.fr> <87twqe4607.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjvCO-00045h-8M for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 16:20:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjvCN-00044A-9r for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 16:20:28 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:39402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjvCN-00043b-0t for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 16:20:27 -0400 In-Reply-To: <87twqe4607.fsf@gmail.com> (Aaron Ecay's message of "Mon, 28 Sep 2015 21:56:56 +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: "Charles C. Berry" Cc: Org Mode List Hello, Aaron Ecay writes: > This is a very good point. OTOH, if backwards compatibility is going to > be broken, wouldn=E2=80=99t it be better to move to a keyword argument sy= stem? I'd like to avoid defun* as much as possible, because it may be harder to read. This is also the reason why it wasn't included in core Elisp. > On a different note, does this scheme make it possible for a backend > to see whether draft mode is enabled? It is possible with (memq 'draft (plist-get info :export-options)) However, Rasmus suggested to give up the export option and use a global variable, instead. > Latex provides a document-level draft option, which enables certain > optimizations that speed up compile times (for example, graphics are > not read in, but are replaced with a placeholder). It would be nice if > ox-latex could emit this in the latex code when draft mode is enabled > from the org side. It was also suggested that "draft" wasn't the most accurate description for this option. So, ultimately, it might not be related to LaTeX option "draft". Thank you for the feedback. Regards, --=20 Nicolas Goaziou