]> git.eshelyaron.com Git - emacs.git/commit
Fix reading of tab settings in whitespace-mode
authorReuben Thomas <rrt@sc3d.org>
Thu, 2 Mar 2017 12:50:06 +0000 (12:50 +0000)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 21 Apr 2017 02:39:15 +0000 (22:39 -0400)
commita6b375ba4bfc9453abc428dcb73e65bfcf61b794
treee1ee2f1544f7d3c40e1131992eec95de4423f0aa
parentd490770dd09f1121b637eebdad82531de654189b
Fix reading of tab settings in whitespace-mode

lisp/whitespace.el (whitespace-indent-tabs-mode)
whitespace-tab-width): Remove these variables. The underlying
variables `indent-tabs-mode' and `tab-width' are already buffer-local
when needed, and whitespace-mode never changes them.
(whitespace-ensure-local-variables): Remove this function, which only
existed to set the above variables.
(whitespace-cleanup-region, whitespace-regexp)
(whitespace-indentation-regexp, whitespace-report-region)
(whitespace-turn-on, whitespace-color-on): Adjust these functions to
use `indent-tabs-mode' and `tab-width' directly, and not call
`whitespace-ensure-local-variables'.
lisp/whitespace.el