Ralf Angeli <[email protected]> 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 _______________________________________________ auctex-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex-devel
