1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00
emacs/test/lisp/progmodes
Daniel Martín ef16339918 Make js-beginning-of-defun return non-nil on success
The docstring of 'beginning-of-defun-function' says that the
function shall return non-nil when it found the beginning
of a defun.  This is specially important because the calling
code decides when to move point depending on the return value.
* lisp/progmodes/js.el (js-beginning-of-defun)
(js--beginning-of-defun-flat): Return non-nil when the beginning
of a defun is found.  (Bug#64283)

* test/lisp/progmodes/js-tests.el (js-mode-end-of-defun): Add a unit
test.
2023-06-29 08:37:15 +03:00
..
c-ts-mode-resources Fix some cases of incomplete code's indentation [c/c++-ts-mode] 2023-04-10 02:58:46 +03:00
cperl-mode-resources ; Fix typos 2022-12-26 10:42:02 +01:00
elisp-mode-resources lisp/emacs-lisp/lisp-mode.el: Fix parser state corruption. 2021-11-08 07:38:41 +01:00
flymake-resources Keep and report "foreign" diangnostics in flymake-cc Flymake backend 2021-09-14 12:22:15 +01:00
go-ts-mode-resources Fix switch statement indentation for go-ts-mode (bug#61238) 2023-02-04 19:26:05 +01:00
js-resources
project-resources Bring back the project--value-in-dir logic 2022-12-09 18:19:36 +02:00
ruby-mode-resources ruby-mode: Fix method call indentation in rhs of multiple assignment 2023-02-28 23:01:04 +02: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 2023 to copyright years. 2023-01-01 05:31:12 -05:00
autoconf-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bat-mode-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bug-reference-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
c-ts-mode-tests.el Cleanup preproc indent for c-ts-mode (bug#61558) 2023-02-19 20:47:05 +01:00
cc-mode-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
compile-tests.el Add tests for compilation support for TypeScript (bug#61104) 2023-02-04 09:19:40 +01:00
cperl-mode-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eglot-tests.el Fix a couple of eglot-tests 2023-04-11 07:40:15 +01:00
elisp-mode-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
etags-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
executable-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
f90-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
flymake-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
gdb-mi-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
glasses-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
go-ts-mode-tests.el Fix switch statement indentation for go-ts-mode (bug#61238) 2023-02-04 19:26:05 +01:00
grep-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
hideshow-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
js-tests.el Make js-beginning-of-defun return non-nil on success 2023-06-29 08:37:15 +03:00
octave-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
opascal-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
pascal-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
perl-mode-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
project-tests.el Make project-current not error out inside non-existent dirs 2023-01-28 03:20:29 +02:00
ps-mode-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
python-tests.el Revert "Enhance Python font-lock to support multilines" 2023-06-03 10:09:33 +03:00
ruby-mode-tests.el ruby-add-log-current-method: Reduce the use of 'nreverse' 2023-04-13 00:46:11 +03:00
ruby-ts-mode-tests.el Skip ruby-ts-imenu-index test if needed 2023-03-28 13:04:09 +02:00
scheme-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sh-script-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sql-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
subword-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
tcl-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
xref-tests.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00