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: Leo
Subject: Re: ruby-mode : ruby-mode-set-encoding
Date: Tue, 03 Mar 2009 13:55:53 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

On 2009-03-03 13:46 +0000, Paul R wrote:
>   (defun ruby-mode-set-encoding ()
>     "Insert a magic comment header with the proper encoding if necessary."
>     ...
>
> and AFAIK only ruby mode use this type of thing. It is added to saving
> functions hooks :
>
>   (add-hook
>    (cond ((boundp 'before-save-hook)
>           (make-local-variable 'before-save-hook)
>           'before-save-hook)
>          ((boundp 'write-contents-functions) 'write-contents-functions)
>          ((boundp 'write-contents-hooks) 'write-contents-hooks))
>    'ruby-mode-set-encoding)

I agree. I think this is just too intrusive. Fortunately, I don't use
ruby.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.





reply via email to

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