From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: AUCTeX conflicting with org-mode Date: Tue, 20 Mar 2012 15:48:23 +0100 Message-ID: References: <87sjhlxako.fsf@live.com> <20423.1331134740@alphaville> <3555.1331150405@alphaville> <4125.1331159402@alphaville> <87399jo9go.fsf@live.com> <87r4wnpmbn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA0Mn-0001ZZ-6D for emacs-orgmode@gnu.org; Tue, 20 Mar 2012 10:48:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SA0Mh-0003Df-B9 for emacs-orgmode@gnu.org; Tue, 20 Mar 2012 10:48:52 -0400 In-Reply-To: <87r4wnpmbn.fsf@gnu.org> 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: Bastien Cc: emacs-orgmode@gnu.org, Yagnesh Raghava Yakkala Hi Bastien and Yagnesh, On Tue, Mar 20, 2012 at 12:02, Bastien wrote: > Hi Yagnesh, > > Yagnesh Raghava Yakkala writes: > >> Thanks for the analysis. I think you are right. With my limited elisp skills I >> would say its a *bug* and coming from org. >> >> If I take that let-binding off and setting the TeX-master by checking with >> if it ever bound seems fixing this problem. >> >> this patch fixing the problem. (can be further improved) > > Applied, thanks. > I wanted to comment earlier but it slipped my mind, sorry about that. I am not sure if this patch is quite corect. It removes the let bind and instead conditionally uses setq to bind it to t. From the docs I see the variable becomes buffer local when set in any fashion, but does that still mean it is okay to use setq? I can imagine in a complicated publishing project, an org file might need to set the value to something. I suppose this will override any such custom config. Is my analysis correct? It might be worth thinking about before applying the patch. Is a conditional let binding possible, it might be the safer choice in that case. Thanks, -- Suvayu Open source is the future. It sets us free.