bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 11.87; Bug in the expansion of %' in TeX-expand-list


From: Mosè Giordano
Subject: Re: [Bug-AUCTeX] 11.87; Bug in the expansion of %' in TeX-expand-list
Date: Sun, 24 Aug 2014 21:31:11 +0200

2014-08-24 20:06 GMT+02:00 Mosè Giordano <address@hidden>:
>> 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è



reply via email to

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