From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#52605: [PATCH] Add isearch-emoji-by-name Date: Mon, 10 Jan 2022 10:07:58 +0200 Organization: LINKOV.NET Message-ID: <86pmp0qbf5.fsf@mail.linkov.net> References: <87y24gx32m.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31000"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: larsi@gnus.org, mardani29@yahoo.es To: 52605@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 10 09:28:29 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n6q2W-0007lL-Hu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Jan 2022 09:28:28 +0100 Original-Received: from localhost ([::1]:40144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6q2V-00023O-0I for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Jan 2022 03:28:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6q0B-0000Ss-Nj for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2022 03:26:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6q0B-0003Ry-FE for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2022 03:26:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n6q0B-0006k1-Cb for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2022 03:26:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jan 2022 08:26:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52605 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Lars Ingebrigtsen , 52605@debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Received: via spool by 52605-submit@debbugs.gnu.org id=B52605.164180314025826 (code B ref 52605); Mon, 10 Jan 2022 08:26:03 +0000 Original-Received: (at 52605) by debbugs.gnu.org; 10 Jan 2022 08:25:40 +0000 Original-Received: from localhost ([127.0.0.1]:51747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6pzo-0006iT-7O for submit@debbugs.gnu.org; Mon, 10 Jan 2022 03:25:40 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:42549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6pzm-0006i9-QC for 52605@debbugs.gnu.org; Mon, 10 Jan 2022 03:25:39 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 628FC1C0009; Mon, 10 Jan 2022 08:25:30 +0000 (UTC) In-Reply-To: ("Daniel =?UTF-8?Q?Mart=C3=ADn?= via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\""'s message of "Sun, 09 Jan 2022 22:56:29 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:223874 Archived-At: > Also, I forgot to ask in my original message: Is there a plan to add an > Emoji input method to Emacs? If so, the input method could be used > during an isearch and this patch won't be necessary, right? Another > benefit of the input method is that it will work in other situations as > well, like in a query-replace. I agree the input method is more general solution than a new isearch command. #+begin_src emacs-lisp ;;; emoji.el --- Quail package for emoji character composition -*- lexical-binding: t -*- ;; Quail package `emoji' is based on emoji.el package. ;; This input method supports the same key sequences as the names ;; defined by the `C-x 8 e s' completions in emoji.el. (quail-define-package "emoji" "UTF-8" "😀" t "Use the same key sequences as in `C-x 8 e s' completions defined in emoji.el." '(("\t" . quail-completion)) t nil nil nil nil nil nil nil nil t) (eval-when-compile (require 'emoji) (emoji--init) (defmacro emoji--define-rules () `(quail-define-rules ,@(let ((rules nil)) (maphash (lambda (from to) (push (list from (if (stringp to) (vector to) to)) rules)) emoji--all-bases) rules)))) (emoji--define-rules) (provide 'emoji) ;;; emoji.el ends here #+end_src