From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#36454: 26.2.90; feature request - Insert char by hex tab completion or C-x 8 RET ffe Date: Wed, 17 Jul 2019 21:34:36 +0000 (UTC) Message-ID: <1981011f-2e19-4f4b-a7ac-8ccd15298b1a@default> References: <87r27016xo.fsf@mouse.gnus.org> <4087f726-f9e7-4bc5-a9b3-7d24d9b7f7c5@default> <2f469306-98d3-8735-4d0d-61aae53321d0@gmail.com> <8a8360df-afe2-4ae8-abac-96e7691f52a6@default> <27479297-ab97-106b-7325-5ac6ef5d0b92@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="19521"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36454@debbugs.gnu.org To: Sebastian Urban , Lars Ingebrigtsen , VanL Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 17 23:37:07 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hnrbn-0004vE-9F for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2019 23:37:07 +0200 Original-Received: from localhost ([::1]:60652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnrbm-0007Gv-Bt for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2019 17:37:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52928) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnrbj-0007Gp-Sk for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 17:37:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnrbi-0005mk-Kq for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 17:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44295) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnrbi-0005md-Fv for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 17:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hnrbi-0000Lo-Cg for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 17:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Jul 2019 21:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36454 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 36454-submit@debbugs.gnu.org id=B36454.15633994111329 (code B ref 36454); Wed, 17 Jul 2019 21:37:02 +0000 Original-Received: (at 36454) by debbugs.gnu.org; 17 Jul 2019 21:36:51 +0000 Original-Received: from localhost ([127.0.0.1]:53116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnrbX-0000LN-FL for submit@debbugs.gnu.org; Wed, 17 Jul 2019 17:36:51 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:54384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnrbV-0000L6-HH for 36454@debbugs.gnu.org; Wed, 17 Jul 2019 17:36:50 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6HLYebp063671; Wed, 17 Jul 2019 21:36:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=ibPKcb71IMEHb9DX/3xvPh5+ZplSDNFem/YLLDu6o0k=; b=RjRux1KnPJiqqgo8AhYexqHLYv1sNtD5TDGnZNtCEwURwCFq2NPTJ2Vxx42cX4Ly47CJ V/B1m02Cn3dNBF8F65/8wC4wx6TDx8tkSXpStgXolqX2dShdG0HLdKv/3nXn/w2tfGO+ CmV3saTO2FnwuzQO1o/ssDYTXp21s7AKB/9IsmsutLopPX/AOE2XlWelEMncvCEvhQQ2 Kmt27XI496x++qJ/Z8vf4jm5U66/oyJXZUUCT87a/t+rU5647cjxoI76oBFkSwKPnMIS MZetc1yx2wc5nrjmB3jY1Wmem6FUOxLqBNhQkLsn1Sf6G8BfE7V4YAcmZNTRJNGx84Gl mg== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2tq7xr5bmj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Jul 2019 21:36:43 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6HLS2xn017281; Wed, 17 Jul 2019 21:34:42 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 2tsctxh61f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Jul 2019 21:34:42 +0000 Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x6HLYbSh004227; Wed, 17 Jul 2019 21:34:37 GMT In-Reply-To: <27479297-ab97-106b-7325-5ac6ef5d0b92@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4861.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9321 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907170239 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9321 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907170240 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163269 Archived-At: > > You don't need to distinguish them. You don't > > care which part matches "ffe" or "20". You > > don't even care if both name and code point > > should happen to match the same pattern. All > > you care about is being able to match the info > > about the char: its name or code point. >=20 > So, after I type "ffe" and press TAB, it should look through names and > codes at the same time, and present completion candidates for both at > the same time, for example I'll get "=EF=BF=AA ffea" and "GIRAFFE FACE" i= n the > same window above? >=20 > Because, if yes, then user may get a lot of results, as it was pointed > out before. Have you tried it? 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. Completion of `ffe' gives this (using Emacs 23 for this; no GIRAFFE): ____ DIFFERENCE BETWEEN=09224F=09=E2=89=8F =20 FULLWIDTH BROKEN BAR=09FFE4=09=EF=BF=A4 =20 FULLWIDTH BROKEN VERTICAL BAR=09FFE4=09=EF=BF=A4 =20 FULLWIDTH CENT SIGN=09FFE0=09=EF=BF=A0 =20 FULLWIDTH MACRON=09FFE3=09=EF=BF=A3 =20 FULLWIDTH NOT SIGN=09FFE2=09=EF=BF=A2 =20 FULLWIDTH POUND SIGN=09FFE1=09=EF=BF=A1 =20 FULLWIDTH SPACING MACRON=09FFE3=09=EF=BF=A3 =20 FULLWIDTH WON SIGN=09FFE6=09=EF=BF=A6 =20 FULLWIDTH YEN SIGN=09FFE5=09=EF=BF=A5 =20 GREEK DASIA=091FFE=09=E1=BF=BE =20 HALFWIDTH BLACK SQUARE=09FFED=09=EF=BF=AD =20 HALFWIDTH DOWNWARDS ARROW=09FFEC=09=EF=BF=AC =20 HALFWIDTH FORMS LIGHT VERTICAL=09FFE8=09=EF=BF=A8 =20 HALFWIDTH LEFTWARDS ARROW=09FFE9=09=EF=BF=A9 =20 HALFWIDTH RIGHTWARDS ARROW=09FFEB=09=EF=BF=AB =20 HALFWIDTH UPWARDS ARROW=09FFEA=09=EF=BF=AA =20 HALFWIDTH WHITE CIRCLE=09FFEE=09=EF=BF=AE =20 HANGUL SYLLABLE BBWEOJ=09BFFE=09=EB=BF=BE =20 HANGUL SYLLABLE GGWELP=09AFFE=09=EA=BF=BE =20 HANGUL SYLLABLE KWEOGG=09CFFE=09=EC=BF=BE =20 MATHEMATICAL BOLD ITALIC PARTIAL DIFFERENTIAL=091D74F=09=F0=9D=9D=8F = =20 MATHEMATICAL BOLD PARTIAL DIFFERENTIAL=091D6DB=09=F0=9D=9B=9B = =20 MATHEMATICAL ITALIC PARTIAL DIFFERENTIAL=091D715=09=F0=9D=9C=95 =20 MATHEMATICAL SANS-SERIF BOLD ITALIC PARTIAL DIFFERENTIAL=091D7C3=09=F0=9D= =9F=83=20 MATHEMATICAL SANS-SERIF BOLD PARTIAL DIFFERENTIAL=091D789=09=F0=9D=9E=89=20 PARTIAL DIFFERENTIAL=092202=09=E2=88=82 ____ The overlaps are for 7 char names and 20 code points. If you were completing _separately_ against only char names you would still have 7 candidates. If against only code points you would still have 20 candidates. With both together you have 27. If you typed `iffe' you'd get just 6 (char-name) candidates. If you typed `ffea' you'd get just the char named `HALFWIDTH UPWARDS ARROW'. [If you typed `[0-9a-f]ffe\|ffe[0-9a-f]' (with regexp matching) you'd get only the 20 code-point matches.] Most char-name chars are not hex chars. And most hex-char combinations don't occur in char names. And those that do occur in both typically don't occur in many char names. ____ Of course it helps if you can match against multiple regexps, progressively, as you see the results of each match, to narrow the set incrementally. Seeing the 27 initial matches, typing another (separate) pattern of, say, `bet' would immediately get you only candidate `DIFFERENCE BETWEEN=09224F=09=E2=89=8F'. ____ https://www.emacswiki.org/emacs/Icicles_-_Progressive_Completion