From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ethan Newsgroups: gmane.emacs.bugs Subject: bug#6032: untabify causes point to move Date: Sat, 24 Apr 2010 20:01:35 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6d976262215cb0485045d5e X-Trace: dough.gmane.org 1272169841 31919 80.91.229.12 (25 Apr 2010 04:30:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Apr 2010 04:30:41 +0000 (UTC) To: 6032@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 25 06:30:40 2010 connect(): No such file or directory 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 1O5tUL-0006gV-P0 for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Apr 2010 06:30:38 +0200 Original-Received: from localhost ([127.0.0.1]:56040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5tUL-0007Q2-4L for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Apr 2010 00:30:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5q8D-0000cU-Cd for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 20:55:33 -0400 Original-Received: from [140.186.70.92] (port=42299 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5q8A-0000cM-0G for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 20:55:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5q88-0004Vg-LB for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 20:55:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47245) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5q88-0004VX-Hx for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 20:55:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O5pmQ-0005YS-HM; Sat, 24 Apr 2010 20:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ethan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Apr 2010 00:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6032 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.127215553021332 (code B ref -1); Sun, 25 Apr 2010 00:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Apr 2010 00:32:10 +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 1O5plZ-0005Y1-Ky for submit@debbugs.gnu.org; Sat, 24 Apr 2010 20:32:10 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5pI9-0005Ka-Kp for submit@debbugs.gnu.org; Sat, 24 Apr 2010 20:01:46 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:40478) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O5pI8-0000vs-8T for submit@debbugs.gnu.org; Sat, 24 Apr 2010 20:01:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5pI7-0007G1-8i for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 20:01:43 -0400 Original-Received: from [140.186.70.92] (port=54165 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5pI5-0007FN-RE for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 20:01:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5pI3-00009Z-F1 for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 20:01:41 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:59077) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5pI2-00009L-4k for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 20:01:39 -0400 Original-Received: by wyf19 with SMTP id 19so1307178wyf.0 for ; Sat, 24 Apr 2010 17:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=0EprY3L+twWpGMa991SnVV4aHW0pT8HC+QTuVDclXDU=; b=iRwFGK2m2FuNiAJKOW19tQMvHa2MIGidV6Z7Zwj52nRxsWWggFBAMh79yFAJWG7Kvd uwRTgW/0AwuPAD+/AnD2kmSty0mE+ZyOCV8bZ75/JTPydzMHgCRuN+mtYS3AZjGZk39C 8XRgyul1jMbP5rKerD0Ebk6ZE/8N8tGIl80E4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qesKWP4WBOzV723JPTzOuodiKKTpl7wazd3prkwi9fYWwmu2LMzAMA9trlLtEgfGWX KTNQKgNES3kmT/jZWjXVSVKoVHKGem9xVyH6DoCRo/wEWl1qQlzGynIMiKI5mxsLRsLS S/VbLraM4BNwYaJuD+PJdwdEH38uiOOTAxzwg= Original-Received: by 10.216.91.80 with SMTP id g58mr2554511wef.181.1272153695720; Sat, 24 Apr 2010 17:01:35 -0700 (PDT) Original-Received: by 10.216.49.84 with HTTP; Sat, 24 Apr 2010 17:01:35 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sat, 24 Apr 2010 20:32:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 24 Apr 2010 20:33:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sun, 25 Apr 2010 00:30:32 -0400 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:36486 Archived-At: --0016e6d976262215cb0485045d5e Content-Type: text/plain; charset=ISO-8859-1 `untabify' sometimes causes the cursor to jump. If you have a buffer like this, with (-!-) representing point: ^I(-!-)^ISome text some text some text And (for example) have a before-save-hook that calls untabify on the whole buffer, the cursor will jump to the beginning of line. This is a bit surprising. In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) of 2010-03-26 on palmer, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10604000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil 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: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: yas/global-mode: t yas/minor-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e Recent messages: Ido mode enabled Failed to load jxp mode: (file-error Cannot open load file jxp-mode) /usr/bin/mail is not an executable. Setting mail-interactive to t. For information about GNU Emacs and the GNU system, type C-h C-a. Saving all Org-mode buffers... (No files need saving) Saving all Org-mode buffers... done Saving all Org-mode buffers... (No files need saving) Saving all Org-mode buffers... done --0016e6d976262215cb0485045d5e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable `untabify' sometimes causes the cursor to jump. If you have a bufferlike this, with (-!-) representing point:

^I(-!-)^ISome text some t= ext some text

And (for example) have a before-save-hook that calls u= ntabify on the
whole buffer, the cursor will jump to the beginning of line. This is a
b= it surprising.



In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ = Version 2.18.3)
=A0of 2010-03-26 on palmer, modified by Debian
Window= ing system distributor `The X.Org Foundation', version 11.0.10604000 configured using `configure=A0 '--build=3Di486-linux-gnu' '--ho= st=3Di486-linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D= /var/lib' '--libexecdir=3D/usr/lib' '--localstatedir=3D/var= /lib' '--infodir=3D/usr/share/info' '--mandir=3D/usr/share/= man' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/emac= s23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs= /site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/= share/emacs/23.1/leim' '--with-x=3Dyes' '--with-x-toolkit= =3Dgtk' '--with-toolkit-scroll-bars' 'build_alias=3Di486-li= nux-gnu' 'host_alias=3Di486-linux-gnu' 'CFLAGS=3D-DDEBIAN -= g -O2' 'LDFLAGS=3D-g' 'CPPFLAGS=3D''

Important settings:
=A0 value of $LC_ALL: nil
=A0 value of $LC_CO= LLATE: nil
=A0 value of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil=
=A0 value of $LC_MONETARY: nil
=A0 value of $LC_NUMERIC: nil
=A0 = value of $LC_TIME: nil
=A0 value of $LANG: en_US.UTF-8
=A0 value of $XMODIFIERS: nil
=A0 loc= ale-coding-system: utf-8-unix
=A0 default-enable-multibyte-characters: t=

Major mode: Lisp Interaction

Minor modes in effect:
=A0 y= as/global-mode: t
=A0 yas/minor-mode: t
=A0 tooltip-mode: t
=A0 mouse-wheel-mode: t
= =A0 menu-bar-mode: t
=A0 file-name-shadow-mode: t
=A0 global-font-loc= k-mode: t
=A0 font-lock-mode: t
=A0 blink-cursor-mode: t
=A0 globa= l-auto-composition-mode: t
=A0 auto-composition-mode: t
=A0 auto-encryption-mode: t
=A0 auto-com= pression-mode: t
=A0 column-number-mode: t
=A0 line-number-mode: t=A0 transient-mark-mode: t

Recent input:
M-x r e p o r t - e <= ;tab> <return>

Recent messages:
Ido mode enabled
Failed to load jxp mode: (file-= error Cannot open load file jxp-mode)
/usr/bin/mail is not an executable= .=A0 Setting mail-interactive to t.
For information about GNU Emacs and = the GNU system, type C-h C-a.
Saving all Org-mode buffers...
(No files need saving)
Saving all Org-= mode buffers... done
Saving all Org-mode buffers...
(No files need sa= ving)
Saving all Org-mode buffers... done

--0016e6d976262215cb0485045d5e--