From: Arash Esbati <arash@gnu.org>
To: "Бабушкин Максим Владимирович" <maxbabushkin@gmail.com>
Cc: 71376@debbugs.gnu.org
Subject: bug#71376: 14.0.5; find-file-at-point doesn't work in LaTeX-mode
Date: Wed, 05 Jun 2024 21:42:11 +0200 [thread overview]
Message-ID: <m21q5bnpm4.fsf@macmutant.fritz.box> (raw)
In-Reply-To: <CAKDZ72jgjNCSguxGT-_pHxcZihBmr4TbwY5JYQFjRgsw2-U+AA@mail.gmail.com> ("Бабушкин Максим Владимирович"'s message of "Wed, 5 Jun 2024 22:04:05 +0300")
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
Бабушкин Максим Владимирович <maxbabushkin@gmail.com> writes:
> Arash,
>
> Your patch fixes the issue. Thank you!
Thanks for testing.
@Emacs maintainers: Please find attached a fix for ffap.el tracking the
new major-mode names introduced in AUCTeX v14. Any comments welcome.
Best, Arash
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Recognize-new-mode-names-provided-by-AUCTeX.patch --]
[-- Type: text/x-patch, Size: 1518 bytes --]
From 746e6074bfef851615d803805af1e3b2f2d4e7d2 Mon Sep 17 00:00:00 2001
From: Arash Esbati <arash@gnu.org>
Date: Wed, 5 Jun 2024 21:37:43 +0200
Subject: [PATCH] Recognize new mode names provided by AUCTeX
* lisp/ffap.el (ffap-alist, ffap-string-at-point-mode-alist): Add
entries for mode names introduced in AUCTeX v14. (bug#71376).
---
lisp/ffap.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lisp/ffap.el b/lisp/ffap.el
index b2b681b7c44..f6d663a778b 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -753,6 +753,8 @@ ffap-alist
("\\.[fF]\\'" . ffap-fortran-mode)
(tex-mode . ffap-tex-mode) ; search ffap-tex-path
(latex-mode . ffap-latex-mode) ; similar
+ (TeX-mode . ffap-tex-mode) ; AUCTeX v14 counterpart
+ (LaTeX-mode . ffap-latex-mode) ; ditto
("\\.\\(tex\\|sty\\|doc\\|cls\\)\\'" . ffap-tex)
("\\.bib\\'" . ffap-bib) ; search ffap-bib-path
("\\`\\." . ffap-home) ; .emacs, .bashrc, .profile
@@ -1065,6 +1067,9 @@ ffap-string-at-point-mode-alist
;; (La)TeX: don't allow braces
(latex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
(tex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
+ ;; AUCTeX v14 counterparts:
+ (LaTeX-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
+ (TeX-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
;; XML: don't allow angle brackets
(xml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}")
(nxml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}")
--
2.45.2
next parent reply other threads:[~2024-06-05 19:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAKDZ72iAw+zD6MSrVQfjRxEAwuSC2iKcHLNFLJ0iiErcXBxgmQ@mail.gmail.com>
[not found] ` <m234prtylp.fsf@macmutant.fritz.box>
[not found] ` <CAKDZ72jgjNCSguxGT-_pHxcZihBmr4TbwY5JYQFjRgsw2-U+AA@mail.gmail.com>
2024-06-05 19:42 ` Arash Esbati [this message]
2024-06-06 5:24 ` bug#71376: 14.0.5; find-file-at-point doesn't work in LaTeX-mode Ikumi Keita
2024-06-06 6:54 ` Arash Esbati
2024-06-06 15:23 ` Ikumi Keita
2024-06-06 17:16 ` Arash Esbati
2024-06-06 18:05 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-06 20:29 ` Arash Esbati
2024-06-07 6:12 ` Ikumi Keita
2024-06-07 7:16 ` Arash Esbati
2024-06-07 9:10 ` Stefan Kangas
2024-06-07 10:55 ` Eli Zaretskii
2024-06-07 11:45 ` Arash Esbati
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m21q5bnpm4.fsf@macmutant.fritz.box \
--to=arash@gnu.org \
--cc=71376@debbugs.gnu.org \
--cc=maxbabushkin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).