From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: 13206@debbugs.gnu.org
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 [thread overview]
Message-ID: <jwvfw3469kx.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87licwiyp9.fsf@gmail.com> (Jambunathan K.'s message of "Mon, 17 Dec 2012 19:10:34 +0530")
> 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
next prev parent reply other threads:[~2012-12-17 14:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-17 13:40 bug#13206: 24.3.50; FR: insert-char must(?) show characters visually in completion buffer Jambunathan K
2012-12-17 14:34 ` Stefan Monnier [this message]
2012-12-17 14:45 ` Drew Adams
2013-11-15 4:44 ` Jambunathan K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfw3469kx.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=13206@debbugs.gnu.org \
--cc=kjambunathan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.