branch: elpa/drupal-mode
commit 0eac30704b0cbe214cfe017c148b6a420f8f1834
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>
Don't delete `'trailing` form `whitespace-style` after all.
`whitespace-style` not only decides what kind of whitespace gets
highlighted by `whitespace-mode` but also what kind of whitespace gets
removed by `whitespace-cleanup`.
---
drupal/phpcs.el | 2 --
1 file changed, 2 deletions(-)
diff --git a/drupal/phpcs.el b/drupal/phpcs.el
index d8890305d8..723f9fa32f 100644
--- a/drupal/phpcs.el
+++ b/drupal/phpcs.el
@@ -60,8 +60,6 @@ need to highlight it twice."
(defun drupal/phpcs-dont-show-trailing-whitespace ()
"Turn of various trailing white space highlighting."
(when drupal/phpcs-dont-show-trailing-whitespace
- (when (boundp 'whitespace-style)
- (set (make-local-variable 'whitespace-style) (remove 'trailing
whitespace-style)))
(setq show-trailing-whitespace nil)))
(provide 'drupal/phpcs)