auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG]


From: Al Haji-Ali
Subject: Re: [BUG]
Date: Wed, 03 Feb 2021 17:57:38 +0000
User-agent: mu4e 1.5.8; emacs 27.1

On 03/02/2021, Uwe Brauer wrote:

>>>> "AH" == Al Haji-Ali <abdo.haji.ali@gmail.com> writes:
>
>> On 03/02/2021, Uwe Brauer wrote:
>
>
>>>> If you want to
>>>> include this in your emacs init to use a build directory by default
>>>> for all buffers be sure to use setq-default instead of setq.
>>>
>>> I am also not sure I see why I should use setq-default in this case. I
>>> thought I can use it say for abbrev
>>>
>> The new variable `TeX-build-dir` is a buffer-local variable.
>> When a new buffer is created, the default value of `TeX-build-dir` is nil,
>> unless you change the default value (after loading auctex) using 
>> `setq-default`.
>
>
>> To be clear, you can either set `TeX-build-dir` in a hook like 
>> `LaTeX-mode-hook` or in your init
>> file using `setq-default`. What would not work is setting `TeX-build-dir` 
>> using `setq` in your
>> init file.
>
>
> I don't want to sound nitpicking but I have
>
> (load "auctex.el" nil t t)
> (load "preview-latex.el" nil t t)
>
>
> (setq TeX-output-dir  "build"
>       TeX-region      "build/_region_")
>
> In my auctex init file and that works.
>
Apologies, you're right. I seem to have forgotten to make TeX-output-dir local 
(meaning it is global after all).

Please disregards my comments, at least until the discussion is settled on 
whether TeX-output-dir should be global or local.

Best regards,
-- Al



reply via email to

[Prev in Thread] Current Thread [Next in Thread]