Function: pulsar-highlight-temporarily

pulsar-highlight-temporarily is an interactive and natively compiled function defined in pulsar.el.

Signature

(pulsar-highlight-temporarily LOCUS)

Documentation

Temporarily highlight the current LOCUS.

Unlike pulsar-highlight-pulse, never pulse the current line. Keep the highlight in place until another command is invoked. This is what makes the highlight temporary.

For a permanent highlight, see pulsar-highlight-permanently.

Key Bindings

This command is not in any keymaps.

Aliases

pulsar-highlight-dwim (obsolete since 1.3.0) pulsar-highlight-line (obsolete since 1.3.0)

Source Code

;; Defined in /nix/store/3sr3j7hp5p1wsd8fv5763k239hzdxi1c-emacs-packages-deps/share/emacs/site-lisp/elpa/pulsar-1.4.1/pulsar.el
;;;###autoload
(defun pulsar-highlight-temporarily (locus)
  "Temporarily highlight the current LOCUS.
Unlike `pulsar-highlight-pulse', never pulse the current line.  Keep the
highlight in place until another command is invoked.  This is what makes
the highlight temporary.

For a permanent highlight, see `pulsar-highlight-permanently'."
  (interactive (list (pulsar--get-line-or-region-boundaries)))
  (let ((pulse-flag nil)
        (pulse-delay nil)
        (pulse-iterations nil)
        (overlay (make-overlay (car locus) (cdr locus))))
    (overlay-put overlay 'pulse-delete t)
    (overlay-put overlay 'window (frame-selected-window))
    (pulse-momentary-highlight-overlay overlay pulsar-highlight-face)))