[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: BUG: ruby-mode.el : '/=' operator breaks following indentation

Yukihiro Matsumoto

12/4/2006 3:59:00 PM

Hi,

In message "Re: BUG: ruby-mode.el : '/=' operator breaks following indentation"
on Thu, 30 Nov 2006 08:35:06 +0900, Jeremy Henty <jeremy@chaos.org.uk> writes:

|Using emacs 21.4, ruby-mode.el from Ruby 1.8.5 (byte-compiled), if I
|open a file with the following code ...
|
|def foo
| x /= y
| bar
|end

Does this patch work for you?

matz.

diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 38d5b71..33c5901 100755
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -383,6 +383,8 @@ The variable ruby-indent-level controls the amount of indentation.
(t
(setq in-string (point))
(goto-char end))))
+ ((looking-at "/=")
+ (goto-char pnt))
((looking-at "/")
(cond
((and (not (eobp)) (ruby-expr-beg 'expr-re))

3 Answers

Jeremy Henty

12/4/2006 6:25:00 PM

0

On 2006-12-04, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> In message "Re: BUG: ruby-mode.el : '/=' operator breaks following indentation"
> on Thu, 30 Nov 2006 08:35:06 +0900, Jeremy Henty <jeremy@chaos.org.uk> writes:
>
>|Using emacs 21.4, ruby-mode.el from Ruby 1.8.5 (byte-compiled), if I
>|open a file with the following code ...
>|
>|def foo
>| x /= y
>| bar
>|end
>
> Does this patch work for you?

Yes. Thank you!

Jeremy Henty

MCP

3/16/2013 10:16:00 AM

0

On 15/03/2013 07:30, MCP wrote:
> On 2013-03-15 02:31 AM, MCP wrote:
>>>
>>>
>>>
>>>
>> Complaints-To: abuse@aioe.org
>
>
>
> Complaints-To: http://netreport.virgi...
>
Complaints-To: abuse@aioe.org

MCP

3/16/2013 3:12:00 PM

0

On 2013-03-16 06:15 AM, MCP wrote:
> On 15/03/2013 07:30, MCP wrote:
>> On 2013-03-15 02:31 AM, MCP wrote:
>>>>
>>>>
>>>>
>>>>
>>> Complaints-To: abuse@aioe.org
>>
>> Complaints-To: http://netreport.virgi...
>>
> Complaints-To: abuse@aioe.org

Complaints-To: http://netreport.virgi...