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: whitespace.el: auto-cleanup on kill prevents killing read-only buffers Date: Fri, 2 May 2008 15:35:26 +0100 (BST) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1209738961 2447 80.91.229.12 (2 May 2008 14:36:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 May 2008 14:36:01 +0000 (UTC) To: bug-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 02 16:36:36 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 1JrwNB-00056N-Ol for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 May 2008 16:36:30 +0200 Original-Received: from localhost ([127.0.0.1]:39411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JrwMU-0002tn-Gg for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 May 2008 10:35:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JrwMH-0002pY-Vz for bug-gnu-emacs@gnu.org; Fri, 02 May 2008 10:35:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JrwMF-0002nq-0q for bug-gnu-emacs@gnu.org; Fri, 02 May 2008 10:35:33 -0400 Original-Received: from [199.232.76.173] (port=43097 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JrwME-0002ne-Sg for bug-gnu-emacs@gnu.org; Fri, 02 May 2008 10:35:30 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JrwME-0004sa-V0 for bug-gnu-emacs@gnu.org; Fri, 02 May 2008 10:35:31 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:60383 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JrwLr-0008Hd-2S for bug-emacs@gnu.org; Fri, 02 May 2008 10:35:07 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JrwM9-0004qf-6I for bug-emacs@gnu.org; Fri, 02 May 2008 10:35:30 -0400 Original-Received: from pelican.sc3d.org ([216.184.201.86]) by monty-python.gnu.org with esmtps (SSL 3.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JrwM8-0004qA-MS for bug-emacs@gnu.org; Fri, 02 May 2008 10:35:24 -0400 DKIM-Signature: a=rsa-sha1; t=1209738923; x=1210343723; s=key1024; d=sc3d.org; c=relaxed/relaxed; q=dns; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type; b=jOkpe8gtTNunI04v1OogRIH3SL+32OgWH/XoLmGkyDrIt9DSbqA+9hli5Ew21spbmf+NvYVvcYWhdp7zaXxTvqeaH30qISRGtybSYMZw1/JiZgaBnt5ZM6+P90Moh2YBnq6swByXXL49Ra7xzOSUrTiGS5f6j6utvrM0fxb9buQ= Original-Received: from canta (cpc1-popl1-0-0-cust121.popl.cable.ntl.com [81.106.80.122]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id ITL73423 for ; Fri, 02 May 2008 10:35:23 -0400 X-X-Sender: rrt@canta 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-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:17913 Archived-At: 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. -- http://rrt.sc3d.org/ | Floc: an egregiously good aperitif