all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: inputting characters by hexadigit
Date: Thu, 24 Jul 2008 13:15:18 -0500	[thread overview]
Message-ID: <863alzb13d.fsf@lifelogs.com> (raw)
In-Reply-To: 005a01c8edae$beff6480$0ab32382@us.oracle.com

On Thu, 24 Jul 2008 08:55:03 -0700 "Drew Adams" <drew.adams@oracle.com> wrote: 

DA> Speaking only for Icicles, what you type in the minibuffer automatically
DA> (incrementally) filters the candidates (by default, at least), so I don't see
DA> the problem you mention.

DA> It sounds like you want to be able to also filter on category, that is, filter
DA> on the pair: category + name-in-category. For that, in Icicles, you can use a
DA> multi-completion that includes the category.

DA> What you described was actually, IIUC, to *first* filter on category, *then*
DA> filter on name-in-category. That too is possible in Icicles, but filtering on
DA> either or both, as I mentioned above, is better - quicker and more general.

I don't know how all that maps to Icicles and your terminology, but what
I'm proposing is really very simple.  I'll explain it differently:

-> user types `M-x TAB'
level = 0 (this is the deepest category level)
candidates = ankle-beta-copy, ankle-boring-call, 200 others with 5 common first words
display: ankle(2) right(100) ring(100) rung(100) wrong(100) zeta(100)

-> user types `a TAB'
level = 1 (but we don't need to display categories!)
candidates = ankle-beta-copy, ankle-boring-call
display: ankle-beta-copy, ankle-boring-call (with `a' highlighted)

-> user types `DEL TAB'
(back to first state)

-> user types `r TAB'
level = 1
candidates = 300 beginning with `r'
display: right(100) ring(100) rung(100)

-> user types `ing-r TAB'
level = 2 (we need to display categories, too many candidates)
candidates = 85 beginning with `ring-r'
display: ring-rock(20) ring-ring(25) ring-roar(40)

Basically at any point if there are less than N candidates, just show
the list.  Otherwise, generate the categories for N candidates by
constructing a tree of words in the current candidates' names (split the
names according to the word syntax).  Now, prune the top node (making
its child the top) until the top has more than 1 child.  Then the top's
children are the available categories (but they must be displayed with
the prefixes we pruned earlier).  I think it's a very simple algorithm.

DA> In Icicles, you can also filter progressively, using multiple patterns, so you
DA> can easily filter first with category, then with name-in-category, if you like,
DA> using separate patterns. But you need not do things in that order, and you need
DA> not even treat the two separately at all.

I don't think Icicles is the right way to implement what I'm describing,
because it does a lot of other things which are fairly intrusive to the
user who like the normal completion behavior.

On Thu, 24 Jul 2008 10:00:15 -0700 "Drew Adams" <drew.adams@oracle.com> wrote: 

DA> So now we're going to muck with existing completion mechanisms even
DA> more, trying out new features, just for this Unicode character input
DA> thing?

It's useful, as I've explained, for any list with lots of members,
e.g. the candidates shown for M-x TAB.  I have no opinion on the other
issues you brought up, and I don't need this feature in Emacs itself
unless it requires changes at the C level.  But I do think it would be
useful, especially on a text terminal, where scrolling through the list
can be pretty painful.

Ted





  reply	other threads:[~2008-07-24 18:15 UTC|newest]

Thread overview: 160+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-15 17:41 describe-char should display the character's Unicode name Ted Zlatanov
2008-07-15 20:42 ` Juri Linkov
2008-07-16  2:29   ` Kenichi Handa
2008-07-17  0:35     ` Juri Linkov
2008-07-17  1:26       ` Kenichi Handa
2008-07-17 14:09         ` Ted Zlatanov
2008-07-17 23:40         ` Juri Linkov
2008-07-18  0:10           ` Miles Bader
2008-07-18  0:47             ` inputting characters by hexadigit Kenichi Handa
2008-07-18  0:54               ` Lennart Borgman (gmail)
2008-07-18  1:01               ` Miles Bader
2008-07-18  4:48               ` David De La Harpe Golden
2008-07-18 12:39                 ` Miles Bader
2008-07-18 16:17                   ` Stephen J. Turnbull
2008-07-18 17:33                     ` David De La Harpe Golden
2008-07-18 18:08                       ` James Cloos
2008-07-18 18:59                         ` Stephen J. Turnbull
2008-07-18 21:29                           ` James Cloos
2008-07-19  0:30                             ` Juri Linkov
2008-07-21  1:41                               ` Stefan Monnier
2008-07-21  5:35                                 ` David De La Harpe Golden
2008-07-22 22:59                                   ` Juri Linkov
2008-07-22 23:17                                     ` Lennart Borgman (gmail)
2008-07-22 23:29                                     ` David De La Harpe Golden
2008-07-29 16:07                                 ` Juri Linkov
2008-07-29 18:00                                   ` Stefan Monnier
2008-07-19  5:49                             ` Stephen J. Turnbull
2008-07-19  0:13                     ` Miles Bader
2008-07-19  0:29                     ` Juri Linkov
2008-07-19  0:27                   ` Juri Linkov
2008-07-20 20:28                     ` Juri Linkov
2008-07-21  1:46                       ` Stefan Monnier
2008-07-21  5:07                         ` David De La Harpe Golden
2008-07-21  6:04                           ` Stefan Monnier
2008-07-21  9:01                             ` Juri Linkov
2008-07-21 11:04                               ` Johan Bockgård
2008-07-21 11:11                                 ` David Kastrup
2008-07-21 14:20                                   ` Johan Bockgård
2008-07-21 14:24                                     ` David Kastrup
2008-07-21 14:33                                       ` Lennart Borgman (gmail)
2008-07-21 14:37                                         ` David Kastrup
2008-07-21 19:25                               ` James Cloos
2008-07-21 19:53                                 ` Stefan Monnier
2008-07-21 20:23                                   ` Miles Bader
2008-07-21 20:38                                     ` Lennart Borgman (gmail)
2008-07-21 21:49                                     ` Johan Bockgård
2008-07-21 22:03                                       ` David Kastrup
2008-07-21 23:37                                         ` Johan Bockgård
2008-07-22  1:26                                           ` David De La Harpe Golden
2008-07-22 22:52                                           ` Juri Linkov
2008-07-21 20:31                                   ` David Kastrup
2008-07-21 20:36                                     ` David De La Harpe Golden
2008-07-21 20:43                                       ` David Kastrup
2008-07-21 20:50                                         ` Lennart Borgman (gmail)
2008-07-21 21:12                                           ` David Kastrup
2008-07-21 21:03                                         ` Alfred M. Szmidt
2008-07-21 21:24                                           ` Drew Adams
2008-07-22  4:03                                           ` Miles Bader
2008-07-21 21:06                                         ` David De La Harpe Golden
2008-07-22  4:04                                         ` Miles Bader
2008-07-21 20:31                                   ` James Cloos
2008-07-21 21:11                                   ` David De La Harpe Golden
2008-07-21 23:43                                 ` Juri Linkov
2008-07-22  4:06                                   ` Miles Bader
2008-07-21 16:54                             ` David De La Harpe Golden
2008-07-21 17:04                               ` David De La Harpe Golden
2008-07-21  6:16                           ` David Kastrup
2008-07-22  0:51                         ` Kenichi Handa
2008-07-22  7:56                           ` Juanma Barranquero
2008-07-22  8:33                             ` Miles Bader
2008-07-22 10:57                               ` Juanma Barranquero
2008-07-22 12:26                               ` Kenichi Handa
2008-07-22 12:33                                 ` Lennart Borgman (gmail)
2008-07-22 12:35                                   ` Miles Bader
2008-07-22 16:16                                 ` Stefan Monnier
2008-07-22 16:54                                   ` Drew Adams
2008-07-22 20:38                                     ` Alfred M. Szmidt
2008-07-22 22:55                                       ` Juri Linkov
2008-07-23  0:08                                       ` David De La Harpe Golden
2008-07-23  2:18                                       ` Miles Bader
2008-07-22 22:54                                   ` Juri Linkov
2008-07-23  0:28                                   ` Miles Bader
2008-07-23  1:02                                   ` Kenichi Handa
2008-07-23  2:32                                     ` Stefan Monnier
2008-07-23  3:18                                       ` Miles Bader
2008-07-23  3:38                                       ` David De La Harpe Golden
2008-07-23  3:53                                         ` Stefan Monnier
2008-07-23  4:26                                           ` David De La Harpe Golden
2008-07-23 19:19                                             ` Stefan Monnier
2008-07-23 20:26                                               ` David De La Harpe Golden
2008-07-23  9:03                                           ` Juri Linkov
2008-07-23 10:15                                             ` Miles Bader
2008-07-23 14:27                                               ` Juri Linkov
2008-07-23 14:58                                                 ` Miles Bader
2008-07-22 14:06                             ` Drew Adams
2008-07-23 13:01                               ` Ted Zlatanov
2008-07-23 13:05                                 ` Lennart Borgman (gmail)
2008-07-23 13:44                                   ` Drew Adams
2008-07-23 14:27                                   ` Juri Linkov
2008-07-23 19:24                                     ` Stefan Monnier
2008-07-23 22:32                                       ` Juri Linkov
2008-07-24  2:05                                         ` Stefan Monnier
2008-07-29 15:51                                           ` Juri Linkov
2008-07-29 17:33                                             ` Chong Yidong
2008-07-29 17:51                                               ` Juri Linkov
2008-07-29 19:55                                                 ` Stefan Monnier
2008-07-29 20:51                                                   ` Chong Yidong
2008-07-30 15:29                                                     ` Juri Linkov
2008-07-31 19:20                                                       ` Ted Zlatanov
2008-07-18  0:38           ` describe-char should display the character's Unicode name Kenichi Handa
2008-07-18  0:58             ` Miles Bader
2008-07-18 13:33               ` Ted Zlatanov
2008-07-18 13:53                 ` Drew Adams
2008-07-18 14:31                 ` Stefan Monnier
2008-07-18 15:22                   ` Ted Zlatanov
2008-07-19  0:45                     ` Juri Linkov
2008-07-21 16:35                       ` Ted Zlatanov
2008-07-21 16:35                         ` Lennart Borgman (gmail)
2008-07-21 16:58                           ` David De La Harpe Golden
2008-07-22 22:57                         ` Juri Linkov
2008-07-23 14:47                           ` Ted Zlatanov
2008-07-23 22:31                             ` Juri Linkov
2008-07-23 22:52                               ` Lennart Borgman (gmail)
2008-07-24 13:29                                 ` Ted Zlatanov
2008-07-24 13:39                                   ` Lennart Borgman
2008-07-24 15:27                                     ` Ted Zlatanov
2008-07-24 15:34                                       ` Lennart Borgman (gmail)
2008-07-25  0:41                                         ` Juri Linkov
2008-07-25  2:24                                           ` Kenichi Handa
2008-07-19  0:35                 ` Juri Linkov
2008-07-19  1:11                   ` Kenichi Handa
2008-07-20  0:29                     ` inputting characters by hexadigit Juri Linkov
2008-07-20  1:23                       ` Kenichi Handa
2008-07-20 20:27                         ` Juri Linkov
2008-07-23 14:37                           ` Ted Zlatanov
2008-07-23 19:31                             ` Stefan Monnier
2008-07-23 20:19                               ` Ted Zlatanov
2008-07-24  2:08                                 ` Stefan Monnier
2008-07-24 13:20                                   ` Ted Zlatanov
2008-07-24 13:40                                     ` Lennart Borgman
2008-07-24 14:03                                     ` Stefan Monnier
2008-07-24 15:25                                       ` Ted Zlatanov
2008-07-24 16:06                                         ` Stefan Monnier
2008-07-24 17:00                                           ` Drew Adams
2008-07-24 18:15                                             ` Ted Zlatanov [this message]
2008-07-24 18:37                                               ` Drew Adams
2008-07-28 13:56                                                 ` Ted Zlatanov
2008-07-24 20:12                                             ` Stefan Monnier
2008-07-24 20:27                                               ` Drew Adams
2008-07-24 20:37                                                 ` Lennart Borgman (gmail)
2008-07-24 21:30                                                   ` Lennart Borgman (gmail)
2008-07-24 21:59                                                     ` Lennart Borgman (gmail)
2008-07-28 14:00                                                   ` Ted Zlatanov
2008-07-23 22:35                               ` Juri Linkov
2008-07-23 23:00                                 ` Lennart Borgman (gmail)
2008-07-24  2:18                                   ` Stefan Monnier
2008-07-25  0:52                                     ` Juri Linkov
2008-07-24 13:24                                 ` Ted Zlatanov
2008-07-24 15:55                                   ` Drew Adams
2008-07-19  0:35               ` describe-char should display the character's Unicode name Juri Linkov

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=863alzb13d.fsf@lifelogs.com \
    --to=tzz@lifelogs.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.