diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-10-04 04:51:08 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-10-04 04:51:08 +0000 |
commit | 758cb647c7ac9e02a9ee0d7cb0934a5c963481e0 (patch) | |
tree | a6ad21b14e176e9c3a39a775781b978950315543 /misc | |
parent | d426749ff0ec0348e8b2f9e32724ac715aad500b (diff) | |
download | ruby-758cb647c7ac9e02a9ee0d7cb0934a5c963481e0.tar.gz |
19991004
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-mode.el | 7 | ||||
-rw-r--r-- | misc/rubydb3x.el | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 2875608f07..50e4f50e87 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -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)) diff --git a/misc/rubydb3x.el b/misc/rubydb3x.el index 14e3dac83b..98ce1a1978 100644 --- a/misc/rubydb3x.el +++ b/misc/rubydb3x.el @@ -108,6 +108,8 @@ and source-file directory for your debugger." (gud-def gud-print "p %e" "\C-p" "Evaluate ruby expression at point.") (setq comint-prompt-regexp "^(rdb:-) ") + (if (boundp 'comint-last-output-start) + (set-marker comint-last-output-start (point))) (set (make-local-variable 'paragraph-start) comint-prompt-regexp) (run-hooks 'rubydb-mode-hook) ) |