Function: python-eldoc--get-symbol-at-point

python-eldoc--get-symbol-at-point is a byte-compiled function defined in python.el.gz.

Signature

(python-eldoc--get-symbol-at-point)

Documentation

Get the current symbol for eldoc.

Returns the current symbol handling point within arguments.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-eldoc--get-symbol-at-point ()
  "Get the current symbol for eldoc.
Returns the current symbol handling point within arguments."
  (save-excursion
    (let ((start (python-syntax-context 'paren)))
      (when start
        (goto-char start))
      (when (or start
                (eobp)
                (memq (char-syntax (char-after)) '(?\ ?-)))
        ;; Try to adjust to closest symbol if not in one.
        (python-util-forward-comment -1)))
    (python-info-current-symbol t)))