From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <83lj12nn6g.fsf@gnu.org> References: <20110226225738.GA19212@srevilak.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1298779617 31988 80.91.229.12 (27 Feb 2011 04:06:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Feb 2011 04:06:57 +0000 (UTC) Cc: 8122@debbugs.gnu.org To: Steve Revilak Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 27 05:06:53 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PtXuG-0001B3-JB for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Feb 2011 05:06:52 +0100 Original-Received: from localhost ([127.0.0.1]:56772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtXuF-0004Ir-Ts for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Feb 2011 23:06:51 -0500 Original-Received: from [140.186.70.92] (port=37556 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtXuB-0004Ii-8v for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 23:06:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtXu9-0000QT-SX for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 23:06:47 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtXu9-0000QP-RE for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 23:06:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PtXmg-0001Al-0q; Sat, 26 Feb 2011 22:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2011 03:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8122 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8122-submit@debbugs.gnu.org id=B8122.12987791174476 (code B ref 8122); Sun, 27 Feb 2011 03:59:01 +0000 Original-Received: (at 8122) by debbugs.gnu.org; 27 Feb 2011 03:58:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtXmG-0001A9-Ns for submit@debbugs.gnu.org; Sat, 26 Feb 2011 22:58:36 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtXmD-00019v-4P for 8122@debbugs.gnu.org; Sat, 26 Feb 2011 22:58:34 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LH900F00C3K7U00@a-mtaout21.012.net.il> for 8122@debbugs.gnu.org; Sun, 27 Feb 2011 05:58:26 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.53.157]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LH900FN0CDD05B0@a-mtaout21.012.net.il>; Sun, 27 Feb 2011 05:58:26 +0200 (IST) In-reply-to: <20110226225738.GA19212@srevilak.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 26 Feb 2011 22:59:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44409 Archived-At: > Date: Sat, 26 Feb 2011 17:57:38 -0500 > From: Steve Revilak > Cc: Kenichi Handa , 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.