[Top][All Lists]

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

Re: [AUCTeX-devel] GNU AUCTeX branch, master, updated. e2b24137ddfcda625

From: Tassilo Horn
Subject: Re: [AUCTeX-devel] GNU AUCTeX branch, master, updated. e2b24137ddfcda625264d513da6de3bb0b5270b3
Date: Fri, 04 Sep 2015 13:47:09 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Mosè Giordano <address@hidden> writes:

>>>     * tex-buf.el (TeX-command-run-all): Use `universal-argument' to
>>>     reference C-u.
>> Do you know why \\[universal-argument] expands to `C-u' in
>> `TeX-command-run-all's docstring but \\[TeX-command-run-all] expands to
>> `M-x TeX-command-run-all' instead of `C-c C-a'?
> Probably depends on the map in effect when you read the docstring: if
> you're in an elisp buffer you'll see `M-x TeX-command-run-all', if
> you're in a TeX buffer you'll get it expanded to C-c C-a.

Sure, but I am in a latex buffer and still get:

,----[ C-h k C-c C-a ]
| C-c C-a runs the command TeX-command-run-all, which is an interactive
| autoloaded compiled Lisp function in ‘tex-buf.el’.
| It is bound to C-c C-a.
| (TeX-command-run-all ARG)
| Compile the current document until an error occurs or it is finished.
| With a prefix ARG (‘C-u M-x TeX-command-run-all’),
| compile the current region instead, e.g, call
| ‘TeX-command-run-all-region’.  With multiple prefix
| arguments (‘C-u C-u M-x TeX-command-run-all’),
| compile the current section instead, e.g. call
| ‘LaTeX-command-run-all-section’.

So obviously emacs knows that it is bound to C-c C-a but \\[...] does

> A \\<TeX-mode-map> before \\[TeX-command-run-all] fixes this.

But then it would show the binding also if you were in some non-tex
buffer which seems wrong to me.  Ok, in a non-tex buffer there is no
reason to invoke it at all, but...


reply via email to

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