Function: hui:indicate-copied-region

hui:indicate-copied-region is a byte-compiled function defined in hui.el.

Signature

(hui:indicate-copied-region THING &optional MESSAGE-LEN)

Documentation

Indicate that string THING or the region text has been copied.

Should be used when a command is called interactively.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260822.1645/hui.el
(defun hui:indicate-copied-region (thing &optional message-len)
  "Indicate that string THING or the region text has been copied.
Should be used when a command is called interactively."
  (unless message-len
    (setq message-len hui:copy-message-length))
  (cond ((zerop message-len)
         nil)
        (thing
         (let ((thing-excerpt (seq-take thing message-len)))
           ;; Don't say "killed" or "saved"; that is misleading.
           (message "Copied selectable thing: \"%s%s\""
                    ;; Don't show newlines literally
                    (query-replace-descr thing-excerpt)
                    (if (< (length thing-excerpt) (length thing))
                        "..."
                      ""))))
	((mark t)
	 (indicate-copied-region message-len))))