Skip to content

Commit 161449b

Browse files
committed
Fix minor-mode-list reported by php-mode-debug to minimize
1 parent 7177251 commit 161449b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

php-mode.el

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,9 +1138,11 @@ After setting the stylevars run hooks according to STYLENAME
11381138
(message "--- PHP-MODE DEBUG BEGIN ---")
11391139
(message "versions: %s; %s" (emacs-version) (php-mode-version))
11401140
(message "major-mode: %s" major-mode)
1141-
(message "minor-modes: %s" (cl-remove-if
1142-
(lambda (s) (string-match-p "global" (symbol-name s)))
1143-
minor-mode-list))
1141+
(message "minor-modes: %s"
1142+
(cl-loop for s in minor-mode-list
1143+
unless (string-match-p "global" (symbol-name s))
1144+
if (and (boundp s) (symbol-value s))
1145+
collect s))
11441146
(message "variables: %s"
11451147
(cl-loop for v in '(indent-tabs-mode tab-width)
11461148
collect (list v (symbol-value v))))

0 commit comments

Comments
 (0)