From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13206: 24.3.50; FR: insert-char must(?) show characters visually in completion buffer Date: Mon, 17 Dec 2012 09:34:26 -0500 Message-ID: References: <87licwiyp9.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355755315 2858 80.91.229.3 (17 Dec 2012 14:41:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2012 14:41:55 +0000 (UTC) Cc: 13206@debbugs.gnu.org To: Jambunathan K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 17 15:42:10 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TkbtQ-0002sD-FY for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Dec 2012 15:42:08 +0100 Original-Received: from localhost ([::1]:50526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkbtD-0005B8-6q for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Dec 2012 09:41:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkbtA-0004xE-B3 for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2012 09:41:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tkbt5-0006YO-Iz for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2012 09:41:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tkbt5-0006YK-FR for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2012 09:41:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TkbuI-0001AW-1f for bug-gnu-emacs@gnu.org; Mon, 17 Dec 2012 09:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Dec 2012 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13206 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13206-submit@debbugs.gnu.org id=B13206.13557553604464 (code B ref 13206); Mon, 17 Dec 2012 14:43:01 +0000 Original-Received: (at 13206) by debbugs.gnu.org; 17 Dec 2012 14:42:40 +0000 Original-Received: from localhost ([127.0.0.1]:46948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tkbtv-00019x-C1 for submit@debbugs.gnu.org; Mon, 17 Dec 2012 09:42:39 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:34402) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tkbts-00019m-02 for 13206@debbugs.gnu.org; Mon, 17 Dec 2012 09:42:37 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FxLDj/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA4hCmnGBWIMH X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="210071479" Original-Received: from 69-196-176-227.dsl.teksavvy.com (HELO pastel.home) ([69.196.176.227]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Dec 2012 09:41:20 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 494575912C; Mon, 17 Dec 2012 09:34:26 -0500 (EST) In-Reply-To: <87licwiyp9.fsf@gmail.com> (Jambunathan K.'s message of "Mon, 17 Dec 2012 19:10:34 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:68641 Archived-At: > It will be wonderful if ucs-insert shows the characters visually in the > completion buffer. > Here is a proof-of-concept. Install an annotation function. > (setq completion-extra-properties > (list :annotation-function 'annotate-ucs-names)) > (defun annotate-ucs-names (name) > (format "(%s)" (char-to-string (cdr (assoc-string name (ucs-names) t))))) I'd be happy to install such a patch, yes. Please send it along. > M-x insert-char RET will give screenshot 1. Note the presence of > characters visually next to char names. I would have wised to place the > the glyphs come before the description. Indeed, placing them before would make sense. > Now let us install a small /hack/ to minibuffer as shown below. The > result is as shown in screenshot 2, which I would much prefer. > (Ofcourse, the insertion itself wouldn't work) Indeed, this version has various problems. E.g. as a user, I'd often have trouble figuring out which chars goes with which name. I agree that the annotation mechanism would deserve improvement. Stefan