From: Leo <sdl.web@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: ruby-mode : ruby-mode-set-encoding
Date: Tue, 03 Mar 2009 13:55:53 +0000 [thread overview]
Message-ID: <xbaifxhupv6e.fsf@cam.ac.uk> (raw)
In-Reply-To: 87tz6ak9bq.fsf@gmail.com
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 :.
next prev parent reply other threads:[~2009-03-03 13:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 13:46 ruby-mode : ruby-mode-set-encoding Paul R
2009-03-03 13:55 ` Leo [this message]
2009-03-03 16:30 ` Stefan Monnier
2009-03-04 0:23 ` Nobuyoshi Nakada
2009-03-04 1:14 ` Stefan Monnier
2009-03-04 2:05 ` Stephen J. Turnbull
2009-03-04 4:07 ` Stefan Monnier
2009-03-04 6:10 ` Stephen J. Turnbull
2009-03-04 14:10 ` Stefan Monnier
2009-03-04 15:07 ` Stephen J. Turnbull
2009-03-04 16:40 ` Stefan Monnier
2009-03-04 8:25 ` Paul R
2009-03-04 14:13 ` Stefan Monnier
2009-03-04 14:56 ` Nobuyoshi Nakada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xbaifxhupv6e.fsf@cam.ac.uk \
--to=sdl.web@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.