From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: File local variables and export? Date: Tue, 5 May 2009 10:40:16 +0200 Message-ID: <0BC5E66D-AA3F-4D43-B830-E36C2EFFB434@gmail.com> References: <878wlcfzr0.fsf@sparse.dyndns.org> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1GCP-0004bQ-4Q for emacs-orgmode@gnu.org; Tue, 05 May 2009 04:40:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1GCK-0004a4-FM for emacs-orgmode@gnu.org; Tue, 05 May 2009 04:40:24 -0400 Received: from [199.232.76.173] (port=46111 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1GCK-0004Zu-8z for emacs-orgmode@gnu.org; Tue, 05 May 2009 04:40:20 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:38301) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1GCK-0002gW-4S for emacs-orgmode@gnu.org; Tue, 05 May 2009 04:40:20 -0400 Received: by ewy6 with SMTP id 6so4883792ewy.42 for ; Tue, 05 May 2009 01:40:19 -0700 (PDT) In-Reply-To: <878wlcfzr0.fsf@sparse.dyndns.org> 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: Jason Riedy Cc: emacs-orgmode@gnu.org On May 4, 2009, at 9:13 PM, Jason Riedy wrote: > I'm trying to change org-export-latex-image-default-option to > "width=.7\\linewidth" in a file local variable. It's set correctly > as a > buffer local variable, and it's having no effect on the export. My > guess is that the buffer-local property is stopping it as soon as > org-export-as-latex runs set-buffer. > > I can smuggle the value in by adding an entry to org-export-plist-vars > referring to org-export-latex-image-default-option and pulling the > value > from the plist, but that feels incorrect. To me it sounds correct, actually. I have added this, and will add other variables as needed. > > Am I missing something? Or should I look into grabbing > buffer-local-variables before set-buffer and setting the variables in > the output buffer? > > BTW, there's a typo in org-export-region-as-latex's docstring. > Replace > retunr with return... That pops up in the docbook export, too. ;) Fixed, thanks. - Carsten