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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 360 in the body.
You can then email your comments to 360 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#360
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Reuben Thomas <rrt <at> sc3d.org>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
On Fri, 2 May 2008, Reuben Thomas wrote:
> 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.
--
http://rrt.sc3d.org/ | Matthew 5:37 <-- tri-state logic considered harmful
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#360
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
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
Tags added: moreinfo
Request was from
Stefan Monnier <monnier <at> iro.umontreal.ca>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 12 Jun 2008 02:45:03 GMT)
Full text and
rfc822 format available.
Reply sent to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
Full text and
rfc822 format available.
Notification sent to
Reuben Thomas <rrt <at> sc3d.org>
:
bug acknowledged by developer.
Full text and
rfc822 format available.
Message #17 received at 360-done <at> emacsbugs.donarmstrong.com (full text, mbox):
2008-09-05 Vinicius Jose Latorre <viniciusjl <at> ig.com.br>
* whitespace.el: Fix auto-cleanup on kill prevents killing read-only
buffers (bug#360).
bug archived.
Request was from
Debbugs Internal Request <don <at> donarmstrong.com>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sat, 04 Oct 2008 14:24:03 GMT)
Full text and
rfc822 format available.
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.