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


Message #30 received at 71376 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Arash Esbati <arash <at> gnu.org>
Cc: Ikumi Keita <ikumi <at> ikumi.que.jp>, Бабушкин Максим Владимирович
 <maxbabushkin <at> gmail.com>, 71376 <at> debbugs.gnu.org
Subject: Re: bug#71376: 14.0.5; find-file-at-point doesn't work in LaTeX-mode
Date: Thu, 06 Jun 2024 14:05:01 -0400
> | Major mode for editing files of input for TeX, LaTeX, or SliTeX.
> | This is the shared parent mode of several submodes.
> | Tries to determine (by looking at the beginning of the file) whether
> | this file is for plain TeX, LaTeX, or SliTeX and calls ‘plain-tex-mode’,
> | ‘latex-mode’, or ‘slitex-mode’, accordingly.  If it cannot be determined,
> | such as if there are no commands in the file, the value of ‘tex-default-mode’
> | says which mode to use.
> `----
>
> `tex-mode' redirects to submodes via `tex--redirect-to-submode'.  I
> think we ask the tex-mode.el maintainer.
>
> @Stefan: Should the entries in ffap.el for `tex-mode' be replaced by
> `plain-tex-mode' as well?

No buffer should be in `tex-mode` (it's an "abstract" parent mode), so
AFAICT the current entry

    (tex-mode . ffap-tex-mode)		; search ffap-tex-path

in `ffap-alist` is not very useful.
So unless/until `ffap.el` is changed to pay attention to the modes'
hierarchy rather than just the value of `major-mode`, we should use
things like `plain-tex-mode`.


        Stefan





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.