Skip to content

Commit d5b8314

Browse files
committed
Fix php-mode-debug
Add missing (require 'cus-edit) and implove dump c-style variables.
1 parent 0df50c1 commit d5b8314

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

php-mode.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
(defconst php-mode-version-number "1.19.0"
1616
"PHP Mode version number.")
1717

18-
(defconst php-mode-modified "2018-03-24"
18+
(defconst php-mode-modified "2018-03-26"
1919
"PHP Mode build date.")
2020

2121
;; This file is free software; you can redistribute it and/or
@@ -1164,6 +1164,7 @@ After setting the stylevars run hooks according to STYLENAME
11641164
(defun php-mode-debug ()
11651165
"Display informations useful for debugging PHP Mode."
11661166
(interactive)
1167+
(require 'cus-edit)
11671168
(message "--- PHP-MODE DEBUG BEGIN ---")
11681169
(message "versions: %s; %s" (emacs-version) (php-mode-version))
11691170
(message "major-mode: %s" major-mode)
@@ -1180,7 +1181,9 @@ After setting the stylevars run hooks according to STYLENAME
11801181
if (eq type 'custom-variable)
11811182
collect (list v (symbol-value v))))
11821183
(message "c-indentation-style: %s" c-indentation-style)
1183-
(message "c-style-variables: %s" (c-get-style-variables c-indentation-style nil))
1184+
(message "c-style-variables: %s"
1185+
(cl-loop for v in c-style-variables
1186+
collect (list v (symbol-value v))))
11841187
(message "--- PHP-MODE DEBUG END ---")
11851188
(switch-to-buffer "*Messages*")
11861189
(goto-char (point-max)))

0 commit comments

Comments
 (0)