GNU bug report logs - #360
whitespace.el: auto-cleanup on kill prevents killing read-only buffers

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: Reuben Thomas <rrt <at> sc3d.org>
Subject: bug#360 closed by Glenn Morris <rgm <at> gnu.org> (Re: #360: 
 whitespace.el: auto-cleanup on kill prevents killing read-only buffers)
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the emacs package:

#360: whitespace.el: auto-cleanup on kill prevents killing read-only buffers

It has been closed by Glenn Morris <rgm <at> gnu.org>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Glenn Morris <rgm <at> gnu.org> by
replying to this email.


-- 
360: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=360
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 360-done <at> debbugs.gnu.org
Subject: Re: #360: whitespace.el: auto-cleanup on kill prevents killing read-only buffers
Date: Fri, 5 Sep 2008 23:15:37 -0400
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). 

[Message part 3 (message/rfc822, inline)]
From: Reuben Thomas <rrt <at> sc3d.org>
To: bug-emacs <at> gnu.org
Subject: Re: whitespace.el: auto-cleanup on kill prevents killing read-only
 buffers
Date: Wed, 4 Jun 2008 15:52:19 +0100 (BST)
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




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.