Function: isearch-emoji-by-name

isearch-emoji-by-name is an interactive and byte-compiled function defined in isearch.el.gz.

Signature

(isearch-emoji-by-name &optional COUNT)

Documentation

Read an Emoji name and add it to the search string COUNT times.

COUNT (interactively, the prefix argument) defaults to 1. The command accepts Unicode names like "smiling face" or
"heart with arrow", and completion is available.

View in manual

Probably introduced at or before Emacs version 29.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(defun isearch-emoji-by-name (&optional count)
  "Read an Emoji name and add it to the search string COUNT times.
COUNT (interactively, the prefix argument) defaults to 1.
The command accepts Unicode names like \"smiling face\" or
\"heart with arrow\", and completion is available."
  (interactive "p")
  (emoji--init)
  (with-isearch-suspended
   (pcase-let* ((`(,glyph . ,derived) (emoji--read-emoji))
                (emoji (if derived
                           (completing-read "Select derivation: "
                                            (cons glyph derived) nil t)
                         glyph)))
     (when (and (integerp count) (> count 1))
       (setq emoji (apply 'concat (make-list count emoji))))
     (when emoji
       (setq isearch-new-string (concat isearch-new-string emoji)
             isearch-new-message (concat isearch-new-message
					   (mapconcat 'isearch-text-char-description
						      emoji "")))))))