Refactor out setting `whitespace-indent-tabs-mode' and
commit06d36e2b5f500764309c00fa96bbed59ee7fd750
authorTassilo Horn <tsdh@gnu.org>
Thu, 1 Aug 2013 12:58:28 +0000 (1 14:58 +0200)
committerTassilo Horn <tsdh@gnu.org>
Thu, 1 Aug 2013 12:58:28 +0000 (1 14:58 +0200)
treeee2f5879ce4614313acb033089f77a3da3c622d0
parent51457e0080c982a1760dcf75a84dba923dc37f01
Refactor out setting `whitespace-indent-tabs-mode' and
`whitespace-tab-width' buffer-locally to own function, so that
`whitespace-cleanup' and friends work appropriately without
needing to enable `whitespace-mode'.

* whitespace.el (whitespace-ensure-local-variables): New function.
(whitespace-cleanup-region): Call it.
(whitespace-turn-on): Call it.
lisp/ChangeLog
lisp/whitespace.el