|
From: | GNU bug Tracking System |
Subject: | bug#71376: closed (14.0.5; find-file-at-point doesn't work in LaTeX-mode) |
Date: | Fri, 07 Jun 2024 12:03:01 +0000 |
Your message dated Fri, 07 Jun 2024 13:45:35 +0200 with message-id <m2msnxq8m8.fsf@macmutant.fritz.box> and subject line Re: bug#71376: 14.0.5; find-file-at-point doesn't work in LaTeX-mode has caused the debbugs.gnu.org bug report #71376, regarding 14.0.5; find-file-at-point doesn't work in LaTeX-mode to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@gnu.org.) -- 71376: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71376 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems
--- Begin Message ---Subject: 14.0.5; find-file-at-point doesn't work in LaTeX-mode Date: Wed, 5 Jun 2024 11:51:24 +0300 Hello,
Emacs has a built-in function 'find-file-at-point' (or 'ffap'), which works great with the standard latex-mode. For example, putting cursor on the argument of the command
\input{~/Downloads/myfile.tex}
and calling 'M-x find-file-at-point' causes visiting the file under the cursor. It works similarly with the \usepackage command.
The AUCTeX package comes with LaTeX-mode which does not support this functionality. But it seems that the older versions of AUCTeX did.
As a workaround I put these lines in my .emacs
(eval-after-load "ffap"
'(progn
(add-to-list 'ffap-alist '(LaTeX-mode . ffap-latex-mode)) ; same as for latex-mode
(add-to-list 'ffap-string-at-point-mode-alist '(LaTeX-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")) ; same as for latex-mode
)
)
Emacs : GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0)
Package: 14.0.5--Maksim Babushkin
--- End Message ---
--- Begin Message ---Subject: Re: bug#71376: 14.0.5; find-file-at-point doesn't work in LaTeX-mode Date: Fri, 07 Jun 2024 13:45:35 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Eli Zaretskii <eliz@gnu.org> writes: > Yes, please go ahead, and close the bug after installing. Thanks, installed, and closing. Best, Arash
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |