diff options
| author | kobarity | 2022-08-25 14:28:22 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-08-25 14:28:22 +0200 |
| commit | 74d0304ad446dbad6fed887784ffbc3d0fdb59fd (patch) | |
| tree | 24d19b5b0bf6fffc140bf50302aecf3dc35e153f /test/lisp/progmodes/python-tests.el | |
| parent | 0ce30e92958538bb16bbefa1460580853fe82371 (diff) | |
| download | emacs-74d0304ad446dbad6fed887784ffbc3d0fdb59fd.tar.gz emacs-74d0304ad446dbad6fed887784ffbc3d0fdb59fd.zip | |
Extend `hs-special-modes-alist' for languages such as Python
* lisp/progmodes/hideshow.el (hs-special-modes-alist): Add
elements FIND-BLOCK-BEGINNING-FUNC, FIND-NEXT-BLOCK-FUNC, and
LOOKING-AT-BLOCK-START-P-FUNC.
(hs-find-block-beginning-func): New variable to hold
FIND-BLOCK-BEGINNING-FUNC.
(hs-find-next-block-func): New variable to hold
FIND-NEXT-BLOCK-FUNC.
(hs-looking-at-block-start-p-func): New variable to hold
LOOKING-AT-BLOCK-START-P-FUNC.
(hs-grok-mode-type): Set new variables from
`hs-special-modes-alist'.
(hs-find-next-block): New function.
(Misc.): Update callers of the above functions.
* test/lisp/progmodes/hideshow-tests.el: New test file (bug#56635).
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
0 files changed, 0 insertions, 0 deletions