summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-10 08:01:49 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-10 08:01:49 +0000
commit3d31020aeb6e59bd3b6bd12de00c854f570d4381 (patch)
tree64bd410107d8fd3b0ef6b644f11cf9888f837f7c /misc
parent91c7b7c465cd91d79a8809785490f77bbe97e631 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el15
1 files changed, 9 insertions, 6 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 763c076d8a..cffd853bb7 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -547,12 +547,15 @@ The variable ruby-indent-level controls the amount of indentation.
(setq bol (point))
(end-of-line)
(skip-chars-backward " \t")
- (and (re-search-backward "#" (save-excursion
- (beginning-of-line)
- (point)) t)
- (setq state (ruby-parse-region parse-start (point)))
- (nth 0 state)
- (goto-char (nth 0 state)))
+ (let ((pos (point)))
+ (and
+ (re-search-backward "#" (save-excursion
+ (beginning-of-line)
+ (point)) t)
+ (skip-chars-backward " \t")
+ (setq state (ruby-parse-region parse-start (point)))
+ (nth 0 state)
+ (goto-char pos)))
(or (bobp) (forward-char -1))
(and
(or (and (looking-at ruby-symbol-re)