emacs-devel
[Top][All Lists]
Advanced

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

Re: ruby-mode : ruby-mode-set-encoding


From: Stefan Monnier
Subject: Re: ruby-mode : ruby-mode-set-encoding
Date: Tue, 03 Mar 2009 20:14:40 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

>> I don't know if it's too intrusive, but it seems unrelated to Ruby.
>> Nobuyoshi Nakada, looking at the history of ruby-mode.el at
>> http://svn.ruby-lang.org/repos/ruby/trunk/misc, it appears the change is
>> due to you, could you explain what this is intended to do?
>> If it's not specific to Ruby, then maybe it should be moved elsewhere.

> It's mandatory for Ruby 1.9 or later.  Ruby 1.9 needs that
> "magic comment" to know in what encoding a script is written.
> Otherwise, the script is assumed as written with ASCII 7bit
> characters only, and non-ASCII character causes an exception if
> exists.

> Could you elaborate the problem?

So you're saying that Ruby uses the same "-*- coding: <foo> -*-" as used
by Emacs?  That makes sense, then, thank you,


        Stefan






reply via email to

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