Skip to content

Commit 89e1d88

Browse files
author
Eric James Michael Ritz
committed
Merge pull request #223 from ejmr/fix-149
Use user default value instead of 'nil'
2 parents 064ff5c + 6e8a9ae commit 89e1d88

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

php-mode.el

+6-3
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,8 @@ code and modules."
632632
(c-set-style "pear")
633633

634634
;; Undo drupal/PSR-2 coding style whitespace effects
635-
(set (make-local-variable 'show-trailing-whitespace) nil))
635+
(set (make-local-variable 'show-trailing-whitespace)
636+
(default-value 'show-trailing-whitespace)))
636637

637638
(c-add-style
638639
"drupal"
@@ -666,7 +667,8 @@ working with Wordpress."
666667
(c-set-style "wordpress")
667668

668669
;; Undo drupal/PSR-2 coding style whitespace effects
669-
(set (make-local-variable 'show-trailing-whitespace) nil))
670+
(set (make-local-variable 'show-trailing-whitespace)
671+
(default-value 'show-trailing-whitespace)))
670672

671673
(c-add-style
672674
"symfony2"
@@ -684,7 +686,8 @@ working with Symfony2."
684686
(c-set-style "symfony2")
685687

686688
;; Undo drupal/PSR-2 coding style whitespace effects
687-
(set (make-local-variable 'show-trailing-whitespace) nil))
689+
(set (make-local-variable 'show-trailing-whitespace)
690+
(default-value 'show-trailing-whitespace)))
688691

689692
(c-add-style
690693
"psr2"

0 commit comments

Comments
 (0)