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:46:09 +0200 Organization: JURTA Message-ID: <87zmn87gfu.fsf@jurta.org> References: <20051120.105550.163003414.wl@gnu.org> <87u0divrk2.fsf@jurta.org> <87y82thq84.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 1134266783 27246 80.91.229.2 (11 Dec 2005 02:06:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Dec 2005 02:06:23 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org, handa@m17n.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 11 03:06:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ElGb2-0008AE-1h for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2005 03:05:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElGbR-0001X5-TX for ged-emacs-devel@m.gmane.org; Sat, 10 Dec 2005 21:06:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ElGZD-0008Hj-EX 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 1ElGZC-0008H0-6F for emacs-devel@gnu.org; Sat, 10 Dec 2005 21:03:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElGZB-0008Gh-GP 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 1ElGaV-0002Kz-P9; Sat, 10 Dec 2005 21:05:20 -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 D8A61170C; Sun, 11 Dec 2005 04:03:35 +0200 (EET) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Sat, 10 Dec 2005 11:18:45 -0500") 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:47422 Archived-At: > It already always creates a new buffer *Help-2*. Do you mean that > `generate-new-buffer-name' can create more buffers like *Help*<3> and > *Help*<4>? > > It will create a new buffer each time. Yes, I already realized what you meant. Below is a new patch. Index: lisp/descr-text.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/descr-text.el,v retrieving revision 1.43 diff -c -r1.43 descr-text.el *** lisp/descr-text.el 8 Dec 2005 01:38:50 -0000 1.43 --- lisp/descr-text.el 11 Dec 2005 00:45:56 -0000 *************** *** 160,166 **** (let ((buffer (current-buffer)) (target-buffer "*Help*")) (when (eq buffer (get-buffer target-buffer)) ! (setq target-buffer "*Help-2*")) (save-excursion (with-output-to-temp-buffer target-buffer (set-buffer standard-output) --- 160,166 ---- (let ((buffer (current-buffer)) (target-buffer "*Help*")) (when (eq buffer (get-buffer target-buffer)) ! (setq target-buffer "*Help*<2>")) (save-excursion (with-output-to-temp-buffer target-buffer (set-buffer standard-output) *************** *** 466,472 **** (char-to-string char))))) (orig-buf (current-buffer)) (help-buf (if (eq orig-buf (get-buffer "*Help*")) ! "*Help-2*" "*Help*")) item-list max-width unicode) (if (or (< char 256) --- 466,472 ---- (char-to-string char))))) (orig-buf (current-buffer)) (help-buf (if (eq orig-buf (get-buffer "*Help*")) ! "*Help*<2>" "*Help*")) item-list max-width unicode) (if (or (< char 256) *************** *** 621,626 **** --- 621,628 ---- item-list))) (with-output-to-temp-buffer help-buf (with-current-buffer standard-output + (let ((help-xref-following t)) + (help-setup-xref nil nil)) (set-buffer-multibyte multibyte-p) (let ((formatter (format "%%%ds:" max-width))) (dolist (elt item-list) *************** *** 725,731 **** (save-excursion (set-buffer orig-buf) (describe-text-properties pos help-buf)) ! (describe-text-mode))))) (defalias 'describe-char-after 'describe-char) (make-obsolete 'describe-char-after 'describe-char "22.1") --- 727,736 ---- (save-excursion (set-buffer orig-buf) (describe-text-properties pos help-buf)) ! (describe-text-mode) ! (toggle-read-only 1) ! (help-make-xrefs (current-buffer)) ! (print-help-return-message))))) (defalias 'describe-char-after 'describe-char) (make-obsolete 'describe-char-after 'describe-char "22.1") -- Juri Linkov http://www.jurta.org/emacs/