From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Revilak Newsgroups: gmane.emacs.bugs Subject: bug#8122: 23.2.94; (prefer-coding-system 'utf-8) changes indentation behavior for emacsclient Date: Sat, 26 Feb 2011 17:57:38 -0500 Message-ID: <20110226225738.GA19212@srevilak.net> References: <20110226143116.GB6286@srevilak.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sm4nu43k4a2Rpi4c" X-Trace: dough.gmane.org 1298761628 28806 80.91.229.12 (26 Feb 2011 23:07:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 26 Feb 2011 23:07:08 +0000 (UTC) Cc: 8122@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 27 00:07:04 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 1PtTE7-0002QF-Up for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Feb 2011 00:07:04 +0100 Original-Received: from localhost ([127.0.0.1]:54565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtTE7-0005Ah-8g for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Feb 2011 18:07:03 -0500 Original-Received: from [140.186.70.92] (port=57894 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtTDv-00059l-87 for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 18:06:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtTDq-0005XB-Kb for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 18:06:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtTDq-0005X7-Hx for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 18:06:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PtT5O-0001aW-8y; Sat, 26 Feb 2011 17:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Steve Revilak Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Feb 2011 22:58:02 +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.12987610746090 (code B ref 8122); Sat, 26 Feb 2011 22:58:02 +0000 Original-Received: (at 8122) by debbugs.gnu.org; 26 Feb 2011 22:57:54 +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 1PtT5F-0001a9-Hf for submit@debbugs.gnu.org; Sat, 26 Feb 2011 17:57:53 -0500 Original-Received: from mail1.sea5.speakeasy.net ([69.17.117.39]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtT5D-0001Zv-J5 for 8122@debbugs.gnu.org; Sat, 26 Feb 2011 17:57:52 -0500 Original-Received: (qmail 12614 invoked from network); 26 Feb 2011 22:57:45 -0000 Original-Received: from pool-98-110-160-36.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[98.110.160.36]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 26 Feb 2011 22:57:45 -0000 Content-Disposition: inline In-Reply-To: <83y652oikf.fsf@gnu.org> <83zkpioj8d.fsf@gnu.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 26 Feb 2011 17:58: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:44405 Archived-At: --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline >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 the speedy fix! Steve --sm4nu43k4a2Rpi4c Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEARECAAYFAk1phWIACgkQX7YJI4BuyDTe5QCg77udF8BORmG6Y9/WlmRuoB7G T9cAoNslJsbbdJ9zl57SgS0O4UXOPyOs =u0fk -----END PGP SIGNATURE----- --sm4nu43k4a2Rpi4c--