branch: feature/fix-mode-names-overlap
commit 8cb64a34874957d59782545d15773a655483f20f
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
Augment suitable default entry for M-?
* latex.el (): Augment a default entry for `LaTeX-mode' to
`semantic-symref-filepattern-alist' so that M-? should continue to
work.
---
latex.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/latex.el b/latex.el
index d5d159bb..45b675b3 100644
--- a/latex.el
+++ b/latex.el
@@ -7964,6 +7964,14 @@ This happens when \\left is inserted."
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.hva\\'" . LaTeX-mode))
+(defvar semantic-symref-filepattern-alist) ; Silence compiler
+(with-eval-after-load 'semantic/symref/grep
+ ;; This entry is necessary for M-? to work.
+ ;; <URL:https://lists.gnu.org/r/auctex-devel/2023-09/msg00002.html>
+ ;; <URL:https://lists.gnu.org/r/auctex-devel/2023-09/msg00005.html>
+ (push '(LaTeX-mode "*.ltx" "*.sty" "*.cls" "*.clo" "*.bbl" "*.drv" "*.hva")
+ semantic-symref-filepattern-alist))
+
(declare-function LaTeX-preview-setup "preview")
;;;###autoload