Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d1341ef3
Commit
d1341ef3
authored
Dec 16, 2023
by
Stefan Monnier
Browse files
* lisp/subr.el (derived-mode-p): Disable warnings for old convention
parent
2a591b22
Pipeline
#27516
failed with stage
in 4 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lisp/subr.el
lisp/subr.el
+5
-1
No files found.
lisp/subr.el
View file @
d1341ef3
...
...
@@ -2804,7 +2804,11 @@ MODES should be a list of symbols or a single mode symbol instead of a list.
We also still support the deprecated calling convention:
\(derived-mode-p &rest MODES)."
(declare (side-effect-free t)
(advertised-calling-convention (modes) "30.1"))
;; FIXME: It's cumbersome for external packages to write code which
;; accommodates both the old and the new calling conventions *and*
;; doesn't cause spurious warnings. So let's be more lenient
;; for now and maybe remove `deprecated-args' for Emacs-31.
(advertised-calling-convention (modes &rest deprecated-args) "30.1"))
(provided-mode-derived-p major-mode (if old-modes (cons modes old-modes)
modes)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment