emacs-gpu/test/lisp/progmodes
Dmitry Gutov fd403a5c5a Fix ruby-add-log-current-method after nested class definition
* lisp/progmodes/ruby-mode.el (ruby--add-log-current-indent):
New function.
(ruby-add-log-current-method): Use it.
Check for "class" and "module" indentation to filter out the
definitions which don't include the given position.  Also try to
match "def" only once (for performance), because if the closest
one doesn't include the given position, none will.

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-add-log-current-method-after-inner-class-outside-methods)
(ruby-add-log-current-method-after-inner-class-outside-methods-with-text):
New tests.
2022-12-15 03:21:44 +02:00
..
cperl-mode-resources Improve HERE document detection in perl-mode 2022-10-20 07:34:38 -03:00
elisp-mode-resources
flymake-resources
js-resources
project-resources Bring back the project--value-in-dir logic 2022-12-09 18:19:36 +02:00
ruby-mode-resources ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
sh-script-resources
xref-resources
asm-mode-tests.el
autoconf-tests.el Adjust better to Autoconf quoting style change 2022-07-05 23:27:17 -05:00
bat-mode-tests.el
bug-reference-tests.el
cc-mode-tests.el
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
eglot-tests.el Fix Tramp tests in eglot-tests, prefix tests uniquely 2022-12-14 10:52:04 +01: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
executable-tests.el
f90-tests.el Prefer pos-bol and pos-eol in tests 2022-08-21 17:45:04 +02:00
flymake-tests.el
gdb-mi-tests.el
glasses-tests.el
grep-tests.el
hideshow-tests.el hideshow.el: Improve hs-toggle-hiding behavior 2022-09-24 11:08:29 -04:00
js-tests.el
octave-tests.el
opascal-tests.el
pascal-tests.el
perl-mode-tests.el
project-tests.el ; Fix two byte-compiler warnings 2022-12-10 10:48:28 +01:00
ps-mode-tests.el
python-tests.el Add highlighting Python operators (bug#59629) 2022-12-01 14:45:10 +02:00
ruby-mode-tests.el Fix ruby-add-log-current-method after nested class definition 2022-12-15 03:21:44 +02:00
scheme-tests.el
sh-script-tests.el
sql-tests.el
subword-tests.el
tcl-tests.el
xref-tests.el