From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65021 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-article-hide-headers beeps: Buffer is read-only Date: Sat, 04 Aug 2007 22:33:59 +0200 Message-ID: References: <87d4y3mf3z.fsf@gmx.de> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186338575 21462 80.91.229.12 (5 Aug 2007 18:29:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Aug 2007 18:29:35 +0000 (UTC) Cc: , Katsumi Yamaoka , bugs@gnus.org To: Sven Joachim Original-X-From: ding-owner+M13530@lists.math.uh.edu Sun Aug 05 20:29:32 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1IHkr2-0005Qp-UM for ding-account@gmane.org; Sun, 05 Aug 2007 20:29:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1IHkq2-0002MJ-RA; Sun, 05 Aug 2007 13:28:26 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IHQKi-0006Ke-GA for ding@lists.math.uh.edu; Sat, 04 Aug 2007 15:34:44 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IHQKg-00080W-Lg for ding@lists.math.uh.edu; Sat, 04 Aug 2007 15:34:44 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IHQKf-0003Df-00; Sat, 04 Aug 2007 22:34:41 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.1/8.14.1) with ESMTP id l74KYaDw009706; Sat, 4 Aug 2007 22:34:36 +0200 (MEST) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id F233D12C62; Sat, 4 Aug 2007 22:34:35 +0200 (CEST) X-Face: .*T0'iU(sujq_j9\J>-d4fg;N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev In-Reply-To: <87d4y3mf3z.fsf@gmx.de> (Sven Joachim's message of "Sat, 04 Aug 2007 18:36:16 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-DCC--Metrics: poseidon 104; Body=4 Fuz1=4 Fuz2=4 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65021 Archived-At: On Sat, Aug 04 2007, Sven Joachim wrote: > Gnus v5.11 > GNU Emacs 22.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.10.13) > of 2007-07-31 on debian, modified by Debian > 200 news.gmane.org InterNetNews NNRP server INN 2.4.1 ready (posting ok). > > When typing "W W h" in a *Summary* buffer, Emacs beeps and displays > the error message: "Buffer is read-only: #" (in > *Messages* this shows up as > "article-hide-headers: Buffer is read-only: #"). > > Enabling debug-on-error does not enter the debugger in this case. Thanks for your report. Does the following patch fix it? --8<---------------cut here---------------start------------->8--- --- gnus-art.el 04 Aug 2007 20:35:29 +0200 1.125.2.5 +++ gnus-art.el 04 Aug 2007 22:14:56 +0200 @@ -1743,7 +1743,7 @@ (interactive) ;; This function might be inhibited. (unless gnus-inhibit-hiding - (let ((inhibit-read-only nil) + (let ((inhibit-read-only t) (case-fold-search t) (max (1+ (length gnus-sorted-header-list))) (inhibit-point-motion-hooks t) --8<---------------cut here---------------end--------------->8--- Katsumi, the problem was introduced by this change ... --8<---------------cut here---------------start------------->8--- revision 6.381.2.6 date: 2004/08/26 09:59:42; author: yamaoka; state: Exp; lines: +55 -47 [...] * gnus-art.el (article-hide-headers): Refer to the values for gnus-ignored-headers and gnus-visible-headers in the summary buffer since a user may have set them as group parameters. (gnus-article-read-summary-keys): Restore new window-start and hscroll to summary window. (gnus-prev-page-map): Remove duplicated one. --8<---------------cut here---------------end--------------->8--- ... and fixed in the trunk by Lars: --8<---------------cut here---------------start------------->8--- revision 7.185 date: 2006/06/21 18:14:23; author: larsi; state: Exp; lines: +1 -1 * gnus-art.el (article-hide-headers): Inhibit read-only stuff. --8<---------------cut here---------------end--------------->8--- I think the wrong value of inhibit-read-only was just a mistake (replacing "buffer-read-only" with "inhibit-read-only"?). But the ChangeLog doesn't say anything about removing (save-excursion (save-restriction ...)). I doubt the other occurrence of "(inhibit-read-only nil)" in `gnus-x-splash' is correct. Is it? --8<---------------cut here---------------start------------->8--- revision 7.17 date: 2007/06/07 11:59:35; author: yamaoka; state: Exp; lines: +79 -34 * gnus-ems.el (gnus-x-splash): Make it work. --8<---------------cut here---------------end--------------->8--- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/