Function: pulsar-highlight-permanently-remove
pulsar-highlight-permanently-remove is an interactive and natively
compiled function defined in pulsar.el.
Signature
(pulsar-highlight-permanently-remove LOCUS)
Documentation
Remove the permanent highlight from the current LOCUS.
If the region is active, operate on its boundaries. If the highlight was a region-wide one (i.e. was created for the region boundaries rather than the line boundaries), then remove it even if the region is not active.
With LOCUS as a prefix argument, remove all such highlights in the current buffer. In this case, whether the region is active or not is irrelevant.
When called from Lisp LOCUS is a cons cell with two buffer positions.
Set a permanent highlight with pulsar-highlight-permanently.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/3sr3j7hp5p1wsd8fv5763k239hzdxi1c-emacs-packages-deps/share/emacs/site-lisp/elpa/pulsar-1.4.1/pulsar.el
(defun pulsar-highlight-permanently-remove (locus)
"Remove the permanent highlight from the current LOCUS.
If the region is active, operate on its boundaries. If the highlight
was a region-wide one (i.e. was created for the region boundaries rather
than the line boundaries), then remove it even if the region is not
active.
With LOCUS as a prefix argument, remove all such highlights in the
current buffer. In this case, whether the region is active or not is
irrelevant.
When called from Lisp LOCUS is a cons cell with two buffer positions.
Set a permanent highlight with `pulsar-highlight-permanently'."
(interactive
(list
(cond
(current-prefix-arg
(cons (point-min) (point-max)))
((region-active-p)
(cons (region-beginning) (region-end)))
(t
(pulsar--get-line-boundaries)))))
(if-let* ((overlays (pulsar--permanent-p locus)))
(dolist (overlay overlays) (delete-overlay overlay))
(user-error "No Pulsar permanent highlights found")))