diff options
| author | Stefan Monnier | 2023-12-16 13:03:46 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2023-12-16 13:03:46 -0500 |
| commit | d1341ef3f0d7f2e64d26791ea41c752feef3fd3c (patch) | |
| tree | f92b77c613bfbd3c7b19fc8a6e3353cc01684b7f | |
| parent | 2a591b228aaa8c66c27cc5b7cb3033aa6625bc0b (diff) | |
| download | emacs-d1341ef3f0d7f2e64d26791ea41c752feef3fd3c.tar.gz emacs-d1341ef3f0d7f2e64d26791ea41c752feef3fd3c.zip | |
* lisp/subr.el (derived-mode-p): Disable warnings for old convention
| -rw-r--r-- | lisp/subr.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 7f2dcdc4d90..7b52f4f68f9 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2804,7 +2804,11 @@ MODES should be a list of symbols or a single mode symbol instead of a list. | |||
| 2804 | We also still support the deprecated calling convention: | 2804 | We also still support the deprecated calling convention: |
| 2805 | \(derived-mode-p &rest MODES)." | 2805 | \(derived-mode-p &rest MODES)." |
| 2806 | (declare (side-effect-free t) | 2806 | (declare (side-effect-free t) |
| 2807 | (advertised-calling-convention (modes) "30.1")) | 2807 | ;; FIXME: It's cumbersome for external packages to write code which |
| 2808 | ;; accommodates both the old and the new calling conventions *and* | ||
| 2809 | ;; doesn't cause spurious warnings. So let's be more lenient | ||
| 2810 | ;; for now and maybe remove `deprecated-args' for Emacs-31. | ||
| 2811 | (advertised-calling-convention (modes &rest deprecated-args) "30.1")) | ||
| 2808 | (provided-mode-derived-p major-mode (if old-modes (cons modes old-modes) | 2812 | (provided-mode-derived-p major-mode (if old-modes (cons modes old-modes) |
| 2809 | modes))) | 2813 | modes))) |
| 2810 | 2814 | ||