mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* misc/ruby-style.el (ruby-style-label-indent): fix for labels inside
blocks in switch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f468e000ce
commit
f11ac55489
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Feb 24 05:09:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* misc/ruby-style.el (ruby-style-label-indent): fix for labels inside
|
||||||
|
blocks in switch.
|
||||||
|
|
||||||
Sun Feb 24 03:52:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Feb 24 03:52:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* util.c (valid_filename): use O_EXCL to get rid of clobbering
|
* util.c (valid_filename): use O_EXCL to get rid of clobbering
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
(defun ruby-style-label-indent (x)
|
(defun ruby-style-label-indent (x)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(unless (progn (backward-up-list) (back-to-indentation)
|
(unless (progn (backward-up-list) (back-to-indentation)
|
||||||
(> (point) (cdr x)))
|
(>= (point) (cdr x)))
|
||||||
(goto-char (cdr x))
|
(goto-char (cdr x))
|
||||||
(condition-case ()
|
(condition-case ()
|
||||||
(progn
|
(progn
|
||||||
|
|
Loading…
Add table
Reference in a new issue