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: Nobuyoshi Nakada
Subject: Re: ruby-mode : ruby-mode-set-encoding
Date: Wed, 04 Mar 2009 23:56:58 +0900
User-agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Goj┼Ź) APEL/10.7 Emacs/22.3 (i386-apple-darwin9.6.0) MULE/5.0 (SAKAKI)

Hi,

At Wed, 04 Mar 2009 09:25:24 +0100,
Paul R wrote:
> Somebody mentionned some similarities with python. Should emacs provide
> a standard mechanism to insert this tag for script language modes that
> need it ?

It would be nice, however:

1. Ruby also recognizes Vim style magic comment, such as
   "encoding=utf-8", not only Emacs style.

2. we need ruby-encoding-map because of the difference between
   Ruby's encoding names list and Emacses one.  For instance,
   ruby-mode.el uses CP932 instead of Shift_JIS, since pure
   Shift_JIS is hardly used actually.

-- 
Nobu Nakada




reply via email to

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