[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9ebc91795f2: Remove redundant `apply` with `derived-mode-p`
From: |
Stefan Kangas |
Subject: |
master 9ebc91795f2: Remove redundant `apply` with `derived-mode-p` |
Date: |
Sun, 11 Feb 2024 20:52:38 -0500 (EST) |
branch: master
commit 9ebc91795f22ca52ea019b8ce7fb1f6e4c8df826
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Remove redundant `apply` with `derived-mode-p`
* lisp/cedet/mode-local.el (mode-local-map-mode-buffers):
* lisp/progmodes/which-func.el (which-func-try-to-enable):
(which-func-ff-hook): Remove redundant 'apply' with 'derived-mode-p'.
Suggested by Philip Kaludercic <philipk@posteo.net>.
---
lisp/cedet/mode-local.el | 4 ++--
lisp/progmodes/which-func.el | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el
index 28f14232704..9f11b9707bd 100644
--- a/lisp/cedet/mode-local.el
+++ b/lisp/cedet/mode-local.el
@@ -1,6 +1,6 @@
;;; mode-local.el --- Support for mode local facilities -*- lexical-binding:t
-*-
;;
-;; Copyright (C) 2004-2005, 2007-2024 Free Software Foundation, Inc.
+;; Copyright (C) 2004-2024 Free Software Foundation, Inc.
;;
;; Author: David Ponce <david@dponce.com>
;; Created: 27 Apr 2004
@@ -84,7 +84,7 @@ MODES can be a symbol or a list of symbols.
FUNCTION does not have arguments."
(setq modes (ensure-list modes))
(mode-local-map-file-buffers
- function (lambda () (apply #'derived-mode-p modes))))
+ function (lambda () (derived-mode-p modes))))
;;; Hook machinery
;;
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el
index 631cb3b0aef..b36e13104e3 100644
--- a/lisp/progmodes/which-func.el
+++ b/lisp/progmodes/which-func.el
@@ -211,7 +211,7 @@ non-nil.")
(when which-function-mode
(unless (local-variable-p 'which-func-mode)
(setq which-func-mode (or (eq which-func-modes t)
- (apply #'derived-mode-p which-func-modes)))
+ (derived-mode-p which-func-modes)))
(setq which-func--use-mode-line
(member which-func-display '(mode mode-and-header)))
(setq which-func--use-header-line
@@ -239,7 +239,7 @@ It creates the Imenu index for the buffer, if necessary."
(condition-case err
(if (and which-func-mode
- (not (apply #'derived-mode-p which-func-non-auto-modes))
+ (not (derived-mode-p which-func-non-auto-modes))
(or (null which-func-maxout)
(< buffer-saved-size which-func-maxout)
(= which-func-maxout 0)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 9ebc91795f2: Remove redundant `apply` with `derived-mode-p`,
Stefan Kangas <=