summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-10-29 09:25:48 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-10-29 09:25:48 +0000
commit9868574ae43c0fdc49a9d3fc0431bb0613507bfa (patch)
tree4a0007dc6a1e7e8ae71ad40000b9ba56332dbaf2 /misc
parent419abc80a3b260936a5c1b92690a4885774b29c6 (diff)
downloadruby-9868574ae43c0fdc49a9d3fc0431bb0613507bfa.tar.gz
ruby-9868574ae43c0fdc49a9d3fc0431bb0613507bfa.tar.xz
ruby-9868574ae43c0fdc49a9d3fc0431bb0613507bfa.zip
19991029
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el10
1 files changed, 2 insertions, 8 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 50e4f50e8..41fd1f66f 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -172,20 +172,14 @@ The variable ruby-indent-level controls the amount of indentation.
(defun ruby-indent-to (x)
(if x
(let (shift top beg)
- (and (< x 0)
- (error "invalid nest"))
+ (and (< x 0) (error "invalid nest"))
(setq shift (current-column))
(beginning-of-line)
(setq beg (point))
(back-to-indentation)
(setq top (current-column))
(skip-chars-backward " \t")
- (cond
- ((>= x shift)
- (setq shift 0))
- ((>= shift top)
- (setq shift (- shift top)))
- (t (setq shift 0)))
+ (if (>= shift top) (setq shift (- shift top)))
(if (and (bolp)
(= x top))
(move-to-column (+ x shift))