From: nobu.nokada@... Date: 2002-07-22T03:01:27+09:00 Subject: Re: ruby-mode.el dies when breaking ternary exp. Hi, At Mon, 22 Jul 2002 02:31:56 +0900, Dan Debertin wrote: > Yes, that it does. Thanks! Although irrelevant to it, incidentally I made another patch too. How about this? Index: ruby-mode.el =================================================================== RCS file: /cvs/ruby/src/ruby/misc/ruby-mode.el,v retrieving revision 1.53 diff -u -2 -p -r1.53 ruby-mode.el --- ruby-mode.el 28 Jun 2002 14:40:54 -0000 1.53 +++ ruby-mode.el 21 Jul 2002 17:55:42 -0000 @@ -128,5 +128,6 @@ (defvar ruby-deep-arglist t - "*Deep indent argument lists when non-nil.") + "*Deep indent argument lists when non-nil. +Also ignores spaces after parenthesis when 'space.") (eval-when-compile (require 'cl)) @@ -371,4 +372,6 @@ The variable ruby-indent-level controls ) ((and (looking-at "(") ruby-deep-arglist) + (and (eq ruby-deep-arglist 'space) (looking-at ".[ \t]+") + (setq pnt (match-end 0))) (setq nest (cons (cons (char-after (point)) pnt) nest)) (setq pcol (cons (cons pnt depth) pcol)) -- Nobu Nakada