GNU bug report logs -
#74939
Compiler warning for tex-font.el
Previous Next
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.
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):
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):
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):
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.