unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Tor Kringeland <tor.a.s.kringeland@ntnu.no>
Cc: 52860@debbugs.gnu.org
Subject: bug#52860: Wishlist: Alternative keywords for emoji
Date: Sat, 15 Jan 2022 11:56:38 +0100	[thread overview]
Message-ID: <87r199uv15.fsf@gnus.org> (raw)
In-Reply-To: <7aef38f0-c98f-a73f-0785-b18dcf35dff6@ntnu.no> (Tor Kringeland's message of "Tue, 28 Dec 2021 22:30:41 +0100")

Tor Kringeland <tor.a.s.kringeland@ntnu.no> writes:

> It would be nice if Emacs had an option to specify an a-list
> containing alternative keywords for given emoji.  The car of an entry
> would be an emoji and the cdr would be a list of alternative keywords.
> Then these could been included when running `emoji-search' or in
> possible future input methods.  As an example, it could look like
>
>   '(("🤗" "hug" "hugging" "kind"))
>
> The keywords need not be unique for the given emoji.

I started implementing this, but the Emacs completion machinery really
doesn't like having many completion alternatives that are "the same".

I thought the Emacs completion machinery had grown support for this, but
poking around, I can't find anything.  So I've changed the completion to
use "name\tglyph" when doing completion when emoji-alternate-names is
non-nil, which is a bit clunkier, but...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      parent reply	other threads:[~2022-01-15 10:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-28 21:30 bug#52860: Wishlist: Alternative keywords for emoji Tor Kringeland
2021-12-29 14:56 ` Lars Ingebrigtsen
     [not found]   ` <23470865-c353-2048-7617-1f18363a7d75@ntnu.no>
2021-12-29 15:58     ` Lars Ingebrigtsen
2022-01-15 10:56 ` Lars Ingebrigtsen [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r199uv15.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=52860@debbugs.gnu.org \
    --cc=tor.a.s.kringeland@ntnu.no \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).