Function: hattr:copy

hattr:copy is a byte-compiled function defined in hbut.el.

Signature

(hattr:copy FROM-HBUT TO-HBUT)

Documentation

Copy attributes FROM-HBUT TO-HBUT, overwriting TO-HBUT attribute values.

Return TO-HBUT.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbut.el
(defun    hattr:copy (from-hbut to-hbut)
  "Copy attributes FROM-HBUT TO-HBUT, overwriting TO-HBUT attribute values.
Return TO-HBUT."
  (mapc (lambda (hbut)
	  (or (and hbut (symbolp hbut))
	      (error "(hattr:clear): Argument not a Hyperbole button: %s" hbut)))
	(list from-hbut to-hbut))
  (hattr:clear to-hbut)
  (setplist to-hbut (copy-sequence (symbol-plist from-hbut)))
  to-hbut)