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: Nicolas Richard
Subject: Re: [Bug-AUCTeX] 11.87; Bug in the expansion of %' in TeX-expand-list
Date: Sun, 24 Aug 2014 22:01:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux)

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. 

HTH,

-- 
Nico.




reply via email to

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