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: Mon, 15 Jul 2019 12:29:04 -0700 (PDT) Message-ID: <8a8360df-afe2-4ae8-abac-96e7691f52a6@default> References: <87r27016xo.fsf@mouse.gnus.org> <4087f726-f9e7-4bc5-a9b3-7d24d9b7f7c5@default> <2f469306-98d3-8735-4d0d-61aae53321d0@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="56830"; 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 Mon Jul 15 21:30:12 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 1hn6fq-000Edh-PO for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 21:30:10 +0200 Original-Received: from localhost ([::1]:42256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn6fp-0005zU-KT for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 15:30:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43746) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn6fm-0005zI-IX for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 15:30:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn6fl-0003KN-M4 for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 15:30:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40344) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hn6fl-0003KI-HG for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 15:30:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hn6fl-0005Wu-7z for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 15:30:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jul 2019 19:30:05 +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.156321895721156 (code B ref 36454); Mon, 15 Jul 2019 19:30:05 +0000 Original-Received: (at 36454) by debbugs.gnu.org; 15 Jul 2019 19:29:17 +0000 Original-Received: from localhost ([127.0.0.1]:49164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn6ez-0005VA-70 for submit@debbugs.gnu.org; Mon, 15 Jul 2019 15:29:17 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:42702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn6ex-0005Uv-Mg for 36454@debbugs.gnu.org; Mon, 15 Jul 2019 15:29:16 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6FJSoem021498; Mon, 15 Jul 2019 19:29:09 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=dIEbCfEYKPPrA0Q6aCOKUEBMfpg2dE4k/aCGEu5ZmD4=; b=Nn839YJd/vl67qs7d/aOWSTnNlG1zholcIloPGnn2Metkl7tbUxIuwA3MI/RZAfetl56 4hSvXOl5HXIpW1HgEkFFH4znLZ4ey+pKkYCCW0fWdTcT01baq620puFxUORsIpHfek0J 972aeORKxvRUOaBHCo0VlW7pjamkEdeinBel7jmWqrRwJwC+NiLRx+JJ31ZcZrDyvb00 HwE4ud1CC5kdWVwqc+gpKR5hWicAq8tVmF4ImQvZHNKRmKdBG909HkgFHyAq/ElLHgax KZtKRsRKqEHAelaAkHNIQvXWCXSUYhpwP3NadGOjEyHvqELQL+hPptNjAL4OdGboJZvI bg== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 2tq6qtgjcm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Jul 2019 19:29:09 +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 x6FJRiGx066885; Mon, 15 Jul 2019 19:29:09 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 2tq742pt51-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Jul 2019 19:29:08 +0000 Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x6FJT4PE009540; Mon, 15 Jul 2019 19:29:05 GMT In-Reply-To: <2f469306-98d3-8735-4d0d-61aae53321d0@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=9319 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-1907150222 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9319 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-1907150223 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:163164 Archived-At: > > There's no problem with allowing completion against both char names > > and hex code points. >=20 > Well I think there may be - how do you distinguish "ffe" as part of > hex code from Unicode name ("GIRAFFE FACE") or "20" as part of hex > code from Unicode name "EGYPTIAN HIEROGLYPH A020"? With method 1. or > 2., i.e. just typing name or hex code, you can't, and only one type of > completion can be made - Unicode name, because it's probably more > reasonable. And this is why I proposed to make hex (or any other) > code completion available through 3rd method. 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. The completion candidates need to be, _in effect_, the concatenation of the char name and the code point. (I wrote: "But of course you'll want to use a substring completion style.")