]> git.eshelyaron.com Git - emacs.git/commit
Add cache to Python block navigation functions
authorkobarity <kobarity@gmail.com>
Mon, 21 Apr 2025 14:17:37 +0000 (23:17 +0900)
committerEshel Yaron <me@eshelyaron.com>
Sat, 26 Apr 2025 17:31:10 +0000 (19:31 +0200)
commitc51474961235f458976f4b8d3fdbc31ea8be7d59
tree20dba29527bc890e327ccdfc0d284fdabdbd69c5
parentad2cb603ce5dd44cc6458c343a231cbc2bc9cba0
Add cache to Python block navigation functions

* lisp/progmodes/python.el (python-nav-cache)
(python-nav-cache-tick): New variables.
(python-nav-cache-get, python-nav-cache-set)
(python-nav-with-cache): New functions.
(python-nav-beginning-of-block, python-nav-end-of-block): New
wrapper functions.
(python-nav--beginning-of-block): Renamed from
'python-nav-beginning-of-block'.
(python-nav--end-of-block): Renamed from
'python-nav-end-of-block'.  (Bug#77620)

(cherry picked from commit 9ae82726d8ea4530f26f2baa16b705ba3cd71834)
lisp/progmodes/python.el