Function: emoji-zoom-increase
emoji-zoom-increase is an autoloaded, interactive and byte-compiled
function defined in emoji.el.gz.
Signature
(emoji-zoom-increase &optional FACTOR)
Documentation
Increase the size of the character under point.
FACTOR is the multiplication factor for the size.
Probably introduced at or before Emacs version 29.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/international/emoji.el.gz
;;;###autoload
(defun emoji-zoom-increase (&optional factor)
"Increase the size of the character under point.
FACTOR is the multiplication factor for the size."
(interactive)
(set-transient-map emoji-zoom-map t #'redisplay "Zoom with %k")
(unless (eobp)
(let* ((factor (or factor 1.1))
(old (get-text-property (point) 'face))
;; The text property is either a named face, or a plist
;; with :height, or a list starting with such a plist,
;; followed by one or more faces.
(newheight (* (or (and (consp old)
(or (plist-get (car old) :height)
(plist-get old :height)))
1.0)
factor))
(inhibit-read-only t))
(with-silent-modifications
(if (consp old)
(add-text-properties
(point) (1+ (point))
(list 'face
(cond
((eq (car old) :height)
(plist-put (copy-sequence old) :height newheight))
((plistp (car old))
(cons (plist-put (car old) :height newheight)
(cdr old)))
(t
(append (list (list :height newheight)) old)))
'rear-nonsticky t))
(add-face-text-property (point) (1+ (point))
(list :height newheight))
(put-text-property (point) (1+ (point))
'rear-nonsticky t))))))