bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25936: Fix for whitespace.el to make it read tab-width and indent-ta


From: Reuben Thomas
Subject: bug#25936: Fix for whitespace.el to make it read tab-width and indent-tabs-mode correctly
Date: Thu, 2 Mar 2017 13:48:19 +0000

I noticed that whitespace-mode was not correctly diagnosing whitespace problems in some files.

On investigation, this was because whitespace-report-region didn't call whitespace-ensure-local-variables, so it didn't catch changes to indent-tabs-mode in file-find hook functions.

However, on further investigation, I can't see why these local variables are needed. Currently, whitespace-mode makes buffer-local copies of indent-tabs-mode and tab-width, with names prefixed by "whitespace-". But these variables are buffer-local if necessary already, and whitespace-mode never tries to change them.

Hence, I attach a patch for review which simply removes these (apparently unnecessary) local variables.

--
http://rrt.sc3d.org

Attachment: 0001-Fix-reading-of-tab-settings-in-whitespace-mode.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]