emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/php-mode 6d197a9209 1/2: Simplify :safe function for php-i


From: ELPA Syncer
Subject: [nongnu] elpa/php-mode 6d197a9209 1/2: Simplify :safe function for php-ide-mode-functions
Date: Thu, 18 Jan 2024 10:00:47 -0500 (EST)

branch: elpa/php-mode
commit 6d197a9209104914c5a9c8ae35d977beed959ae6
Author: USAMI Kenta <tadsan@zonu.me>
Commit: USAMI Kenta <tadsan@zonu.me>

    Simplify :safe function for php-ide-mode-functions
---
 lisp/php-ide.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/php-ide.el b/lisp/php-ide.el
index 9f63cdee9b..f73d5bc3fb 100644
--- a/lisp/php-ide.el
+++ b/lisp/php-ide.el
@@ -178,6 +178,7 @@
   :type 'string
   :safe #'stringp)
 
+;;;###autoload
 (defcustom php-ide-mode-functions nil
   "Hook functions called when before activating or deactivating PHP-IDE.
 Notice that two arguments (FEATURE ACTIVATE) are given.
@@ -188,9 +189,7 @@ ACTIVATE: T is given when activeting, NIL when deactivating 
PHP-IDE."
   :group 'php-ide
   :type '(repeat function)
   :safe (lambda (functions)
-          (and (listp functions)
-               (cl-loop for function in functions
-                        always (functionp function)))))
+          (and (listp functions) (cl-every #'functionp functions))))
 
 ;;;###autoload
 (define-minor-mode php-ide-mode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]