]> git.eshelyaron.com Git - emacs.git/commit
Fix python-mode hideshow regexp
authorNoam Postavsky <npostavs@gmail.com>
Wed, 2 Nov 2016 03:24:33 +0000 (23:24 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 6 Nov 2016 14:14:12 +0000 (09:14 -0500)
commit0b6b8151186e2d8d48aff8182a66aee21a6edb53
treec80f91ae1bc61b4390b6b0519be61b6f23caef29
parentdc152c54f4e44f5f2040883b03f71ff6aa66c893
Fix python-mode hideshow regexp

2015-02-07 "Fix hideshow integration[...]" changed the regexp added to
`hs-special-modes-alist' so that it worked when not searching from the
beginning of the line.  However, this allows matching tokens ending in
"def" or "class", not just those keywords.  This results in an infinite
loop in hs-hide-all (Bug #24815).

* lisp/progmodes/python.el (python-mode): Add symbol boundaries around
the def|class matching part of the regexp added to
hs-special-modes-alist.
lisp/progmodes/python.el