Function: kproperty:replace-separator

kproperty:replace-separator is a byte-compiled function defined in kproperty.el.

Signature

(kproperty:replace-separator NEW-LABEL-SEPARATOR OLD-SEP-LEN)

Documentation

Replace from point forward each cell's label separator with NEW-LABEL-SEPARATOR.

OLD-SEP-LEN is the length of the separator being replaced.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kproperty.el
(defun kproperty:replace-separator (new-label-separator old-sep-len)
  "Replace from point forward each cell's label separator with NEW-LABEL-SEPARATOR.
OLD-SEP-LEN is the length of the separator being replaced."
  (let (pos
	properties)
    (while (setq pos (kproperty:next-single-change (point) 'kcell))
      (goto-char pos)
      (setq properties (text-properties-at pos))
      ;; Replace label-separator while maintaining cell properties.
      (insert new-label-separator)
      (add-text-properties pos (+ pos 2) properties)
      (delete-region (point) (+ (point) old-sep-len)))))