Function: hpath:push-tag-mark

hpath:push-tag-mark is a byte-compiled function defined in hpath.el.

Signature

(hpath:push-tag-mark)

Documentation

Add a tag return marker at point if within a programming language file buffer.

Is a no-op if the function push-tag-mark is not available.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defun hpath:push-tag-mark ()
  "Add a tag return marker at point if within a programming language file buffer.
Is a no-op if the function `push-tag-mark' is not available."
  (and (hypb:buffer-file-name)
       comment-start
       (not (memq last-command
		  '(xref-find-definitions find-tag find-tag-other-window tags-loop-continue)))
       (or (and (fboundp 'xref-push-marker-stack)
		;; push old position
		(xref-push-marker-stack))
	   (and (fboundp 'push-tag-mark)
		;; push old position
		(push-tag-mark)))))