Subject: Re: bug#34593: 12.1.1; selecting xelatex from command menu does not reset dvips or dvipdfmx switches

From: JF <[email-masked]>
Date: Tue, 16 Apr 2019 15:08:51 +0200

Hi Keita,

Le 02/04/2019 à 09:00, Ikumi Keita a écrit :
> Hi Jean, sorry for very late reply.
>
> I think that the attached patch will do the job.  However it just resets
> the "PDF from DVI" setting and doesn't restore it when you again change
> the engine to, say, "default".
> Is this what you wanted?  If so, I'll install this change.

Sorry for late confirmation. Yes your attached patch works for me.
Indeed it does not restore previous PDF from DVI setting when again
changing to default engine, but that's fine with me.

Thanks,

Jean-François

> Regards,
> Ikumi Keita
>
>>>>>> jfbu <[email-masked]> writes:
>> Hi,
>> Steps to reproduce.
>> Any latex document previously set-up to do latex+dvips+ps2pdf
>> (or dvipdfmx)
>> select XeTeX as TeX-engine from menu.
>> The dvips + ps2pdf (or dvipdfmx) option remains selected.
>> On C-cC-a  errors arise, because of course no dvi file is produced from xelatex run.
>> It takes a while until AUCTeX stops.
>> On the positive side, with
>> % Local variables:
>> % TeX-engine: xetex;
>> % End:
>
>> and C-cC-n
>> the PDF from Dvi is reset and no problem arises.
>> Could it be added that selecting "Use XeTeX engine" from menu automatically resets the "PDF from Dvi" setting ?