From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#360: whitespace.el: auto-cleanup on kill prevents killing read-only buffers Date: Wed, 4 Jun 2008 15:52:19 +0100 (BST) Message-ID: References: Reply-To: Reuben Thomas , 360@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1212592092 2831 80.91.229.12 (4 Jun 2008 15:08:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2008 15:08:12 +0000 (UTC) To: bug-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 04 17:08:54 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K3ub1-0008Ro-1L for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Jun 2008 17:08:15 +0200 Original-Received: from localhost ([127.0.0.1]:52273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3uaE-0008Fx-JN for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Jun 2008 11:07:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3ua0-0008AY-5U for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2008 11:07:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3uZy-0008A0-JY for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2008 11:07:11 -0400 Original-Received: from [199.232.76.173] (port=47966 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3uZy-00089x-HR for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2008 11:07:10 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39246) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K3uZx-0000Ms-Fp for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2008 11:07:10 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m54F770h009726; Wed, 4 Jun 2008 08:07:07 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m54F043F006793; Wed, 4 Jun 2008 08:00:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Reuben Thomas Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 04 Jun 2008 15:00:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 360 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12125911965473 (code B ref -1); Wed, 04 Jun 2008 15:00:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 4 Jun 2008 14:53:16 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m54Er5TD005467 for ; Wed, 4 Jun 2008 07:53:08 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3uMK-0001vx-Fr for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2008 10:53:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3uMF-0001uV-P2 for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2008 10:53:04 -0400 Original-Received: from [199.232.76.173] (port=43617 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3uMF-0001uS-MV for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2008 10:52:59 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:46730) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3uME-0005f3-GU for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2008 10:52:59 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]:43144) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1K3uKN-00037S-1l for bug-emacs@gnu.org; Wed, 04 Jun 2008 10:51:03 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1K3uM3-0005dh-UZ for bug-emacs@gnu.org; Wed, 04 Jun 2008 10:52:53 -0400 Original-Received: from pelican.sc3d.org ([216.184.201.86]:2144) by monty-python.gnu.org with esmtps (SSL 3.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K3uM2-0005Zk-TX for bug-emacs@gnu.org; Wed, 04 Jun 2008 10:52:47 -0400 DKIM-Signature: a=rsa-sha1; t=1212591088; x=1213195888; s=key1024; d=sc3d.org; c=relaxed/relaxed; q=dns; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type:In-Reply-To:References; b=vSFnTJRuBgExSuZeGSMJqopNH9V3a72wrYf+Pf7Wdu5lG9pJySrCW1E5bkPsUVAPMfxfSklB2qPIGPWVuk+jDczV/SPctsMWxZRp4YON+s55Gdbn20A03EY1ZoRf67Mw/giTUDtwxDkYiPi+7ZMO8VNeOjduLdxc41PGhfVCB4c= Original-Received: from canta.config (78-105-4-25.zone3.bethere.co.uk [78.105.4.25]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id KUD65428 for ; Wed, 04 Jun 2008 10:51:28 -0400 X-X-Sender: rrt@canta In-Reply-To: User-Agent: Alpine 1.00 (DEB 882 2007-12-20) X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 04 Jun 2008 11:07:11 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18254 Archived-At: 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