1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 00:01:33 -08:00
emacs/test/lisp/progmodes
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
..
cperl-mode-resources Recognize the backslash operator in perl-mode 2022-09-20 21:11:40 +02:00
elisp-mode-resources lisp/emacs-lisp/lisp-mode.el: Fix parser state corruption. 2021-11-08 07:38:41 +01:00
flymake-resources
js-resources
ruby-mode-resources Fix Ruby indentation with double splat as first block param 2022-04-26 05:36:35 +03:00
sh-script-resources Improve indentation of some shell script forms 2022-02-07 09:13:54 +01:00
xref-resources
asm-mode-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
autoconf-tests.el Adjust better to Autoconf quoting style change 2022-07-05 23:27:17 -05:00
bat-mode-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
bug-reference-tests.el ; Add 2022 to copyright years. 2022-01-01 07:07:15 -05:00
cc-mode-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
compile-tests.el Add test for the gradle-android compilation message pattern 2022-07-11 12:29:12 +02:00
cperl-mode-tests.el Recognize the backslash operator in perl-mode 2022-09-20 21:11:40 +02:00
elisp-mode-tests.el Fix instrumented eval-defun not printing "Edebug:" to the echo area 2022-08-25 14:37:36 +02:00
etags-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
executable-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
f90-tests.el Prefer pos-bol and pos-eol in tests 2022-08-21 17:45:04 +02:00
flymake-tests.el Factor out function to check for clang in tests 2022-01-31 07:42:50 +01:00
gdb-mi-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
glasses-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
grep-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
hideshow-tests.el hideshow.el: Improve hs-toggle-hiding behavior 2022-09-24 11:08:29 -04:00
js-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
octave-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
opascal-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pascal-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
perl-mode-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
project-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
ps-mode-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
python-tests.el Fix syntax check in python-info-looking-at-beginning-of-defun 2022-09-23 17:39:53 +02:00
ruby-mode-tests.el ruby-toggle-block-space-before-parameters: New user option 2022-01-21 04:59:39 +02:00
scheme-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sh-script-tests.el Improve indentation of some shell script forms 2022-02-07 09:13:54 +01:00
sql-tests.el Rewrite sql-interactive-remove-continuation-prompt 2022-05-03 12:35:34 +02:00
subword-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tcl-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
xref-tests.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00