bug-auctex
[Top][All Lists]
Advanced

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

bug#45985: (void-variable file) after upgrade to AUCTeX 13.0.3


From: Tassilo Horn
Subject: bug#45985: (void-variable file) after upgrade to AUCTeX 13.0.3
Date: Wed, 20 Jan 2021 11:08:15 +0100
User-agent: mu4e 1.5.7; emacs 28.0.50

Ikumi Keita <ikumi@ikumi.que.jp> writes:

>> You are right, see (info "(auctex) Changes").  I think the following
>> definition should work in auctex 13:
>> (defun skim-make-url ()
>>   (concat
>>    (TeX-current-line)
>>    " \""
>>    (expand-file-name (TeX-active-master (TeX-output-extension) t)
>>                   (file-name-directory (TeX-master-file)))
>>    "\" \"" (TeX-active-master t) "\""))
>
> Doesn't this make difference at region typeset?  The original
> `(buffer-file-name)' returns the (La)TeX file name such as "mydoc.tex"
> while `(TeX-active-master t)' returns "_region_" at C-c C-r.

Yes, you are right.  So Richard, this should be equivalent to what
you've user previously:

(defun skim-make-url ()
  (concat
   (TeX-current-line)
   " \""
   (expand-file-name (TeX-active-master (TeX-output-extension) t)
                     (file-name-directory (TeX-master-file)))
   "\" \"" (buffer-file-name) "\""))

Please report back if it works so that we can close the bug accordingly.

Bye,
Tassilo





reply via email to

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