GNU bug report logs -
#360
whitespace.el: auto-cleanup on kill prevents killing read-only buffers
Previous Next
Reported by: Reuben Thomas <rrt <at> sc3d.org>
Date: Wed, 4 Jun 2008 15:00:04 UTC
Severity: normal
Tags: moreinfo
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 360 <at> emacsbugs.donarmstrong.com (full text, mbox):
>> I have whitespace-global-mode on and have it set to auto-cleanup on
>> kill. This stops read-only buffers from being killed, as auto-cleanup
>> tries to clean them up, gets an error, and aborts the kill.
>>
>> The old whitespace mode used to check to see if it was being called in
>> a read-only buffer, and didn't try to clean up under those circumstances.
>>
>> I'm using Emacs 23.0.60.1, but as far as I can tell the problem still
>> exists in CVS head.
> This problem can be fixed by wrapping the body of whitespace-clean in
> (unless buffer-read-only). I don't know if that fix has problems, but it at
> least works for me.
That would probably fix the problem, but now I wonder: why on earth
would someone worry about whitespace when killing a buffer?
Why would you want to strip whitespace just microseconds before throwing
away this piece of data anyway?
Stefan
This bug report was last modified 16 years and 319 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.