From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: confusing info in C-u C-x = Date: Sun, 11 Dec 2005 02:55:07 +0200 Organization: JURTA Message-ID: <87hd9gqvbm.fsf@jurta.org> References: <20051120.105550.163003414.wl@gnu.org> <87u0divrk2.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134266683 27023 80.91.229.2 (11 Dec 2005 02:04:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Dec 2005 02:04:43 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 11 03:04:33 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ElGZh-0007kn-BI for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2005 03:04:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElGa6-0000Cg-9I for ged-emacs-devel@m.gmane.org; Sat, 10 Dec 2005 21:04:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ElGZD-0008HJ-0A for emacs-devel@gnu.org; Sat, 10 Dec 2005 21:03:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ElGZB-0008GP-63 for emacs-devel@gnu.org; Sat, 10 Dec 2005 21:03:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElGZB-0008GL-1d for emacs-devel@gnu.org; Sat, 10 Dec 2005 21:03:57 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ElGad-0002M6-WA for emacs-devel@gnu.org; Sat, 10 Dec 2005 21:05:28 -0500 Original-Received: from mail.neti.ee (80-235-36-210-dsl.mus.estpak.ee [80.235.36.210]) by Relayhost1.neti.ee (Postfix) with ESMTP id C5E78170C for ; Sun, 11 Dec 2005 04:03:47 +0200 (EET) Original-To: emacs-devel@gnu.org In-Reply-To: <87u0divrk2.fsf@jurta.org> (Juri Linkov's message of "Fri, 09 Dec 2005 11:57:38 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:47419 Archived-At: BTW, there is an old bug related to read-only text in the *Help* buffer produced by `describe-char'. On any character type `C-u C-x = C-h C-h' and it signals an error Text is read-only: "Attempt to change text outside editable field" while it tries to display the help-for-help screen. I recall there was a discussion about changing `erase-buffer' to ignore read-only text. If it is not the time to change this now, then I propose the following fix: Index: lisp/help-macro.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/help-macro.el,v retrieving revision 1.34 diff -c -r1.34 help-macro.el *** lisp/help-macro.el 6 Aug 2005 22:13:43 -0000 1.34 --- lisp/help-macro.el 11 Dec 2005 00:54:56 -0000 *************** *** 139,146 **** (setq new-frame (window-frame (selected-window)) config nil)) (setq buffer-read-only nil) ! (erase-buffer) ! (insert help-screen) (help-mode) (goto-char (point-min)) (while (or (memq char (append help-event-list --- 139,147 ---- (setq new-frame (window-frame (selected-window)) config nil)) (setq buffer-read-only nil) ! (let ((inhibit-read-only t)) ! (erase-buffer) ! (insert help-screen)) (help-mode) (goto-char (point-min)) (while (or (memq char (append help-event-list -- Juri Linkov http://www.jurta.org/emacs/