Function: magit-menu-position

magit-menu-position is a byte-compiled function defined in magit-section.el.

Signature

(magit-menu-position)

Documentation

Return the position where the context-menu was invoked.

If the current command wasn't invoked using the context-menu, then return nil.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defun magit-menu-position ()
  "Return the position where the context-menu was invoked.
If the current command wasn't invoked using the context-menu,
then return nil."
  (and magit--context-menu-section
       (ignore-errors
         (posn-point (event-start (aref (this-command-keys-vector) 0))))))