kobarity
2084f4ada3
hideshow.el: Improve hs-toggle-hiding behavior
...
* lisp/progmodes/hideshow.el
(hs-find-block-beginning-match): New function to be used in
`hs-already-hidden-p'.
(hs-already-hidden-p): Add check if beginning of line is inside a
block.
(hs-toggle-hiding): Don't change to selected-window's buffer when
event arg is absent.
* test/lisp/progmodes/hideshow-tests.el
(hideshow-tests-with-temp-buffer-selected): New helper macro.
(hideshow-tests-make-event-at): New helper function.
(hideshow-already-hidden-p-1): New test.
(hideshow-toggle-hiding-1): New test.
(hideshow-mouse-toggle-hiding-1): New test (bug#52092).
2022-09-24 11:08:29 -04:00
..
2022-08-04 17:33:34 +02:00
2022-08-08 13:47:15 +02:00
2022-08-21 17:45:04 +02:00
2022-08-21 17:45:04 +02:00
2022-09-23 16:36:16 -04:00
2022-09-19 17:54:46 -07:00
2022-09-14 17:27:21 -07:00
2022-05-26 12:16:04 -04:00
2022-08-21 17:45:04 +02:00
2022-09-22 14:20:15 +02:00
2022-09-17 09:51:22 +03:00
2022-08-21 17:45:04 +02:00
2022-06-26 15:08:57 +03:00
2022-09-17 17:50:38 +02:00
2022-09-24 14:07:57 +02:00
2022-09-24 11:08:29 -04:00
2022-09-14 14:20:52 +03:00
2022-09-12 09:34:23 +02:00
2022-08-02 10:21:22 +02:00
2022-05-31 18:08:33 +02:00
2022-09-08 16:08:42 -04:00
2022-08-04 17:33:34 +02:00
2022-08-21 22:18:49 +02:00
2022-06-17 20:08:55 +02:00
2022-09-08 16:08:42 -04:00
2022-08-08 11:50:33 +02:00
2022-06-24 11:04:51 +02:00
2022-08-17 16:21:09 +02:00
2022-09-08 16:08:42 -04:00
2022-08-17 16:21:09 +02:00
2022-09-14 14:20:52 +03:00
2022-09-21 10:25:06 +02:00
2022-08-05 11:47:05 +02:00
2022-07-28 15:07:34 +02:00
2022-09-19 11:39:29 +02:00
2022-08-28 11:43:50 -04:00
2022-07-23 01:37:59 +02:00
2022-06-06 16:12:39 +02:00
2022-09-21 09:15:47 +02:00
2022-06-05 18:23:17 +02:00
2022-08-09 15:46:54 +02:00
2022-08-21 17:45:04 +02:00
2022-07-08 20:58:33 +03:00
2022-06-27 12:22:05 +02:00
2022-06-05 09:52:09 +03:00
2022-09-08 16:08:42 -04:00
2022-06-14 10:04:56 +03:00
2022-07-26 14:23:30 +02:00
2022-09-18 14:49:27 +02:00
2022-09-14 21:58:04 +02:00
2022-08-21 17:45:04 +02:00
2022-08-05 12:28:59 +02:00
2022-07-10 18:13:50 +02:00
2022-08-21 17:45:04 +02:00
2022-09-08 16:08:42 -04:00
2022-09-16 15:33:12 +02:00
2022-09-08 16:08:42 -04:00
2022-08-21 17:45:04 +02:00
2022-09-13 15:40:41 +02:00
2022-07-25 10:08:41 +08:00
2022-09-14 10:23:45 +02:00
2022-08-08 11:50:33 +02:00
2022-08-26 12:53:49 +03:00