[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
with-suppressed-warnings ineffective?
From: |
Stefan Monnier |
Subject: |
with-suppressed-warnings ineffective? |
Date: |
Tue, 19 Nov 2019 09:50:04 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Hi Lars,
Another brilliant Stefan pointed out that we have undesired warnings:
ELC cedet/semantic/bovine/c.elc
‘define-child-mode’ is an obsolete macro (as of 27.1); use
‘define-derived-mode’ instead.
ELC cedet/semantic/bovine/el.elc
‘define-child-mode’ is an obsolete macro (as of 27.1); use
‘define-derived-mode’ instead.
[ Not sure if the file names are right above. ]
AFAICT these come from
(with-suppressed-warnings ((obsolete define-child-mode))
;; FIXME: We should handle this some other way!
(define-child-mode c++-mode c-mode
"`c++-mode' uses the same parser as `c-mode'."))
and
(with-suppressed-warnings ((obsolete define-child-mode))
;; FIXME: We should handle this some other way!
(define-child-mode lisp-mode emacs-lisp-mode
"Make `lisp-mode' inherit mode local behavior from `emacs-lisp-mode'."))
Any idea why the `with-suppressed-warnings` doesn't actually suppress
the warning? Any hope you could fix it?
Stefan