Function: erc--order-text-properties-from-hash
erc--order-text-properties-from-hash is a byte-compiled function
defined in erc.el.gz.
Signature
(erc--order-text-properties-from-hash TABLE)
Documentation
Return a plist of text props from items in TABLE.
Ensure props in erc--ranked-properties appear last and in
reverse order so they end up sorted in buffer interval plists for
retrieval by text-properties-at and friends.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc--order-text-properties-from-hash (table)
"Return a plist of text props from items in TABLE.
Ensure props in `erc--ranked-properties' appear last and in
reverse order so they end up sorted in buffer interval plists for
retrieval by `text-properties-at' and friends."
(let (out)
(dolist (k erc--ranked-properties)
(when-let ((v (gethash k table)))
(remhash k table)
(setq out (nconc (list k v) out))))
(maphash (lambda (k v) (setq out (nconc (list k v) out))) table)
out))