|
From: | Bozhidar Batsov |
Subject: | Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default. |
Date: | Fri, 1 Nov 2013 20:51:07 +0200 |
IIUC, Ruby-2.0 doesn't require source code to be utf-8, so the> 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?
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.
[Prev in Thread] | Current Thread | [Next in Thread] |