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: Sun, 03 Nov 2013 00:15:30 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

On 02.11.2013 14:38, Bozhidar Batsov wrote:
    Also see
    http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00236.html


Disabling this by default is not directly related to improving it. While
I think your suggestions for running this in an after-save-hook are
sound, I feel that the majority of Ruby programmers out there no longer
need this, so it doesn't make sense to have it on by default just to
make people search how to disable it (unless it stops messing with files
that are already using utf-8, which as you note is problematic for users
of Ruby 1.9).

I don't understand what you mean with the sentence in parentheses.

Ruby 1.9 still requires "coding: utf-8" cookies in unicode files that have non-ascii characters. There was a problem with inserting it ("coding: unknown" was often inserted instead), but that has been fixed.

P.S. I also think we should insert the comment in Ruby style (e.g. "#
encoding: utf-8") instead of the current Emacs style encoding comment
(or make this customizable).

Maybe. I'm not sure what would be the benefit, but it sounds fine to me.



reply via email to

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