unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
  • * bug#71376: 14.0.5; find-file-at-point doesn't work in LaTeX-mode
           [not found] ` <m234prtylp.fsf@macmutant.fritz.box>
           [not found]   ` <CAKDZ72jgjNCSguxGT-_pHxcZihBmr4TbwY5JYQFjRgsw2-U+AA@mail.gmail.com>
    @ 2024-06-06  5:24   ` Ikumi Keita
      2024-06-06  6:54     ` Arash Esbati
      1 sibling, 1 reply; 12+ messages in thread
    From: Ikumi Keita @ 2024-06-06  5:24 UTC (permalink / raw)
      To: Arash Esbati
      Cc: Бабушкин Максим Владимирович,
    	71376
    
    Hi Arash,
    
    >>>>> Arash Esbati <arash@gnu.org> writes:
    > Thanks for raising this issue.  I don't use `ffap', but the issue is
    > that AUCTeX has changed the mode names.  Following your code, the
    > following change should fix the issue, right?  Can you give it a try?  I
    > can propose it for Emacs.
    
    > --8<---------------cut here---------------start------------->8---
    > 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:]~*?#" "{<@" "@>;.,!:}")
    > --8<---------------cut here---------------end--------------->8---
    
    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'.
    
    Regards,
    Ikumi Keita
    #StandWithUkraine #StopWarInUkraine
    #Gaza #StopMassiveKilling #CeasefireNOW
    
    
    
    
    
    ^ permalink raw reply	[flat|nested] 12+ messages in thread

  • end of thread, other threads:[~2024-06-07 11:45 UTC | newest]
    
    Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [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
    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
    

    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).