GNU bug report logs - #71376
14.0.5; find-file-at-point doesn't work in LaTeX-mode

Previous Next

Package: emacs;

Reported by: Бабушкин Максим Владимирович <maxbabushkin <at> gmail.com>

Date: Wed, 5 Jun 2024 09:06:01 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Arash Esbati <arash <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
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
[Message part 1 (text/plain, inline)]
Your message dated Fri, 07 Jun 2024 13:45:35 +0200
with message-id <m2msnxq8m8.fsf <at> 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 <at> gnu.org.)


-- 
71376: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71376
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Бабушкин Максим Владимирович
 <maxbabushkin <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: 14.0.5; find-file-at-point doesn't work in LaTeX-mode
Date: Wed, 5 Jun 2024 11:51:24 +0300
[Message part 3 (text/plain, inline)]
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
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Arash Esbati <arash <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 71376-done <at> debbugs.gnu.org, ikumi <at> ikumi.que.jp,
 Stefan Kangas <stefankangas <at> gmail.com>, maxbabushkin <at> gmail.com,
 monnier <at> iro.umontreal.ca
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
Eli Zaretskii <eliz <at> gnu.org> writes:

> Yes, please go ahead, and close the bug after installing.

Thanks, installed, and closing.

Best, Arash


This bug report was last modified 1 year and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.