[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] Re: What is the difference between %s and %t in TeX-expand-list
From: |
Ralf Angeli |
Subject: |
[AUCTeX] Re: What is the difference between %s and %t in TeX-expand-list |
Date: |
Sat, 25 Sep 2010 20:32:43 +0200 |
* Mirko Vukovic (2010-09-24) writes:
> That info section is very nice. Now, the example uses %s in the
> command specification, while most of
> the commands use %t. The two are defined as follows:
>
> ("%s" file nil t)
> ("%t" file t t)
>
> What is the difference between the two. I did not follow the code in
> TeX-command-expand.
Yup, the code here is quite finicky. That's why I added a remark in
tex.el about what `file' does just above the lines of code you cited
above:
;; `file' means to call `TeX-master-file' or `TeX-region-file'
So with %s you get the file name without extension and with %t you get
it with extension.
Eventually all the extenders should be documented in the manual so that
people actually get to know and have a chance to use them.
--
Ralf