[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] AUCTeX suggests wrong default command
From: |
Mosè Giordano |
Subject: |
Re: [AUCTeX-devel] AUCTeX suggests wrong default command |
Date: |
Thu, 1 Jun 2017 22:10:25 +0200 |
Hi!
2017-06-01 16:57 GMT+02:00 Ikumi Keita <address@hidden>:
> Hi all,
>
> If a document is divided into multiple files, in a subfile not placed in
> `TeX-master-directory', AUCTeX suggests wrong default command for
> actions on the region such as C-c C-r and C-c C-b.
> By the same reason, C-u C-c C-a also fails.
> I think the attached fix is necessary.
>
> [How to confirm]
> 1. Extract the attached files under /tmp .
> 2. Open /tmp/childdir/child.tex and put the region on arbitrary text.
> 3. Type C-c C-r. AUCTeX suggests "LaTeX" as default command. This is
> OK.
> 4. Type RET to accept the default. The file is typeset normally. Then
> type C-c C-r again. AUCTeX suggests "LaTeX" as default again. This
> is not what should be. Since the sample files are so simple, the
> right default here is "View".
> 5. Type RET to accept the default. Of course the file is typeset
> without problem. Type C-c C-r again. AUCTeX suggests "LaTeX" as
> default again. Even if you repeat typing C-c C-r RET, AUCTeX always
> suggests "LaTeX" as default, never "View".
> 6. If you type C-u C-c C-a instead of C-c C-r, the sequence repeats
> "LaTeX" commands and stops with the message `Stopping after running
> "LaTeX" 4 times in a row.'
>
> As always, comments and suggestions are welcome.
The patch looks good to me, thanks!
Bye,
Mosè