1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/lisp/progmodes
Elías Gabriel Pérez 959345f602 hideshow: Rewrite 'hs-special-modes-alist'
Rewrite the format in 'hs-special-modes-alist' to make easier to
exclude some values, add support for settings inheritance
according to current major mode and parents, and support string
hiding for lisp modes.

Bug#79671

* lisp/progmodes/hideshow.el (hs-modes-alist): New variable.
(hs-special-modes-alist): Mark as obsolete.
(hs-forward-sexp-func, hs-adjust-block-beginning)
(hs-find-block-beginning-func, hs-find-next-block-func)
(hs-looking-at-block-start-p-func): Set default values to nil.
(hs-inside-comment-p): Remove function.
(hs-adjust-block-end, hs-treesit-things): New buffer-local
variables.
(hs-block-positions): Minor updates.
(hs--get-mode-value): New function.
(hs-grok-mode-type): Rewrite.
* lisp/progmodes/f90.el (hs-special-modes-alist):
* lisp/progmodes/fortran.el (hs-special-modes-alist):
* lisp/progmodes/icon.el (icon-mode):
* lisp/progmodes/lua-mode.el (lua-mode):
* lisp/progmodes/python.el (python-base-mode):
* lisp/progmodes/verilog-mode.el (verilog-mode):
* lisp/progmodes/vhdl-mode.el (vhdl-hs-minor-mode): Rewrite
settings.
* lisp/progmodes/python.el (python-ts-hs-adjust-block-end-fn):
New function.
* lisp/treesit.el (treesit-hs-block-end)
(treesit-hs-find-block-beginning, treesit-hs-find-next-block)
(treesit-hs-looking-at-block-start-p): Minor updates.
* doc/emacs/programs.texi (Hideshow):
* etc/NEWS: Document changes.
2025-11-04 19:15:10 +02:00
..
antlr-mode.el
asm-mode.el
autoconf.el
bat-mode.el
bug-reference.el (read-only-keymap-*): Be more careful with the namespace 2025-10-12 09:50:31 -04:00
c-ts-common.el
c-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
cc-align.el CC Mode: Don't indent a construct in a class after a template 2025-09-19 20:51:45 +00:00
cc-awk.el
cc-bytecomp.el
cc-cmds.el
cc-defs.el
cc-engine.el
cc-fonts.el
cc-guess.el
cc-langs.el
cc-menus.el
cc-mode.el
cc-styles.el
cc-vars.el CC Mode: Don't indent a construct in a class after a template 2025-09-19 20:51:45 +00:00
cfengine.el
cl-font-lock.el
cmacexp.el
cmake-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
compile.el * lisp/progmodes/compile.el (compilation--set-up-margin): Fix. 2025-10-19 20:56:30 +03:00
cperl-mode.el
cpp.el
csharp-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
cwarn.el
dcl-mode.el
dockerfile-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
ebnf-abn.el
ebnf-bnf.el
ebnf-dtd.el
ebnf-ebx.el
ebnf-iso.el
ebnf-otz.el
ebnf-yac.el
ebnf2ps.el
ebrowse.el
eglot.el Eglot: release version 1.19 2025-10-23 21:47:04 +01:00
elisp-mode.el ; (elisp-fontify-symbol): Put less text props when possible 2025-10-26 17:39:10 +01:00
elixir-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
erts-mode.el
etags-regen.el Fix etags-regen-mode for remote projects (bug#79358) 2025-09-29 02:40:28 +03:00
etags.el
executable.el
f90.el hideshow: Rewrite 'hs-special-modes-alist' 2025-11-04 19:15:10 +02:00
flymake-cc.el
flymake-proc.el
flymake.el More reliably check if a frame is the daemon's initial frame 2025-10-30 20:27:19 +02:00
fortran.el hideshow: Rewrite 'hs-special-modes-alist' 2025-11-04 19:15:10 +02:00
gdb-mi.el Fix gdb-mi startup when asking user about debuginfod 2025-09-14 08:55:44 +03:00
glasses.el
go-ts-mode.el Cache compiled tree-sitter queries (bug#79363) 2025-10-20 22:12:35 -07:00
grep.el
gud.el "M-x lldb": bugfix source code location without column 2025-09-06 12:04:30 +03:00
heex-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
hideif.el
hideshow.el hideshow: Rewrite 'hs-special-modes-alist' 2025-11-04 19:15:10 +02:00
icon.el hideshow: Rewrite 'hs-special-modes-alist' 2025-11-04 19:15:10 +02:00
inf-lisp.el
java-ts-mode.el Fix fontification for var in java-ts-mode (bug#79626) 2025-11-02 14:17:23 -08:00
js.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
json-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
ld-script.el
lua-mode.el hideshow: Rewrite 'hs-special-modes-alist' 2025-11-04 19:15:10 +02:00
lua-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
m4-mode.el
make-mode.el
meta-mode.el
mixal-mode.el
modula2.el
octave.el
opascal.el
pascal.el
peg.el peg.el: Fix bug#79502 a bit more 2025-09-27 22:57:02 -04:00
perl-mode.el
php-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
prog-mode.el
project.el ; project-prompt-project-name: Fix pcase usage. 2025-10-01 11:27:25 +01:00
prolog.el
ps-mode.el
python.el hideshow: Rewrite 'hs-special-modes-alist' 2025-11-04 19:15:10 +02:00
ruby-mode.el ruby-syntax-propertize: Add exception for /= 2025-09-16 02:17:13 +03:00
ruby-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
rust-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
scheme.el (scheme-mode-variables): Fix bug#79282 2025-09-10 19:05:15 -04:00
sh-script.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
simula.el
sql.el
subword.el
tcl.el
typescript-ts-mode.el Check if treesit-major-mode-remap-alist is bound in ts-modes autoload forms 2025-10-16 09:45:30 +03:00
vera-mode.el
verilog-mode.el hideshow: Rewrite 'hs-special-modes-alist' 2025-11-04 19:15:10 +02:00
vhdl-mode.el hideshow: Rewrite 'hs-special-modes-alist' 2025-11-04 19:15:10 +02:00
which-func.el
xref.el Merge from origin/emacs-30 2025-10-18 06:15:46 -04:00
xscheme.el