unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Arash Esbati <arash@gnu.org>
To: Ikumi Keita <ikumi@ikumi.que.jp>
Cc: "Бабушкин Максим Владимирович" <maxbabushkin@gmail.com>,
	71376@debbugs.gnu.org
Subject: bug#71376: 14.0.5; find-file-at-point doesn't work in LaTeX-mode
Date: Thu, 06 Jun 2024 08:54:34 +0200	[thread overview]
Message-ID: <m2h6e6ef2t.fsf@macmutant.fritz.box> (raw)
In-Reply-To: <1322.1717651468@localhost> (Ikumi Keita's message of "Thu, 06 Jun 2024 14:24:28 +0900")

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

Hi Keita,

Ikumi Keita <ikumi@ikumi.que.jp> writes:

> It seems dubious to include `TeX-mode' here because it is used for only
> a parent of other AUCTeX major modes and isn't meant for a major mode of
> an actual buffer. Unless the user explicitly does M-x TeX-mode, no
> buffers would be in `TeX-mode'.

Yes, my fault, thanks for catching this.  Next try is attached.

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: 1524 bytes --]

From ae4ee831e628192e7f047c9651e3ae0e1ca89d48 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..e8065701eec 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
+    (plain-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:]~*?" "<@" "@>;.,!:")
+    (plain-TeX-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
     ;; XML: don't allow angle brackets
     (xml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}")
     (nxml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}")
-- 
2.45.2


  reply	other threads:[~2024-06-06  6:54 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     ` bug#71376: 14.0.5; find-file-at-point doesn't work in LaTeX-mode Arash Esbati
2024-06-06  5:24   ` Ikumi Keita
2024-06-06  6:54     ` Arash Esbati [this message]
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=m2h6e6ef2t.fsf@macmutant.fritz.box \
    --to=arash@gnu.org \
    --cc=71376@debbugs.gnu.org \
    --cc=ikumi@ikumi.que.jp \
    --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).