Function: org-appear--pre-cmd

org-appear--pre-cmd is a natively compiled function defined in org-appear.el.

Signature

(org-appear--pre-cmd)

Documentation

This function is executed by pre-command-hook in org-appear-mode(var)/org-appear-mode(fun).

It hides elements before commands that modify the buffer based on column width.

Source Code

;; Defined in /nix/store/ysqmilmh80y85ik1crg29w7g7i73wjk9-emacs-packages-deps/share/emacs/site-lisp/elpa/org-appear-20260716.2120/org-appear.el
(defun org-appear--pre-cmd ()
  "This function is executed by `pre-command-hook' in `org-appear-mode'.
It hides elements before commands that modify the buffer based on column width."
  (when (memq this-command '(org-fill-paragraph
			     org-ctrl-c-ctrl-c))
    (when-let* ((current-elem (org-appear--current-elem)))
      (org-appear--hide-invisible current-elem))))