* Damien Cassou (2010-12-11) writes:

> C-c C-c is encoded in your brain to compile your document. When you
> work on a big document (e.g., a thesis or book) you often want to
> compile just the current buffer. However, your fingers always press
> C-c C-c when you'd prefer them to type C-c C-b to compile the buffer
> only (and C-c C-c is easier to type). This results in a long time to
> compile the whole document when you'd prefer to have the result
> immediately.

It never occurred to me to compile the buffer only.  I always compile
the whole document.  But I see your point. (c:

> Solution:
>
> Use C-c C-c to compile either the whole document or the current buffer
> depending on a variable.

I see how this can be useful, but I'm not sure the meaning of `C-c C-c'
should become ambiguous when we also have `C-c C-b' and `C-c C-r'.

What do others think?  Any opinions?

> My patch contains:
>
> - a new boolean variable TeX-master-compilation to store the choice
> which defaults to t (= current behavior)
> - a new function TeX-toggle-master-compilation to toggle this variable
> - a new shortcut to call the function C-c C-t C-m (m = master)
> - an adaptation of the TeX-command-master (C-c C-c) function to
> compile either the document or the buffer depending on the variable

I'd probably rather make use of the variable `TeX-command-current' and
the functions that are already available for manipulating its value.
One would just need a user option that would make `C-c C-c' adhere to
its value as well, in contrast to the just the commands in the Command
menu as it is now.

-- 
Ralf

_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to