emacs-devel
[Top][All Lists]
Advanced

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

Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-enc


From: Dmitry Gutov
Subject: Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default.
Date: Wed, 13 Nov 2013 21:19:45 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

On 13.11.2013 16:36, Bozhidar Batsov wrote:
I've attached here a second patch that adds support for always inserting
a utf-8 encoding comment. I've also simplified a bit the code of
`ruby-mode-set-encoding' (by breaking it into several functions) as it
was quite convoluted.

Looks good to me, with a couple of notes.

1. ruby-insert-encoding-magic-comment docstring width exceeds the default value of emacs-lisp-docstring-fill-column. Maybe you'd like to refill it.

2. I'd swap the `or' clauses in ruby--encoding-comment-required-p. The second one, though rare, should be much faster.

That aside, have you managed to run the test suite?

On 7 November 2013 13:06, Dmitry Gutov <address@hidden
<mailto:address@hidden>> wrote:

    On 07.11.2013 12:23, Bozhidar Batsov wrote:

        Btw, Dimitry - please add some info the ruby-mode.el about
        running the
        tests. I tried evaluating and running them manually, but this
        crashed my
        Emacs (the tests hogged my CPU completely and I had to kill Emacs).
        Maybe there is something wrong with them right now, or perhaps they
        should invoked in some manner I'm not aware of.


    I'm not aware of any problems running the tests, looks like a bug.
    Weren't you able to stop the freezing with C-g, at least?

    I just open ruby-mode-tests.el, M-x eval-buffer, M-x ert RET.
    They run fine.






reply via email to

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