2014-08-24 20:06 GMT+02:00 Mosè Giordano <[email protected]>:
>> One can exhibit the problem by putting for instance %%%% before the %'
>> in a TeX-command-list entry. Normally, this sequence should expand to
>> %%. However, because of the bug, it is expanded a second time after %'
>> has been expanded, thus yielding a single %. This is illustrated in the
>> attached file auctex-bugtest.el.
>
> Thank you also for the recipe to reproduce the bug, I'll try to write
> an ERT test for it.
Does someone know why this test
--8<---------------cut here---------------start------------->8---
(require 'ert)
(require 'tex-buf)
(ert-deftest TeX-command-expansion ()
(should (string=
(progn
(add-to-list 'TeX-command-list
(cons "Test" '("%%%% %`%' %t" TeX-run-command t t)))
(TeX-command-expand (nth 1 (assoc "Test" TeX-command-list))
'TeX-master-file))
(concat
"%% \"\\input\" " (file-name-nondirectory (buffer-file-name))
".tex"))))
--8<---------------cut here---------------end--------------->8---
fails, though the `should' macro returns t? It seems I need to get
familiar with ERT.
Bye,
Mosè
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex