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 22:09:57 +0200

Hi Nicolas,

2014-08-24 22:01 GMT+02:00 Nicolas Richard <address@hidden>:
> Hi Mosè,
>
> Mosè Giordano <address@hidden> writes:
>> 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.
>
> Here, it fails with an error:
> F TeX-command-expansion
>     (wrong-type-argument stringp nil)
> because when running the test, (buffer-file-name) returns nil.

Right, thank you so much!

Bye,
Mosè



reply via email to

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