Elías Gabriel Pérez
a582f2bb57
hideshow: Deep cleaning. (Bug#79934)
...
This is just a refactoring change, simplifying most of the code
and commentaries and removing/deprecating redundant code.
* etc/NEWS: Announce changes.
* lisp/progmodes/hideshow.el (hs-hide-hook, hs-show-hook): Use
'defcustom' instead of 'defvar'.
(hs-block-end-regexp, hs-forward-sexp-function)
(hs-adjust-block-beginning-function)
(hs-adjust-block-end-function, hs-find-block-beginning-function)
(hs-find-next-block-function)
(hs-looking-at-block-start-predicate)
(hs-inside-comment-predicate): Update docstring.
(hs-discard-overlays): Simplify.
(hs-life-goes-on): Update docstring.
(hs-hideable-region-p): Revert previous changes.
(hs-overlay-at): Simplify.
(hs-make-overlay): Fix performance.
(hs-block-positions): Rework.
(hs--add-indicators): Fix performance.
(hs-isearch-show-temporary): Simplify.
(hs-looking-at-block-start-p): Rename ...
(hs-looking-at-block-start-p--default): ... to this.
(hs-forward-sexp, hs-hide-comment-region): Mark as obsolete.
(hs-hide-block-at-point): Rework.
(hs-get-first-block): Rename ...
(hs-get-first-block-on-line): ... to this.
(hs-inside-comment-p--default): Rework.
(hs-find-block-beginning): Rename ...
(hs-find-block-beg-fn--default): ... to this.
(hs-find-next-block): Rename ...
(hs-find-next-block-fn--default): ... to this.
(hs-hide-level-recursive): Rework.
(hs-find-block-beginning-match): Remove function.
(hs-already-hidden-p): Simplify.
(hs-c-like-adjust-block-beginning): Mark as obsolete.
(hs-hide-all, hs-show-all, hs-hide-block, hs-show-block)
(hs-hide-level, hs-hide-initial-comment-block, hs-cycle):
Simplify.
* test/lisp/progmodes/hideshow-tests.el (hideshow-hide-level-1)
(hideshow-hide-level-2):
* test/lisp/progmodes/python-tests.el
(python-hideshow-hide-levels-3, python-hideshow-hide-levels-4):
* test/lisp/progmodes/hideshow-tests.el (hideshow-hide-level-1)
(hideshow-hide-level-2):
* test/lisp/progmodes/python-tests.el
(python-hideshow-hide-levels-3, python-hideshow-hide-levels-4):
Update tests.
2025-12-08 09:20:29 +02:00
..
2025-01-02 18:39:42 +01:00
2025-03-02 16:01:13 -05:00
2025-01-02 18:39:42 +01:00
2025-07-31 21:35:50 +03:00
2025-01-02 18:39:42 +01:00
2025-03-04 03:08:31 +01:00
2025-09-06 12:27:29 +03:00
2025-01-02 18:39:42 +01:00
2025-11-07 08:00:39 +02:00
2025-01-02 18:44:48 +01:00
2025-08-14 04:05:28 -04:00
2025-01-02 18:39:42 +01:00
2025-02-20 02:46:43 +01:00
2025-05-22 11:53:34 +02:00
2024-06-23 00:24:31 +02:00
2025-08-07 16:38:02 +03:00
2024-07-27 01:51:47 +02:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-11-12 21:26:02 +00:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-04-19 16:43:23 +03:00
2023-10-29 14:10:23 +02:00
2023-09-18 12:54:22 +02:00
2025-01-02 18:39:42 +01:00
2025-10-27 19:29:44 -07:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-23 03:14:37 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-08-14 04:05:28 -04:00
2025-01-05 05:32:01 +01:00
2025-01-02 18:39:42 +01:00
2025-12-08 09:20:29 +02:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-03-23 10:39:52 -07:00
2025-03-23 10:39:52 -07:00
2025-08-10 12:20:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-03-12 09:38:33 +08:00
2025-03-12 09:38:33 +08:00
2025-01-02 18:39:42 +01:00
2025-11-13 09:06:37 -05:00
2025-02-28 20:20:55 +01:00
2025-08-16 13:35:00 +02:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2025-02-22 14:48:29 +01:00
2025-01-02 18:39:42 +01:00
2024-10-22 12:35:18 -04:00
2025-11-08 07:04:52 -05:00
2025-01-02 18:39:42 +01:00
2025-01-02 18:39:42 +01:00
2024-12-22 13:50:41 +02:00
2025-01-02 18:39:42 +01:00
2023-10-16 08:56:53 +08:00
2025-01-02 18:39:42 +01:00
2025-08-23 16:34:43 +03:00
2025-01-02 18:39:42 +01:00
2025-11-08 09:04:32 +02:00
2025-01-02 18:39:42 +01:00