Skip to content

Commit 6d197a9

Browse files
committed
Simplify :safe function for php-ide-mode-functions
1 parent a1781e2 commit 6d197a9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lisp/php-ide.el

+2-3
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@
178178
:type 'string
179179
:safe #'stringp)
180180

181+
;;;###autoload
181182
(defcustom php-ide-mode-functions nil
182183
"Hook functions called when before activating or deactivating PHP-IDE.
183184
Notice that two arguments (FEATURE ACTIVATE) are given.
@@ -188,9 +189,7 @@ ACTIVATE: T is given when activeting, NIL when deactivating PHP-IDE."
188189
:group 'php-ide
189190
:type '(repeat function)
190191
:safe (lambda (functions)
191-
(and (listp functions)
192-
(cl-loop for function in functions
193-
always (functionp function)))))
192+
(and (listp functions) (cl-every #'functionp functions))))
194193

195194
;;;###autoload
196195
(define-minor-mode php-ide-mode

0 commit comments

Comments
 (0)