Function: posframe--insert-string

posframe--insert-string is a byte-compiled function defined in posframe.el.

Signature

(posframe--insert-string STRING NO-PROPERTIES)

Documentation

Insert STRING to current buffer.

If NO-PROPERTIES is non-nil, all properties of STRING will be removed.

Source Code

;; Defined in ~/.emacs.d/elpa/posframe-20260415.14/posframe.el
(defun posframe--insert-string (string no-properties)
  "Insert STRING to current buffer.
If NO-PROPERTIES is non-nil, all properties of STRING
will be removed."
  (when (and string (stringp string))
    (remove-text-properties
     0 (length string) '(read-only t) string)
    (let ((str (if no-properties
                   (substring-no-properties string)
                 string)))
      (erase-buffer)
      (insert str))))