Function: kotl-mode:set-or-remove-cell-attribute

kotl-mode:set-or-remove-cell-attribute is an interactive and byte-compiled function defined in kotl-mode.el.

Signature

(kotl-mode:set-or-remove-cell-attribute ARG)

Documentation

Run kotl-mode:remove-cell-attribute or kotl-mode:set-cell-attribute.

With numeric prefix ARG, interactively run kotl-mode:remove-cell-attribute; otherwise, run kotl-mode:set-cell-attribute. Prefix ARG selects the cells whose attributes are removed or set:
  If = 0, set one of the attributes of the invisible root cell;
  If < 0, remove one of the attributes of the invisible root cell;
  If = 1, set one of the attributes of the current cell;
  If > 1, remove one of the attributes of the current cell.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
(defun kotl-mode:set-or-remove-cell-attribute (arg)
  "Run kotl-mode:remove-cell-attribute or kotl-mode:set-cell-attribute.
With numeric prefix ARG, interactively run kotl-mode:remove-cell-attribute;
otherwise, run kotl-mode:set-cell-attribute.
Prefix ARG selects the cells whose attributes are removed or set:
  If =  0, set one of the attributes of the invisible root cell;
  If <  0, remove one of the attributes of the invisible root cell;
  If =  1, set one of the attributes of the current cell;
  If >  1, remove one of the attributes of the current cell."
  (interactive "p")
  (cond ((not (integerp arg))
	 (error "(kotl-mode:set-or-remove-cell-attribute): ARG must be an integer, not '%s'" arg))
	((= arg 0)
	 (call-interactively #'kotl-mode:set-cell-attribute))
	((< arg 0)
	 (setq current-prefix-arg 0)
	 (call-interactively #'kotl-mode:remove-cell-attribute))
	((= arg 1)
	 (call-interactively #'kotl-mode:set-cell-attribute))
	((> arg 1)
	 (call-interactively #'kotl-mode:remove-cell-attribute))))