unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <rms@gnu.org>
Cc: 9598@debbugs.gnu.org
Subject: bug#9598: 24.0.50; completion goes too far
Date: Sun, 25 Sep 2011 18:53:26 -0700	[thread overview]
Message-ID: <E1D5BD60D9634485966AA7B87E4FF4BE@us.oracle.com> (raw)
In-Reply-To: <E1R7zYa-0004No-FH@fencepost.gnu.org>

>     IOW, let users choose at completion time which completion 
>     style(s) to use, on demand.  Each time they change methods
>     they can complete anew and find out whether there are
>     matches using that method.
> 
> This might be too complicated an interface to be good to use.
> But you could try implementing it and we could judge based
> on experience.

I did, years ago.  In Icicles you can do just that.
I suggested the approach here based on experience with it.

1. A user option lists the completion methods to use (i.e., to make available
for cycling, in the order specified).

2. During completion, `C-(' cycles to the next method.

A user can also do this specifically, for given commands.  That is, a given
command can have a list of completion methods associated with it.  When this is
the case, that command's list overrides the global list, for use by `C-('.  A
separate user option records these command-specific completion preferences.

Vanilla Emacs could do something similar, with little coding, IMO.  No, I'm not
going to do it.  This description should suffice, and the Icicles code is freely
available for reference, if anyone is really interested.  Anyway, I'm betting
that even _if_ Emacs Dev wanted to do something like this they would not want to
do it the same way.


[Actually, Icicles has two keys for completing (in different ways), and thus two
different lists of methods for cycling, one for each completion key.  `C-('
cycles among the methods associated with `TAB' completion.  `M-(' cycles among
the methods associated with `S-TAB' completion.]






  reply	other threads:[~2011-09-26  1:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-25 17:34 bug#9598: 24.0.50; completion goes too far Richard Stallman
2011-09-25 18:47 ` Drew Adams
2011-09-26  1:00   ` Richard Stallman
2011-09-26  1:53     ` Drew Adams [this message]
2011-09-26  6:09     ` Eli Zaretskii
2011-09-26 10:42       ` Richard Stallman
2011-09-26 11:34         ` Eli Zaretskii
2011-09-26 21:12           ` Richard Stallman
2022-02-06  0:05             ` bug#12916: 24.2; Completion for "C-x b" does not include current buffer Lars Ingebrigtsen
2011-09-26  2:45 ` bug#9598: 24.0.50; completion goes too far Stefan Monnier
2011-09-26 10:42   ` Richard Stallman
2011-09-27  2:25     ` Stefan Monnier
2011-09-27 16:34       ` Richard Stallman
2011-10-11  2:52         ` Stefan Monnier
2011-10-11 22:01           ` Richard Stallman
2016-01-31 14:30 ` bug#9598: Status: C-x b completion should also display current buffer Marcin Borkowski
2016-01-31 16:18   ` bug#12916: " Drew Adams
2016-01-31 16:56   ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1D5BD60D9634485966AA7B87E4FF4BE@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=9598@debbugs.gnu.org \
    --cc=rms@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).