From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Riedy Subject: File local variables and export? Date: Mon, 04 May 2009 15:13:07 -0400 Message-ID: <878wlcfzr0.fsf@sparse.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M13bQ-000255-7k for emacs-orgmode@gnu.org; Mon, 04 May 2009 15:13:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M13bL-00024s-QB for emacs-orgmode@gnu.org; Mon, 04 May 2009 15:13:23 -0400 Received: from [199.232.76.173] (port=42817 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M13bL-00024p-Lf for emacs-orgmode@gnu.org; Mon, 04 May 2009 15:13:19 -0400 Received: from main.gmane.org ([80.91.229.2]:38155 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M13bL-0007O2-55 for emacs-orgmode@gnu.org; Mon, 04 May 2009 15:13:19 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M13bJ-0003rt-Jf for emacs-orgmode@gnu.org; Mon, 04 May 2009 19:13:17 +0000 Received: from fttb-92-150.bvunet.net ([69.27.92.150]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 May 2009 19:13:17 +0000 Received: from jason by fttb-92-150.bvunet.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 May 2009 19:13:17 +0000 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 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. 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. ;) Jason