mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
19991004
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d426749ff0
commit
758cb647c7
20 changed files with 125 additions and 65 deletions
|
@ -576,12 +576,11 @@ An end of a defun is found by moving forward from the beginning of one."
|
|||
|
||||
(defun ruby-reindent-then-newline-and-indent ()
|
||||
(interactive "*")
|
||||
(save-excursion
|
||||
(delete-region (point) (progn (skip-chars-backward " \t") (point))))
|
||||
(newline)
|
||||
(save-excursion
|
||||
(forward-line -1)
|
||||
(indent-according-to-mode))
|
||||
(end-of-line 0)
|
||||
(indent-according-to-mode)
|
||||
(delete-region (point) (progn (skip-chars-backward " \t") (point))))
|
||||
(indent-according-to-mode))
|
||||
|
||||
(fset 'ruby-encomment-region (symbol-function 'comment-region))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue