[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 806bdb01ca 09/18: Improve usage of texmathp.el o
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 806bdb01ca 09/18: Improve usage of texmathp.el outside AUCTeX |
Date: |
Sun, 17 Mar 2024 07:37:12 -0400 (EDT) |
branch: externals/auctex
commit 806bdb01ca76c96e1d152b2c2cdfeee19ca32fe8
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Improve usage of texmathp.el outside AUCTeX
* texmathp.el (texmathp): Add a check if the current major mode
derives from `TeX-mode'. (bug#69681)
---
texmathp.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/texmathp.el b/texmathp.el
index 3316c461e9..b4ccf7ce4a 100644
--- a/texmathp.el
+++ b/texmathp.el
@@ -1,6 +1,6 @@
;;; texmathp.el -- Code to check if point is inside LaTeX math environment
-*- lexical-binding: t; -*-
-;; Copyright (C) 1998-2022 Free Software Foundation, Inc.
+;; Copyright (C) 1998-2024 Free Software Foundation, Inc.
;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
;; Maintainer: auctex-devel@gnu.org
@@ -325,8 +325,10 @@ See the variable `texmathp-tex-commands' about which
commands are checked."
;; return immediately nil. This relies on the function
;; `LaTeX-verbatim-p'. We add a check here in case this library
;; is used stand-alone without latex.el provided by AUCTeX
- ;; (bug#61410):
- (if (and (fboundp 'LaTeX-verbatim-p)
+ ;; (bug#61410) and the `major-mode' doesn't derive from `TeX-mode'
+ ;; (bug#69681):
+ (if (and (derived-mode-p 'TeX-mode)
+ (fboundp 'LaTeX-verbatim-p)
(LaTeX-verbatim-p (cdr match)))
(progn
(setq texmathp-why `(nil . ,(cdr match)))
- [elpa] externals/auctex updated (f124fe7d28 -> 0a477ebe9e), Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 0f8901dc5d 01/18: Set up outline mode variables early (bug#69254), Tassilo Horn, 2024/03/17
- [elpa] externals/auctex b47a44611f 05/18: * style/ltx-base.el ("ltx-base"): Add macros from fntguide.pdf., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 04814a0ea5 06/18: Track the latest version of usrguide.tex, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 806bdb01ca 09/18: Improve usage of texmathp.el outside AUCTeX,
Tassilo Horn <=
- [elpa] externals/auctex 89df2bbf59 12/18: ; * doc/changes.texi: Announce `LaTeX-flymake-chktex-options'., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex e2d2827e39 03/18: ; * style/ltx-base.el ("ltx-base"): Fix last change., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 1e39768287 14/18: Robustify in-buffer completion for surrounding comments, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 406eb61fc1 13/18: Make user query before killing a process optional, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 8d34ef21e6 02/18: Track the latest version of clsguide.tex, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 212bb3a3a1 11/18: ; * tex.el (TeX-process-check): Fix typo (bug#34645)., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 03a5aac0d7 08/18: Improve guessing a name for the current header line, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex ff03bccb38 07/18: Add an entry about previewing of TikZ pictures, Tassilo Horn, 2024/03/17
- [elpa] externals/auctex 2ee39c4e26 17/18: ; * latex.el: Fix copyright year after last revert., Tassilo Horn, 2024/03/17
- [elpa] externals/auctex cfc3d68ccc 04/18: Add some missing macros, Tassilo Horn, 2024/03/17