auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Dependency on url-parse in tex.el


From: Tassilo Horn
Subject: Re: [AUCTeX-devel] Dependency on url-parse in tex.el
Date: Sun, 05 Jun 2011 11:36:11 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * Tassilo Horn (2011-06-05) writes:
>
>> --- tex.el   15 May 2011 20:16:55 -0000      5.680
>> +++ tex.el   5 Jun 2011 08:49:26 -0000       5.681
>> @@ -1419,9 +1419,14 @@
>>  emitted from the Evince document viewer.  IGNORED absorbs an
>>  unused id field accompanying the DBUS signal sent by Evince-3.0.0
>>  or newer."
>> -  ;; FILE is actually given as relative path to the TeX-master root 
>> document,
>> -  ;; so we need to strip the directory part to match the buffer name.
>> -  (let ((buf (get-buffer (file-name-nondirectory file)))
>> +  ;; FILE may be given as relative path to the TeX-master root document or 
>> as
>> +  ;; absolute file:// URL.  In the former case, the tex file has to be 
>> already
>> +  ;; opened.
>> +  (require 'url-parse)
>
> This will break compatibility with Emacs 21.  Do you happen to know if
> there is an equivalent to `url-generic-parse-url' in Emacs 21 which
> could be used?

For the task at hand where in the general case only the leading file://
has to be stripped, `replace-regexp-in-string' is good enough.  I just
added a fallback if `url-parse' cannot be loaded.

Bye,
Tassilo



reply via email to

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