Function: hypb:with-marker

hypb:with-marker is an autoloaded macro defined in hypb.el.

Signature

(hypb:with-marker MARKER &rest BODY)

Documentation

Set MARKER while executing BODY, then set MARKER to nil.

Return result of last BODY expression.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hypb.el
;;;###autoload
(defmacro hypb:with-marker (marker &rest body)
  "Set MARKER while executing BODY, then set MARKER to nil.
Return result of last BODY expression."
  (declare (indent 1) (debug t))
  `(prog1 (progn
	    (unless (symbolp ',marker)
	      (error "(with-marker): `marker' must be a symbol, not: '%s'" marker))
	    (unless (boundp ',marker)
	      (setq ,marker nil))
	    (unless (markerp ,marker)
	      (setq ,marker (make-marker)))
	    ,@body)
     (set-marker ,marker nil)))