aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorStefan Monnier2023-11-16 17:21:18 -0500
committerStefan Monnier2023-11-23 11:59:38 -0500
commite6556db4200ccf28bd9bb033be0d5ce3cd2316a9 (patch)
tree41411919440c61b34f8223f7f17431c48ffd1c8f /java
parent9bda21ad0dddc5d84b6fca269626adeaa608b7a1 (diff)
downloademacs-e6556db4200ccf28bd9bb033be0d5ce3cd2316a9.tar.gz
emacs-e6556db4200ccf28bd9bb033be0d5ce3cd2316a9.zip
(derived-mode-p): Take MODES as a single argument
Looking at uses of `derived-mode-p` and `provide-mode-derived-p`, I can't find a single use case where it wouldn't be preferable for it to take a single argument instead of `&rest`: all the calls are either passing a single argument anyway, or passing a fixed list of modes. The use of `&rest` just makes the code less efficient and sometimes more clunky (because of the need for `apply`). So let's change that (while preserving backward compatibility, of course). * doc/lispref/modes.texi (Derived Modes): Adjust accordingly. * lisp/subr.el (provided-mode-derived-p, derived-mode-p): Take the `modes` as a single argument.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions