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: Thu, 18 Jul 2019 16:15:23 +0000 (UTC) Message-ID: <6251d2e2-5366-4c06-8c42-811d1aa7d5e3@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>> <<1981011f-2e19-4f4b-a7ac-8ccd15298b1a@default>> <<83k1cfy8mp.fsf@gnu.org>> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="58191"; mail-complaints-to="usenet@blaine.gmane.org" Cc: van@scratch.space, 36454@debbugs.gnu.org, mrsebastianurban@gmail.com, larsi@gnus.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 18 18:16:10 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 1ho94k-000F0F-1T for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jul 2019 18:16:10 +0200 Original-Received: from localhost ([::1]:39724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ho94j-0005mf-1A for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jul 2019 12:16:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34717) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ho94f-0005mN-3z for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 12:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ho94e-00078V-0c for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 12:16:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45754) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ho94d-00078O-Sx for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 12:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ho94c-0007Eu-3s for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 12:16:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Jul 2019 16:16: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.156346653827787 (code B ref 36454); Thu, 18 Jul 2019 16:16:02 +0000 Original-Received: (at 36454) by debbugs.gnu.org; 18 Jul 2019 16:15:38 +0000 Original-Received: from localhost ([127.0.0.1]:54575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ho94D-0007E6-Ug for submit@debbugs.gnu.org; Thu, 18 Jul 2019 12:15:38 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:58366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ho94A-0007Dp-RX for 36454@debbugs.gnu.org; Thu, 18 Jul 2019 12:15:35 -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 x6IGE7ZJ143584; Thu, 18 Jul 2019 16:15:29 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=hf+V6CyxpDjJk/2p3lvP34SGaJbJT5qaOeEGhU4E5CM=; b=wi4FYO8Op3647wRfs3/SdHLUgJpIE2CU7RgitvqC6iYcpOb9XaH80D2r07wViS3i8gG/ HGm3Ua1igySApPFf8+MREnuDoIYuRMYlKkd7d/+zmMF89TlahymQMrrsKfdNM1m2zdsW C3L/8lsl0efcX2KhqTUwHvVmNp++q6tMtDdtYRRWIqwI5wHeeCYnZ4cKa2jJqp2Ro7pC Vk37pVghducVfK9EwdNKfA9zdSK2zL8MttwdJbyLgRh84o7usroki68P/ggKvhPjJ9OL 2z2Mkv/SuufAyUCB3hgFxkIND9ICy5f/oTPrR+kpvmMcbLL7DMG2tVMeCC5jCIpB5lWC Pg== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2tq7xr9u95-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Jul 2019 16:15:28 +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 x6IGD1UP051127; Thu, 18 Jul 2019 16:15:28 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 2tscty8um0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Jul 2019 16:15:27 +0000 Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x6IGFOUT031424; Thu, 18 Jul 2019 16:15:26 GMT In-Reply-To: <<83k1cfy8mp.fsf@gnu.org>> 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=9322 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-1907180169 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9322 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-1907180170 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:163319 Archived-At: > > 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. >=20 > 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.=20 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.