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 09:31:16 -0500 Message-ID: <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="bCsyhTFzCvuiizWE" X-Trace: dough.gmane.org 1298731029 15158 80.91.229.12 (26 Feb 2011 14:37:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 26 Feb 2011 14:37:09 +0000 (UTC) To: 8122@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 26 15:37:02 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 1PtLGT-0001MJ-HG for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Feb 2011 15:36:58 +0100 Original-Received: from localhost ([127.0.0.1]:43248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtLGS-0000nQ-IS for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Feb 2011 09:36:56 -0500 Original-Received: from [140.186.70.92] (port=50741 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtLGJ-0000lE-2r for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 09:36:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtLGH-0003OS-Rl for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 09:36:47 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtLGH-0003OK-QA for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 09:36:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PtLBi-00052d-OX; Sat, 26 Feb 2011 09:32: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 14:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8122 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.129873070619353 (code B ref -1); Sat, 26 Feb 2011 14:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Feb 2011 14:31:46 +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 1PtLBR-000525-Fm for submit@debbugs.gnu.org; Sat, 26 Feb 2011 09:31:45 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtLBO-00051p-U8 for submit@debbugs.gnu.org; Sat, 26 Feb 2011 09:31:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtLBI-0002TH-Ih for submit@debbugs.gnu.org; Sat, 26 Feb 2011 09:31:37 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:57036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtLBI-0002TD-Fk for submit@debbugs.gnu.org; Sat, 26 Feb 2011 09:31:36 -0500 Original-Received: from [140.186.70.92] (port=37023 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtLBG-0006Bv-MZ for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 09:31:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtLBF-0002SX-3b for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 09:31:34 -0500 Original-Received: from mail6.sea5.speakeasy.net ([69.17.117.50]:51495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtLBE-0002SE-M4 for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2011 09:31:33 -0500 Original-Received: (qmail 11408 invoked from network); 26 Feb 2011 14:31:29 -0000 Original-Received: from pool-98-110-160-36.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[98.110.160.36]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 26 Feb 2011 14:31:29 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 26 Feb 2011 09:32: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:44382 Archived-At: --bCsyhTFzCvuiizWE Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your report will be posted to the bug-gnu-emacs@gnu.org mailing list and the gnu.emacs.bug news group, and at http://debbugs.gnu.org. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': In the 23.2.94 emacs pretest, the use of (prefer-coding-system 'utf-8) changes text-mode indentation behavior with emacsclient/emacs --daemon. Steps to reproduce (1) Start emacs in daemon mode, as follows: env TMPDIR=3D$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=3D$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. =20 Expected behavior: after pressing RETURN, the cursor should have appeared line line 6, column 0. (5) With the cursor at line 6, column 2. Press ESC-\ (aka "delete-horizonal-space"). Now, the cursor appears in line 6, column 0 (6) With the cursor in line 6, column 0, press RETURN. The cursor now appears in line 7, column 2. Expected behavior: after pressing RETURN, the cursor should have appeared in line 7, column 0. Regression Notes: * The behavior I've described appears to be specific to emacsclient. For example,=20 emacs -Q --eval "(prefer-coding-system 'utf-8)" does not exhibit the behavior I've described. * The last emacs pretest that I used on this system was 23.2.91. 23.2.91 did not exhibit this behavior. Later today, I will try building 23.2.92 and 23.2.93, to get see if the behavior appeared in those versions. * I've observed this behavior on Mac OS X=20 Darwin oatmeal 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 = PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386 and on OpenSUSE 11.3. Linux sunny 2.6.34.7-0.7-desktop #1 SMP PREEMPT 2010-12-13 11:13:53 +010= 0 x86_64 x86_64 x86_64 GNU/Linux If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /Applications/Emacs.app/Contents/Resources/etc/DEBUG. In GNU Emacs 23.2.94.1 (x86_64-apple-darwin10.4.0, NS apple-appkit-1038.32) of 2011-02-15 on oatmeal.ma.runwaynine.com Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC=20 [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A=20 ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC=20 [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A=20 ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC=20 [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A=20 ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC=20 [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A=20 ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC=20 [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A=20 ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC=20 [ A ESC [ A ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B=20 ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC=20 [ B ESC [ B ESC [ B ESC [ B ESC [ B DEL C-x C-s C-@=20 C-e ESC w C-x v u y e s RET C-x C-s ESC x r e p o r=20 t - e m a c s TAB RET Recent messages: Saving file /Users/srevilak/.emacs... Wrote /Users/srevilak/.emacs Saving file /Users/srevilak/.emacs... Wrote /Users/srevilak/.emacs Saving file /Users/srevilak/.emacs... Wrote /Users/srevilak/.emacs Mark activated Finding changes in /Users/srevilak/.emacs... Reverting /Users/srevilak/.emacs...done (No changes need to be saved) Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug log-edit ring pcvs-util add-log diff-mode easy-mmode vc vc-dispatcher rect pp find-func help-fns help-mode view debug vc-git tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) --bCsyhTFzCvuiizWE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEARECAAYFAk1pDrQACgkQX7YJI4BuyDTaDQCfT27Ib4LL/jGPmVidl7EPaUOo jhEAoJbHgLWtlYtkkYmKBt17kyPShSII =7HKk -----END PGP SIGNATURE----- --bCsyhTFzCvuiizWE--