From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Urban 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 20:59:06 +0200 Message-ID: <2f469306-98d3-8735-4d0d-61aae53321d0@gmail.com> References: <87r27016xo.fsf@mouse.gnus.org> <4087f726-f9e7-4bc5-a9b3-7d24d9b7f7c5@default> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="200265"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 Cc: 36454@debbugs.gnu.org To: Drew Adams , Lars Ingebrigtsen , VanL Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 15 21:00:13 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 1hn6Cp-000pxE-Pk for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 21:00:11 +0200 Original-Received: from localhost ([::1]:41932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn6Co-00076H-PE for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 15:00:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37057) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn6Ci-0006th-M6 for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 15:00:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn6Ch-0005qw-8w for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 15:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40301) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hn6Ch-0005om-0B for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 15:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hn6Cg-0000HN-Pj for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 15:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Urban Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jul 2019 19:00: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.1563217156986 (code B ref 36454); Mon, 15 Jul 2019 19:00:02 +0000 Original-Received: (at 36454) by debbugs.gnu.org; 15 Jul 2019 18:59:16 +0000 Original-Received: from localhost ([127.0.0.1]:49122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn6Bv-0000Fm-P8 for submit@debbugs.gnu.org; Mon, 15 Jul 2019 14:59:16 -0400 Original-Received: from mail-lj1-f175.google.com ([209.85.208.175]:46844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn6Bt-0000FF-6E for 36454@debbugs.gnu.org; Mon, 15 Jul 2019 14:59:13 -0400 Original-Received: by mail-lj1-f175.google.com with SMTP id v24so17371251ljg.13 for <36454@debbugs.gnu.org>; Mon, 15 Jul 2019 11:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fuucOiYdCw1ZlaR/hV9YCwZdLKM0BVYyacnPE5X7+GE=; b=n/esxTC/7VyNttB0aKYlx81Io7RVyrrSEmCH4qZh1wF2GnlotgK38fztc9fBbINcnt yTR1+LehHM2HKS3heOSKbTKxjlRD2RTnJEKRzgX0lX1w2s2ebPl/L2rzpjot/dcjEvj/ uizds+ABkXYNVsteZrwq/0kB1ZHPJZNiYk9UHr2q69RDMYRyaHISYFlboVtK1zBIgPGq iCpBB0j9q9SPFCQnYvWyumy1tgWeOSEomtFhfSMCUOTjxR4T9cYOO6myvKZYM4aGOxh3 dBh74BCKutPUAKxNMHEeIs8S+RJGEpSgdiTvd5DIb5ArhXroeVLFYwaXRkYsi4E9Yx3s YTxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fuucOiYdCw1ZlaR/hV9YCwZdLKM0BVYyacnPE5X7+GE=; b=RaXO/OMYnt8rrsqkhQn/UQjpWYJ6hViQJw+Oa24fsIcym8eyu2CEtcds2mczZTtbio ozuQN2NmKPWBVF+XW8JzbY+i1rxUf0qCrZO5+s4K6R/ZcvqvjQQ6CE8wnsBrtkMgL15P Q7R7le2ICZ9m+S4+l5ZwDg+DcDVrDKyLOQqiWbYvXXpyTc9x08pAO+4XYhjgxEtbJruo jYqXCLQnz5QLPNICTMtZQlror9gioTDD9/8ztxQ0FQc4stLlPLVHK1x6fC90eZgso4Qg GuB6BHsu1cQs+VQxoc6PWUdcRSV7dT20Fe5G9tjWZ96L9F2yzIJEzwIU6lbITLcVex1R kU6A== X-Gm-Message-State: APjAAAXE+9AWPZxd3kJxj3W14SfV1JzH0fnHVhkJaeVaT6iHR/qDlSnV YLExY7si1Cb9CiZJlNwdk3BPunmkzaw= X-Google-Smtp-Source: APXvYqxUAizHBBrEVlpVfXNtD616Ig2F7Pssh+eZ0J0SPLdfcqUePeyMJYaEGQfLOcalLApxiapMlQ== X-Received: by 2002:a2e:b4e4:: with SMTP id s4mr12977008ljm.207.1563217146757; Mon, 15 Jul 2019 11:59:06 -0700 (PDT) Original-Received: from [89.161.9.216] (ip-89-161-9-216.tel.tkb.net.pl. [89.161.9.216]) by smtp.gmail.com with ESMTPSA id v14sm3287720ljh.51.2019.07.15.11.59.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 11:59:06 -0700 (PDT) In-Reply-To: <4087f726-f9e7-4bc5-a9b3-7d24d9b7f7c5@default> Content-Language: en-GB 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:163160 Archived-At: > There's no problem with allowing completion against both char names > and hex code points. 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. On the other hand, while TAB searches through names, maybe just write "alternative TAB", that will search through hex codes, and bind it to, for example, 'S-TAB'? > FWIW - For Emacs 23-25, Icicles supports your #1 and #2. So this libraries somehow can distinguish "ffe" as part of hex code from part of Unicode name? > ... 4th kind of completion: You can enter a Unicode char itself > (...), and you see both its Unicode name and its code point. Well, there is 'what-cursor-position' and 'describe-char'... also I would rather see this behaviour with 'describe-char' in a form of minibuffer prompt, just like 'describe-face/function/variable', where you can insert char, type RET, and get the description. The rest of you message is, I think, outside of my beginner scope of knowledge, so I'm going to leave it alone. Again, I just wanted to point a way out from "wontfix" to "maybe" for this request, by proposing an idea of separating Unicode name completion from code completion. The former would be for methods 1st and 2nd, and the latter would be for 3rd method.