GNU bug report logs - #12673
24.2; makefile-mode whitespace-cleanup

Previous Next

Package: emacs;

Reported by: Arthur Azevedo de Amorim <arthur.aa <at> gmail.com>

Date: Thu, 18 Oct 2012 15:48:01 UTC

Severity: normal

Found in version 24.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Arthur Azevedo de Amorim <arthur.aa <at> gmail.com>
Cc: 12673 <at> debbugs.gnu.org
Subject: bug#12673: 24.2; makefile-mode whitespace-cleanup
Date: Mon, 07 Dec 2020 18:04:50 +0100
Arthur Azevedo de Amorim <arthur.aa <at> gmail.com> writes:

> Suppose that I have the following in .emacs:
>
> (setq-default indent-tabs-mode nil)
> (add-hook 'after-save-hook 'whitespace-cleanup)

[...]

> I think I know where the problem is. whitespace.el has the following line
>
> (defvar whitespace-indent-tabs-mode indent-tabs-mode)
>
> When whitespace-cleanup is called for the first time on the text file,
> the value of indent-tabs-mode is nil, because that is the default
> value and text mode doesn't override it. When the Makefile is visited,
> whitespace-indent-tabs-mode has already been defined, and so will
> still be nil.

(This bug report unfortunately got no response at the time.)

whitespace-indent-tabs-mode was removed at some point after this bug
report, so I'm going to go ahead and guess that this bug has been fixed
over the years, and I'm closing this bug report.  If this is still an
issue, please respond to the debbugs address and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.