From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: ruby-mode : ruby-mode-set-encoding Date: Tue, 03 Mar 2009 20:14:40 -0500 Message-ID: References: <87tz6ak9bq.fsf@gmail.com> <49adca00.14098e0a.2c79.ffff83d1@mx.google.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236129299 26704 80.91.229.12 (4 Mar 2009 01:14:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2009 01:14:59 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Nobuyoshi Nakada Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 04 02:16:14 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LefiW-0003jI-Nh for ged-emacs-devel@m.gmane.org; Wed, 04 Mar 2009 02:16:13 +0100 Original-Received: from localhost ([127.0.0.1]:34002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LefhB-0008SR-2x for ged-emacs-devel@m.gmane.org; Tue, 03 Mar 2009 20:14:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lefh5-0008Qw-MF for emacs-devel@gnu.org; Tue, 03 Mar 2009 20:14:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lefh3-0008Qk-HR for emacs-devel@gnu.org; Tue, 03 Mar 2009 20:14:42 -0500 Original-Received: from [199.232.76.173] (port=55507 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lefh3-0008Qh-EB for emacs-devel@gnu.org; Tue, 03 Mar 2009 20:14:41 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:8417) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lefh3-0002sB-5w for emacs-devel@gnu.org; Tue, 03 Mar 2009 20:14:41 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApAFAFtlrUnO+KX2/2dsb2JhbACBTtU/hAgGhAE X-IronPort-AV: E=Sophos;i="4.38,297,1233550800"; d="scan'208";a="34663122" Original-Received: from 206-248-165-246.dsl.teksavvy.com (HELO pastel.home) ([206.248.165.246]) by ironport2-out.teksavvy.com with ESMTP; 03 Mar 2009 20:14:40 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 66A604B454; Tue, 3 Mar 2009 20:14:40 -0500 (EST) In-Reply-To: <49adca00.14098e0a.2c79.ffff83d1@mx.google.com> (Nobuyoshi Nakada's message of "Wed, 04 Mar 2009 09:23:23 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109429 Archived-At: >> 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: -*-" as used by Emacs? That makes sense, then, thank you, Stefan