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: Sat, 26 Feb 2011 18:26:10 +0200 Message-ID: <83zkpioj8d.fsf@gnu.org> References: <20110226143116.GB6286@srevilak.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1298738797 20564 80.91.229.12 (26 Feb 2011 16:46:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 26 Feb 2011 16:46:37 +0000 (UTC) Cc: 8122@debbugs.gnu.org To: Steve Revilak , Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 26 17:46:32 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 1PtNHo-0000IZ-VB for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Feb 2011 17:46:30 +0100 Original-Received: from localhost ([127.0.0.1]:57277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtNHm-0000wN-M5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Feb 2011 11:46:26 -0500 Original-Received: from [140.186.70.92] (port=47238 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtN8W-00045S-Ft for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 11:36:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtN8P-00033t-Ld for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 11:36:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtN8P-00033m-Jz for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 11:36:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PtMz0-0007k0-CN; Sat, 26 Feb 2011 11:27: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: Sat, 26 Feb 2011 16:27: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.129873757629671 (code B ref 8122); Sat, 26 Feb 2011 16:27:02 +0000 Original-Received: (at 8122) by debbugs.gnu.org; 26 Feb 2011 16:26:16 +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 1PtMyF-0007iW-1W for submit@debbugs.gnu.org; Sat, 26 Feb 2011 11:26:15 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtMyC-0007iJ-RB for 8122@debbugs.gnu.org; Sat, 26 Feb 2011 11:26:14 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LH800C00G1ZLV00@a-mtaout21.012.net.il> for 8122@debbugs.gnu.org; Sat, 26 Feb 2011 18:26:06 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.53.157]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LH800CRWGBGM300@a-mtaout21.012.net.il>; Sat, 26 Feb 2011 18:26:06 +0200 (IST) In-reply-to: <20110226143116.GB6286@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 11:27: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:44392 Archived-At: > Date: Sat, 26 Feb 2011 09:31:16 -0500 > From: Steve Revilak > Cc: > > (1) Start emacs in daemon mode, as follows: > env TMPDIR=$HOME/tmp emacs -Q --eval "(prefer-coding-system 'utf-8)" --daemon > > (2) Use emacsclient to connect to the server started in step (1), > editing a new text file. > rm -f a.txt > env TMPDIR=$HOME/tmp emacsclient a.txt > > (3) In the buffer for a.txt, type the lines that appear below. Do not > press return after typing "ccc" > > aaa > bbb > > ccc > > (4) With point at the end of line "ccc", press RETURN. If "ccc" > appeared in line 5 of the buffer, then the cursor will appear at > line 6, column 2. > > Expected behavior: after pressing RETURN, the cursor should have > appeared line line 6, column 0. I found the reason for this: when keyboard-coding-system is utf-8, typing RET is decoded as C-j. If you start the Emacs daemon like this: emacs -Q --eval "(prefer-coding-system 'utf-8-unix)" --daemon ^^^^^^^^^^ the problem goes away.