all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: schwab@suse.de, emacs-devel@gnu.org, handa@m17n.org
Subject: Re: confusing info in C-u C-x =
Date: Sun, 11 Dec 2005 02:46:09 +0200	[thread overview]
Message-ID: <87zmn87gfu.fsf@jurta.org> (raw)
In-Reply-To: <E1El7Qr-0006ee-0N@fencepost.gnu.org> (Richard M. Stallman's message of "Sat, 10 Dec 2005 11:18:45 -0500")

>     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/

  reply	other threads:[~2005-12-11  0:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-20  9:55 confusing info in C-u C-x = Werner LEMBERG
2005-11-20 15:16 ` Andreas Schwab
2005-11-20 22:07   ` [SPAM?]: " Werner LEMBERG
2005-11-21  7:35   ` Juri Linkov
2005-12-08  1:49   ` Kenichi Handa
2005-12-09  9:57     ` Juri Linkov
2005-12-09 15:07       ` Kim F. Storm
2005-12-09 21:15       ` Richard M. Stallman
2005-12-09 23:52         ` Juri Linkov
2005-12-10 16:18           ` Richard M. Stallman
2005-12-11  0:46             ` Juri Linkov [this message]
2005-12-10 22:50           ` Kim F. Storm
2005-12-11  0:55       ` Juri Linkov
2005-12-11 16:49         ` Richard M. Stallman
2005-11-20 23:21 ` Richard M. Stallman
  -- strict thread matches above, loose matches on Subject: below --
2005-11-20 19:35 martin rudalics
2005-11-21  8:56 martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zmn87gfu.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.