all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <emacs-devel@gnu.org>
Subject: `i' in Info: get combo index tailored to input
Date: Fri, 26 Jun 2009 14:15:21 -0700	[thread overview]
Message-ID: <22ADB119166B4CC6BCC4511D5B796204@us.oracle.com> (raw)

Feature suggestion for `i' in Info - it could be bound to `C-u i':

Display a list (with links) of all index entries that match the user's
input, grouped by index.  This would, in effect, be a combined index
specialized to the user's input.  It would combine the subsets of each
index that match the user input.

For the input `truncate' in the Emacs manual, for instance, you would
see something like this:

 Command Index

 * comint-truncate-buffer
 * toggle-truncate-lines

 Variable Index

 * truncate-lines
 * truncate-partial-width-windows

For some contexts, this would be more convenient than having to cycle
blindly with `,' - seeing only how many other entries there are (not
what they are and what indexes they occur in).

It would also obviate the minor annoyance of sequentially accessing
multiple matching entries that go to the same target, such as the two
entries that match the input `truncate-lines', one from the Variable
Index and the other from the Command Index, and which go to the same
node.  With ordinary `i' and `,', you need to cycle among the matches
to discover this overlap.


[FWIW - In Icicles, you can get this behavior, with the exception that
the entries are not grouped by index.  You use `i' with completion to
get a set of nodes that match your input.  Then you create a virtual
book (a menu) of those nodes.  For the example above, this is what you
get:

 File: toc,  Node: Top,  Up: (dir)

 Virtual Book
 ************

 * Menu:

 * comint-truncate-buffer (emacs)
 * toggle-truncate-lines (emacs)
 * truncate-lines (emacs)
 * truncate-partial-width-windows (emacs)

]





             reply	other threads:[~2009-06-26 21:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-26 21:15 Drew Adams [this message]
2009-06-26 22:31 ` `i' in Info: get combo index tailored to input Juri Linkov
2009-06-27  0:21   ` Drew Adams
2009-06-28 21:32     ` Juri Linkov
2009-06-28 23:16       ` Drew Adams
2009-06-28 23:29         ` Drew Adams

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=22ADB119166B4CC6BCC4511D5B796204@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.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.