emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r112522: * lisp/progmodes/ruby-mo


From: Stefan Monnier
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r112522: * lisp/progmodes/ruby-mode.el: First cut at SMIE support.
Date: Wed, 22 May 2013 14:55:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Don't you think it would be better to have these tests in
> test/automated/ruby-mode-tests.el?

I find it inconvenient, actually, because when the test fails, it's
a handy to be able to have a ruby-mode buffer where I can try out sexp
movement and indentation functions "in the usual way", together with
Edebug if needed.

> Having examples in ruby.rb that one has to check manually makes certain
> sense for syntax highligting, but automated indentation tests are easier
> to read and run.

Indentation checking is automated, via "(cd test/indent; make ruby.rb.test)"
It's not for syntax-highlighting, sadly.

> By the way, if you're going to return to this in the near future, I'd
> suggest you take a look at the automated tests. With SMIE enabled, a few
> of them fail and at least one infloops.

Ruby's SMIE indentation is very much "work in progress", indeed.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]