1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-20 21:11:18 -07:00
emacs/lisp/progmodes
kobarity 7c7fc8fa5b Add Python blocks support for hideshow
* lisp/progmodes/python.el (python-nav-beginning-of-block-regexp):
New variable.
(python-hideshow-forward-sexp-function): Change to call
`python-nav-end-of-block'.
(python-hideshow-find-next-block): New function to be used as
FIND-NEXT-BLOCK-FUNC in `hs-special-modes-alist'.
(python-info-looking-at-beginning-of-block): New function to be
used as LOOKING-AT-BLOCK-START-P-FUNC in `hs-special-modes-alist'.
(python-mode): Change settings of `hs-special-modes-alist'.

* test/lisp/progmodes/python-tests.el
(python-hideshow-hide-levels-1): Fix to keep empty lines.
(python-info-looking-at-beginning-of-block-1)
(python-hideshow-hide-levels-3, python-hideshow-hide-levels-4)
(python-hideshow-hide-all-1, python-hideshow-hide-all-2)
(python-hideshow-hide-all-3, python-hideshow-hide-block-1): New
tests (bug#56635).
2022-08-25 14:29:10 +02:00
..
antlr-mode.el
asm-mode.el
autoconf.el
bat-mode.el
bug-reference.el
cc-align.el
cc-awk.el Fix mis-spelling of c-awk-old-ByLL and really make it buffer-local 2022-08-19 14:04:31 +02:00
cc-bytecomp.el
cc-cmds.el
cc-defs.el Make two compat aliases obsolete in cc-defs.el 2022-08-19 18:14:41 +02:00
cc-engine.el C++ Mode - Fontify "class Foo {\n ~Foo() noexcept;" correctly 2022-08-24 19:27:32 +00:00
cc-fonts.el C++ Mode - Fontify "class Foo {\n ~Foo() noexcept;" correctly 2022-08-24 19:27:32 +00:00
cc-guess.el
cc-langs.el
cc-menus.el
cc-mode.el CC Mode: Fontify args correctly when arglist closing ) is not on the same line 2022-08-24 14:45:46 +00:00
cc-styles.el
cc-vars.el
cfengine.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
cl-font-lock.el
cmacexp.el
compile.el
cperl-mode.el Use substitute-command-keys in a few more places 2022-08-23 21:08:38 +02:00
cpp.el
cwarn.el
dcl-mode.el
ebnf-abn.el
ebnf-bnf.el
ebnf-dtd.el
ebnf-ebx.el
ebnf-iso.el
ebnf-otz.el
ebnf-yac.el
ebnf2ps.el Merge from origin/emacs-28 2022-08-13 06:30:27 +02:00
ebrowse.el
elisp-mode.el * lisp/progmodes/elisp-mode.el (elisp--local-variables-1): Fix bug#50034 2022-08-23 10:16:05 -04:00
erts-mode.el
etags.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
executable.el
f90.el Merge from origin/emacs-28 2022-08-13 06:30:27 +02:00
flymake-cc.el
flymake-proc.el
flymake.el
fortran.el
gdb-mi.el Fix string padding in gdb-mi 2022-08-24 13:55:28 +02:00
glasses.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
grep.el
gud.el gud.el: invoke 'perldb' with '-E' instead of '-e' 2022-08-12 17:29:20 +02:00
hideif.el
hideshow.el Extend `hs-special-modes-alist' for languages such as Python 2022-08-25 14:28:22 +02:00
icon.el ; Delete not-useful comments referring to Emacs 19. 2022-08-19 18:05:51 +02:00
idlw-complete-structtag.el
idlw-help.el
idlw-shell.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
idlw-toolbar.el
idlwave.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
inf-lisp.el
js.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
ld-script.el
m4-mode.el
make-mode.el
meta-mode.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
mixal-mode.el
modula2.el
octave.el
opascal.el
pascal.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
perl-mode.el
prog-mode.el
project.el
prolog.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
ps-mode.el Make ps-mode-version variable obsolete 2022-08-13 13:10:41 +02:00
python.el Add Python blocks support for hideshow 2022-08-25 14:29:10 +02:00
ruby-mode.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
scheme.el
sh-script.el
simula.el
sql.el
subword.el
tcl.el
vera-mode.el
verilog-mode.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
vhdl-mode.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
which-func.el
xref.el
xscheme.el