Skip to content

Commit

Permalink
Simplify :safe function for php-ide-mode-functions
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe committed Jan 18, 2024
1 parent a1781e2 commit 6d197a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lisp/php-ide.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 6d197a9

Please sign in to comment.