unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: van@scratch.space, 36454@debbugs.gnu.org,
	mrsebastianurban@gmail.com, larsi@gnus.org
Subject: bug#36454: 26.2.90; feature request - Insert char by hex tab completion or C-x 8 RET ffe <TAB>
Date: Thu, 18 Jul 2019 16:15:23 +0000 (UTC)	[thread overview]
Message-ID: <6251d2e2-5366-4c06-8c42-811d1aa7d5e3@default> (raw)
In-Reply-To: <<83k1cfy8mp.fsf@gnu.org>>

> > No, you won't get lots of results.  There's little overlap
> > in general, even if you type only a few chars.  Certainly
> > less than you get with function and variable names,
> > especially those that have common prefixes.
> >
> > You'll typically type little to get to a single candidate.
> 
> Try "ff" or "fe" for some perspective.

With Emacs 23:

For "ff" there are 29 matching char names and
438 matching code points, total: 467.  Zero
overlap.

If you really want to be extreme, try just "f"
(see below).

Obviously you can ask to complete input that
results in many candidates.  That's true even
with just names as candidates.  Don't do that,
if you don't want lots of candidates.

IMO, the main advantage in completing code
points is not to save typing to enter a char.
It's to see the char names in `*Completions*'.
Completing 1 or 2 hex chars, just to save
typing 3 or 2 more, is not the point.  It's
about seeing what names match.

If you just want to insert a char by giving
its code point, it's not hard to type 4 hex
chars.  Completion is not really gaining you
anything for that goal. 

In general, it's a small percentage of char
names that include hex-char sequences, and
the longer the sequence the quicker that
percentage shrinks.  There are exceptions,
of course.

Let's see:

There are 5452 matches for input "9".
Of those, 132 are matches for a char name
(2% overlap).

Add an "a", to check "9a".  The 5454 drops
to 230, and the 132 drops to 8 (3% overlap).

For "9f" it's 203 total, only 1 name match
(0.4% overlap).

With regexp "9a\|a9" you can check for
matching either "9a" or "a9", which gives
626 total and 9 name-only (1% overlap).

For:

  "f": 10,113 total, 5,539 matching names (54% overlap)
 "fa":    353 total, 121 matching names   (34% overlap)
 "ee":  1,921 total, 1713 matching names  (89% overlap)
 "aa":    792 total, 417 matching names   (53% overlap)

"aaa":     21 total, 0 matching names      (no overlap)
"123":    174 total, 33 matching names    (19% overlap)
"321":     58 total, 0 matching names      (no overlap)
 "99":    221 total, 1 matching name     (0.4% overlap)
 "bc":    440 total, 2 matching names    (0.4% overlap)

But yes, if you want to see _only_ code-point
matches, and you want to type _only_ "f", say,
then this might not be for you.  If you think
this would be a problem for many people (I
don't), you could make it an option, of course.

And if you're not interested in such a feature,
fine.  Just wanted to share my (long) experience
with it, and suggest that it's easy to use and
quite useful.  You're not obliged to agree.  No
obligation to appreciate substring completion
for `C-x 8 RET' either.





       reply	other threads:[~2019-07-18 16:15 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<m2o92elbqy.fsf@scratch.space>
     [not found] ` <<87r27016xo.fsf@mouse.gnus.org>
     [not found]   ` <<b2238b0a-006f-945e-0eab-4bab7e58378a@gmail.com>
     [not found]     ` <<4087f726-f9e7-4bc5-a9b3-7d24d9b7f7c5@default>
     [not found]       ` <<2f469306-98d3-8735-4d0d-61aae53321d0@gmail.com>
     [not found]         ` <<8a8360df-afe2-4ae8-abac-96e7691f52a6@default>
     [not found]           ` <<27479297-ab97-106b-7325-5ac6ef5d0b92@gmail.com>
     [not found]             ` <<1981011f-2e19-4f4b-a7ac-8ccd15298b1a@default>
     [not found]               ` <<83k1cfy8mp.fsf@gnu.org>
2019-07-18 16:15                 ` Drew Adams [this message]
2019-07-18 16:53                   ` bug#36454: 26.2.90; feature request - Insert char by hex tab completion or C-x 8 RET ffe <TAB> Eli Zaretskii
     [not found] <<<<<<m2o92elbqy.fsf@scratch.space>
     [not found] ` <<<<<<87r27016xo.fsf@mouse.gnus.org>
     [not found]   ` <<<<<<b2238b0a-006f-945e-0eab-4bab7e58378a@gmail.com>
     [not found]     ` <<<<<<4087f726-f9e7-4bc5-a9b3-7d24d9b7f7c5@default>
     [not found]       ` <<<<<<2f469306-98d3-8735-4d0d-61aae53321d0@gmail.com>
     [not found]         ` <<<<<<8a8360df-afe2-4ae8-abac-96e7691f52a6@default>
     [not found]           ` <<<<<<27479297-ab97-106b-7325-5ac6ef5d0b92@gmail.com>
     [not found]             ` <<<<<<1981011f-2e19-4f4b-a7ac-8ccd15298b1a@default>
     [not found]               ` <<<<<<83k1cfy8mp.fsf@gnu.org>
     [not found]                 ` <<<<<6251d2e2-5366-4c06-8c42-811d1aa7d5e3@default>
     [not found]                   ` <<<<<831rynwah9.fsf@gnu.org>
     [not found]                     ` <<<<af7417e0-bf8e-4400-a501-71dcb499565b@default>
     [not found]                       ` <<<<83wogev83t.fsf@gnu.org>
     [not found]                         ` <<<9ad40946-43b5-440c-958d-35da10ab2669@default>
     [not found]                           ` <<<831rymul58.fsf@gnu.org>
     [not found]                             ` <<d43cf089-0c6d-4525-b29a-d83d50b0c2a1@default>
     [not found]                               ` <<b6ebc36d-10f8-6cde-a4bf-a93876b98bfb@gmail.com>
     [not found]                                 ` <<83v9vxtc52.fsf@gnu.org>
2019-07-20 16:35                                   ` Drew Adams
     [not found] <<<<<m2o92elbqy.fsf@scratch.space>
     [not found] ` <<<<<87r27016xo.fsf@mouse.gnus.org>
     [not found]   ` <<<<<b2238b0a-006f-945e-0eab-4bab7e58378a@gmail.com>
     [not found]     ` <<<<<4087f726-f9e7-4bc5-a9b3-7d24d9b7f7c5@default>
     [not found]       ` <<<<<2f469306-98d3-8735-4d0d-61aae53321d0@gmail.com>
     [not found]         ` <<<<<8a8360df-afe2-4ae8-abac-96e7691f52a6@default>
     [not found]           ` <<<<<27479297-ab97-106b-7325-5ac6ef5d0b92@gmail.com>
     [not found]             ` <<<<<1981011f-2e19-4f4b-a7ac-8ccd15298b1a@default>
     [not found]               ` <<<<<83k1cfy8mp.fsf@gnu.org>
     [not found]                 ` <<<<6251d2e2-5366-4c06-8c42-811d1aa7d5e3@default>
     [not found]                   ` <<<<831rynwah9.fsf@gnu.org>
     [not found]                     ` <<<af7417e0-bf8e-4400-a501-71dcb499565b@default>
     [not found]                       ` <<<83wogev83t.fsf@gnu.org>
     [not found]                         ` <<9ad40946-43b5-440c-958d-35da10ab2669@default>
     [not found]                           ` <<831rymul58.fsf@gnu.org>
2019-07-19 15:30                             ` Drew Adams
2019-07-19 20:12                               ` Sebastian Urban
2019-07-20  7:10                                 ` Eli Zaretskii
2019-07-20 13:28                                 ` Lars Ingebrigtsen
2019-07-20 14:36                                   ` Sebastian Urban
2019-07-20 15:54                                     ` Eli Zaretskii
     [not found] <<<<m2o92elbqy.fsf@scratch.space>
     [not found] ` <<<<87r27016xo.fsf@mouse.gnus.org>
     [not found]   ` <<<<b2238b0a-006f-945e-0eab-4bab7e58378a@gmail.com>
     [not found]     ` <<<<4087f726-f9e7-4bc5-a9b3-7d24d9b7f7c5@default>
     [not found]       ` <<<<2f469306-98d3-8735-4d0d-61aae53321d0@gmail.com>
     [not found]         ` <<<<8a8360df-afe2-4ae8-abac-96e7691f52a6@default>
     [not found]           ` <<<<27479297-ab97-106b-7325-5ac6ef5d0b92@gmail.com>
     [not found]             ` <<<<1981011f-2e19-4f4b-a7ac-8ccd15298b1a@default>
     [not found]               ` <<<<83k1cfy8mp.fsf@gnu.org>
     [not found]                 ` <<<6251d2e2-5366-4c06-8c42-811d1aa7d5e3@default>
     [not found]                   ` <<<831rynwah9.fsf@gnu.org>
     [not found]                     ` <<af7417e0-bf8e-4400-a501-71dcb499565b@default>
     [not found]                       ` <<83wogev83t.fsf@gnu.org>
2019-07-19 14:38                         ` Drew Adams
2019-07-19 14:57                           ` Eli Zaretskii
     [not found] <<<m2o92elbqy.fsf@scratch.space>
     [not found] ` <<<87r27016xo.fsf@mouse.gnus.org>
     [not found]   ` <<<b2238b0a-006f-945e-0eab-4bab7e58378a@gmail.com>
     [not found]     ` <<<4087f726-f9e7-4bc5-a9b3-7d24d9b7f7c5@default>
     [not found]       ` <<<2f469306-98d3-8735-4d0d-61aae53321d0@gmail.com>
     [not found]         ` <<<8a8360df-afe2-4ae8-abac-96e7691f52a6@default>
     [not found]           ` <<<27479297-ab97-106b-7325-5ac6ef5d0b92@gmail.com>
     [not found]             ` <<<1981011f-2e19-4f4b-a7ac-8ccd15298b1a@default>
     [not found]               ` <<<83k1cfy8mp.fsf@gnu.org>
     [not found]                 ` <<6251d2e2-5366-4c06-8c42-811d1aa7d5e3@default>
     [not found]                   ` <<831rynwah9.fsf@gnu.org>
2019-07-18 20:44                     ` Drew Adams
2019-07-19  6:41                       ` Eli Zaretskii
2019-07-19 23:07                         ` Richard Stallman
2019-07-20  8:04                           ` VanL
2019-07-01  2:39 VanL
2019-07-08 22:45 ` Lars Ingebrigtsen
2019-07-15  8:34   ` Sebastian Urban
2019-07-15 16:03     ` Drew Adams
2019-07-15 18:59       ` Sebastian Urban
2019-07-15 19:29         ` Drew Adams
2019-07-17 17:20           ` Sebastian Urban
2019-07-17 21:34             ` Drew Adams
2019-07-18  9:50               ` 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=6251d2e2-5366-4c06-8c42-811d1aa7d5e3@default \
    --to=drew.adams@oracle.com \
    --cc=36454@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    --cc=mrsebastianurban@gmail.com \
    --cc=van@scratch.space \
    /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).