all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Subject: Info-index-alternatives
Date: Mon, 17 Oct 2005 11:48:29 +0300	[thread overview]
Message-ID: <8764rwcvxe.fsf@jurta.org> (raw)

The message displayed by `Info-index-next' is not informative in
regard to the number of remaining alternatives that subsequent `,'
commands will find.  The patch below displays the number as the total
size of `Info-index-alternatives' minus the currently found index
entry.  Since `Info-index-alternatives' is a ring, if for example
the length of `Info-index-alternatives' is 16, then the message
"(`,' tries to find 15 next)" is correct, because it is true that `,'
will find them regardless of the current position in the ring.

Index: lisp/info.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/info.el,v
retrieving revision 1.451
diff -c -r1.451 info.el
*** lisp/info.el	16 Oct 2005 14:12:03 -0000	1.451
--- lisp/info.el	17 Oct 2005 08:38:45 -0000
***************
*** 2819,2825 ****
  	   (car (car Info-index-alternatives))
  	   (nth 2 (car Info-index-alternatives))
  	   (if (cdr Info-index-alternatives)
! 	       "(`,' tries to find next)"
  	     "(Only match)")))
  
  (defun Info-find-index-name (name)
--- 2825,2832 ----
  	   (car (car Info-index-alternatives))
  	   (nth 2 (car Info-index-alternatives))
  	   (if (cdr Info-index-alternatives)
! 	       (format "(`,' tries to find %s next)"
! 		       (1- (length Info-index-alternatives)))
  	     "(Only match)")))
  
  (defun Info-find-index-name (name)

-- 
Juri Linkov
http://www.jurta.org/emacs/

                 reply	other threads:[~2005-10-17  8:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=8764rwcvxe.fsf@jurta.org \
    --to=juri@jurta.org \
    /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.