GNU bug report logs - #74939
Compiler warning for tex-font.el

Previous Next

Package: auctex;

Reported by: Arash Esbati <arash <at> gnu.org>

Date: Wed, 18 Dec 2024 09:19:02 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74939 in the body.
You can then email your comments to 74939 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#74939; Package auctex. (Wed, 18 Dec 2024 09:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arash Esbati <arash <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Wed, 18 Dec 2024 09:19:02 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: "auctex-bugs" <bug-auctex <at> gnu.org>
Subject: Compiler warning for tex-font.el
Date: Wed, 18 Dec 2024 10:18:08 +0100
Hi all,

Emacs from master has obsoleted usage of font-lock face variables
(3d3c109460).  Building AUCTeX with this version, the only warning
omitted is:

In tex-font-lock-syntactic-face-function:
tex-font.el:155:35: Warning: ‘font-lock-comment-face’ is an obsolete
variable (as of 31.1); use the quoted symbol instead:
'font-lock-comment-face

I think we can easily fix this with this change:

--8<---------------cut here---------------start------------->8---
diff --git a/tex-font.el b/tex-font.el
index 84dfe71b..018c6e89 100644
--- a/tex-font.el
+++ b/tex-font.el
@@ -143,16 +143,14 @@
 (defvar tex-font-lock-keywords tex-font-lock-keywords-1
   "Default expressions to highlight in TeX modes.")

-
 (defface tex-math-face
   '((t :inherit font-lock-string-face))
   "Face used to highlight TeX math expressions."
   :group 'tex)
-(defvar tex-math-face 'tex-math-face)

 ;; Use string syntax but math face for $...$.
 (defun tex-font-lock-syntactic-face-function (state)
-  (if (nth 3 state) tex-math-face font-lock-comment-face))
+  (if (nth 3 state) 'tex-math-face 'font-lock-comment-face))

 ;;;###autoload
 (defun tex-font-setup ()
--8<---------------cut here---------------end--------------->8---

Any comments?

Best, Arash




Information forwarded to bug-auctex <at> gnu.org:
bug#74939; Package auctex. (Thu, 19 Dec 2024 05:01:02 GMT) Full text and rfc822 format available.

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

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Arash Esbati <arash <at> gnu.org>
Cc: 74939 <at> debbugs.gnu.org
Subject: Re: bug#74939: Compiler warning for tex-font.el
Date: Thu, 19 Dec 2024 14:00:11 +0900
Hi Arash,

>>>>> Arash Esbati <arash <at> gnu.org> writes:
> In tex-font-lock-syntactic-face-function:
> tex-font.el:155:35: Warning: ‘font-lock-comment-face’ is an obsolete
> variable (as of 31.1); use the quoted symbol instead:
> 'font-lock-comment-face

> I think we can easily fix this with this change:
[...]
> Any comments?

I'm fine with your idea. :-)

Bye,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW




Reply sent to Arash Esbati <arash <at> gnu.org>:
You have taken responsibility. (Thu, 19 Dec 2024 06:34:01 GMT) Full text and rfc822 format available.

Notification sent to Arash Esbati <arash <at> gnu.org>:
bug acknowledged by developer. (Thu, 19 Dec 2024 06:34:02 GMT) Full text and rfc822 format available.

Message #13 received at 74939-done <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: 74939-done <at> debbugs.gnu.org
Subject: Re: bug#74939: Compiler warning for tex-font.el
Date: Thu, 19 Dec 2024 07:31:06 +0100
Hi Keita,

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

> I'm fine with your idea. :-)

Thanks for having a look.  I installed that change and therefore closing
this report.

Best, Arash




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 16 Jan 2025 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.