diff options
| -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 | ||