From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH (v3)][ox-latex.el] Allow AUTO argument to org-latex-guess-babel-language. Date: Fri, 07 Jun 2013 15:25:29 +0200 Message-ID: <87fvwuvyra.fsf@gmail.com> References: <87sj12bwzj.fsf@pank.eu> <8661xvprju.fsf@somewhere.org> <87ehcj9uh7.fsf@pank.eu> <8638sz1e3b.fsf@somewhere.org> <87obbn8c36.fsf@pank.eu> <86wqqae5n4.fsf@somewhere.org> <87ppw26xe2.fsf_-_@pank.eu> <87y5aollyh.fsf@gmail.com> <87txlbylja.fsf_-_@pank.eu> <87r4gew128.fsf@gmail.com> <87li6mxdqc.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkwfU-00022C-Qi for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:25:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkwfS-0000L7-Tu for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:25:24 -0400 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:61906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkwfS-0000Ku-LB for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:25:22 -0400 Received: by mail-wg0-f47.google.com with SMTP id e11so3046941wgh.26 for ; Fri, 07 Jun 2013 06:25:21 -0700 (PDT) In-Reply-To: <87li6mxdqc.fsf@pank.eu> (rasmus@gmx.us's message of "Fri, 07 Jun 2013 15:16:43 +0200") 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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Nicolas Goaziou writes: >> I suggest to use something like this instead: >> >> (mapconcat (lambda (option) (if (equal "AUTO" option) language option)) >> (cond ((member language options) (delete "AUTO" options)) >> ((member "AUTO" options) options) >> (t (append options (list language))))) >> > > It looks more elegant. I'll try to incorporate it and prepare a v4. OK. But I forgot to add "," as mapconcat's third argument. >> Why do you need to use a non-nil FIXEDCASE argument here? > > When I don't > > #+LANGUAGE: en > #+LATEX_HEADER: \usepackage[AUTO]{babel} > > becomes > > \usepackage[ENGLISH]{babel}. . . Good point. Regards, -- Nicolas Goaziou