unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Akinori MUSHA" <knu@iDaemons.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: ruby-mode.el updated
Date: Mon, 14 Oct 2013 23:49:31 +0900	[thread overview]
Message-ID: <86wqlfrjpg.knu@iDaemons.org> (raw)
In-Reply-To: <525B3C9E.1080507@yandex.ru>

[-- Attachment #1: Type: text/plain, Size: 1389 bytes --]

Hi,

At Mon, 14 Oct 2013 03:36:46 +0300,
Dmitry Gutov wrote:
> On 08.10.2013 13:55, Dmitry Gutov wrote:
> > Your approach with explicitly following how the encoder works (looking
> > up :prefer-utf-8 property, and defaulting to
> > default-buffer-file-coding-system) is workable, but I'd rather move
> > ruby-mode-set-encoding to after-save-hook and just use the exact
> > encoding that was used to save the file (after #15535 is fixed,
> > hopefully soon).
> >
> > And speaking of "reflect the change of the default source encoding in
> > Ruby 2.0", are you sure it's a good idea to do now?
> >
> > Some people are still using Ruby 1.9.3 in production (myself included),
> > so I'd rather the defaults were safe for this use case.
>
> I've installed your changes, aside from those mentioned above, in
> revision 114654. Please test and see if I've missed anything.

Thank you so much!

OK, I'll test it out on Emacs trunk and see how the amount of
compatibility code can be reduced.

> Calling `ruby-mode-set-encoding' in `after-save-hook' is a bit
> questionable, but this way we don't depend on low-level details of how
> coding systems in Emacs work.

OK.

> One drawback that I've seen so far is that `flymake-after-save-hook'
> usually ends up before `ruby-mode-set-encoding', so it will show an
> error, once.

I think it's a minor problem.

--
Akinori MUSHA / https://akinori.org/

[-- Attachment #2: OpenPGP Digital Signature --]
[-- Type: application/pgp-signature, Size: 196 bytes --]

      reply	other threads:[~2013-10-14 14:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <864n8sj2h8.knu@iDaemons.org>
2013-10-08 10:55 ` ruby-mode.el updated Dmitry Gutov
2013-10-14  0:36   ` Dmitry Gutov
2013-10-14 14:49     ` Akinori MUSHA [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86wqlfrjpg.knu@iDaemons.org \
    --to=knu@idaemons.org \
    --cc=dgutov@yandex.ru \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).