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: Stefan Monnier
Subject: Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default.
Date: Fri, 01 Nov 2013 13:46:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Since Ruby 1.8 reached end of life in the summer and most projects these
> days use Ruby 2.0 (which assumes source files use utf8 by default) having
> ruby-insert-encoding-magic-comment’ doesn’t make much sense.  Most people
> just disable it anyways, so why not have it disabled by default?  

IIUC, Ruby-2.0 doesn't require source code to be utf-8, so the
magic-comment is not obsolete.  IOW, what needs to be done is to make
Emacs prefer utf-8 for ruby files (it's probably the case already), and
to make ruby-mode-set-encoding only insert the magic comment if it is
different from utf-8.


        Stefan "not a Ruby user"


PS: The `ruby' package in Debian stable is still at 1.9.1.



reply via email to

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