[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: |
Sat, 02 Nov 2013 04:00:37 +0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Bozhidar Batsov <address@hidden> writes:
> 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?
AFAICT, even in 2.0 it's still important for Japanese users who may use
an encoding other than UTF-8.
Disabling the addition of magic comment when UTF-8 is used should be
done via adding '(utf-8 . nil) to `ruby-encoding-map', and even that I
can't support personally since our team, at work, is still on 1.9.3.
Also see http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00236.html
- Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Bozhidar Batsov, 2013/11/01
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Stefan Monnier, 2013/11/01
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default.,
Dmitry Gutov <=
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Bozhidar Batsov, 2013/11/02
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Dmitry Gutov, 2013/11/02
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Bozhidar Batsov, 2013/11/03
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Dmitry Gutov, 2013/11/03
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Bozhidar Batsov, 2013/11/04
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Bozhidar Batsov, 2013/11/06
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Dmitry Gutov, 2013/11/06
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Bozhidar Batsov, 2013/11/07
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Dmitry Gutov, 2013/11/07
- Re: Subject: [PATCH] * lisp/progmodes/ruby-mode.el: Set `ruby-insert-encoding-magic-comment' to nil by default., Bozhidar Batsov, 2013/11/13