Function: kcell-view:remove-attr

kcell-view:remove-attr is an interactive and byte-compiled function defined in kview.el.

Signature

(kcell-view:remove-attr ATTRIBUTE &optional POS)

Documentation

Remove ATTRIBUTE, if any, for cell and return the modified cell.

Cell is current or at optional POS.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kview.el
(defun kcell-view:remove-attr (attribute &optional pos)
  "Remove ATTRIBUTE, if any, for cell and return the modified cell.
Cell is current or at optional POS."
  (interactive "*SAttribute to remove: ")
  (unless (eq attribute 'idstamp) ;; Can't remove idstamp
    (let (mod-cell)
      (save-excursion
	(goto-char (or pos (kcell-view:plist-point)))
	(setq mod-cell (kcell:remove-attr (kcell-view:cell) attribute))
	(kproperty:add-properties (list 'kcell mod-cell))
	(when (called-interactively-p 'interactive)
	  (message "Cell <%s> now has no %s attribute."
		   (kcell-view:label) attribute)))
      mod-cell)))