unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Steve Revilak <steve@srevilak.net>
Cc: 8122@debbugs.gnu.org
Subject: bug#8122: 23.2.94; (prefer-coding-system 'utf-8) changes indentation behavior for	emacsclient
Date: Sun, 27 Feb 2011 05:58:31 +0200	[thread overview]
Message-ID: <83lj12nn6g.fsf@gnu.org> (raw)
In-Reply-To: <20110226225738.GA19212@srevilak.net>

> Date: Sat, 26 Feb 2011 17:57:38 -0500
> From: Steve Revilak <steve@srevilak.net>
> Cc: Kenichi Handa <handa@m17n.org>, 8122@debbugs.gnu.org
> 
> >If you start the Emacs daemon like this:
> >
> > emacs  -Q --eval "(prefer-coding-system 'utf-8-unix)" --daemon
> >                                          ^^^^^^^^^^
> >the problem goes away.
> 
> Eli,
> 
> As you suggested, I tried changing (prefer-coding-system 'utf-8) to
> (prefer-coding-system 'utf-8-unix).  Indeed, that makes the problem go
> away.
> 
> 
> >I propose the following change to fix this:
> >
> >--- lisp/international/mule-cmds.el~0	2011-01-08 12:45:14.000000000 -0500
> >+++ lisp/international/mule-cmds.el	2011-02-26 11:32:22.483284753 -0500
> >@@ -368,7 +368,8 @@
> > 		 (coding-system-get coding-system 'ascii-compatible-p)))
> > 	(setq default-file-name-coding-system coding-system)))
> >   (setq default-terminal-coding-system coding-system)
> >-  (setq default-keyboard-coding-system coding-system)
> >+  (setq default-keyboard-coding-system
> >+	(coding-system-change-eol-conversion coding-system 'unix))
> >   ;; Preserve eol-type from existing default-process-coding-systems.
> >   ;; On non-unix-like systems in particular, these may have been set
> >   ;; carefully by the user, or by the startup code, to deal with the
> 
> 
> I tested this patch on my system (with "(prefer-coding-system
> 'utf-8)").  It works.

Thanks for testing.  The fix is now on the release branch.





  reply	other threads:[~2011-02-27  3:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-26 14:31 bug#8122: 23.2.94; (prefer-coding-system 'utf-8) changes indentation behavior for emacsclient Steve Revilak
     [not found] ` <handler.8122.B.129873070619353.ack@debbugs.gnu.org>
2011-02-26 15:05   ` bug#8122: More regression notes for bug#8122 Steve Revilak
2011-02-26 15:49     ` Eli Zaretskii
2011-02-26 15:37 ` bug#8122: 23.2.94; (prefer-coding-system 'utf-8) changes indentation behavior for emacsclient Eli Zaretskii
2011-02-26 16:26 ` Eli Zaretskii
2011-02-26 22:57   ` Steve Revilak
2011-02-27  3:58     ` Eli Zaretskii [this message]
2011-02-26 16:40 ` Eli Zaretskii
2011-02-26 19:56   ` Stefan Monnier
2011-02-26 21:32     ` Eli Zaretskii

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=83lj12nn6g.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=8122@debbugs.gnu.org \
    --cc=steve@srevilak.net \
    /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).