1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

Fix end-of-defun in ruby-mode

* lisp/progmodes/ruby-mode.el (ruby-beginning-of-defun):
Return t in case of success.
This commit is contained in:
Dmitry Gutov 2022-12-17 03:13:29 +02:00
parent d9add66161
commit 3356c0cb16

View File

@ -1375,9 +1375,10 @@ With ARG, move backward multiple defuns. Negative ARG means
move forward."
(interactive "p")
(let (case-fold-search)
(and (re-search-backward (concat "^\\s *" ruby-defun-beg-re "\\_>")
nil t (or arg 1))
(beginning-of-line))))
(when (re-search-backward (concat "^\\s *" ruby-defun-beg-re "\\_>")
nil t (or arg 1))
(beginning-of-line)
t)))
(defun ruby-end-of-defun ()
"Move point to the end of the current defun.