Function: python-nav-cache-get

python-nav-cache-get is a byte-compiled function defined in python.el.gz.

Signature

(python-nav-cache-get KIND)

Documentation

Get value from the navigation cache.

If the current buffer is not modified, the navigation cache is searched using KIND and the current line number as a key.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-nav-cache-get (kind)
  "Get value from the navigation cache.
If the current buffer is not modified, the navigation cache is searched
using KIND and the current line number as a key."
  (and (= (buffer-chars-modified-tick) python-nav-cache-tick)
       (cdr (assoc (cons kind (line-number-at-pos nil t)) python-nav-cache))))