GNU bug report logs - #13590
23.4; Cursor jumps around while typing

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Alpheus Madsen <alpheus.madsen@HIDDEN>; dated Wed, 30 Jan 2013 18:07:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 13590 <at> debbugs.gnu.org:


Received: (at 13590) by debbugs.gnu.org; 4 Feb 2013 08:09:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 04 03:09:03 2013
Received: from localhost ([127.0.0.1]:35141 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U2H6t-0003VU-OO
	for submit <at> debbugs.gnu.org; Mon, 04 Feb 2013 03:09:03 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:39234)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1U2H6r-0003V4-Bh
	for 13590 <at> debbugs.gnu.org; Mon, 04 Feb 2013 03:09:01 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1U2H5p-00081t-5M; Mon, 04 Feb 2013 03:07:57 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Alpheus Madsen <alpheus.madsen@HIDDEN>
Subject: Re: bug#13590: 23.4; Cursor jumps around while typing
References: <CAPGKwT-W_=Yf+pzh0_7XCAWN91tHoqkqtmzLh+qmy=6PvwBcOA@HIDDEN>
	<CAPGKwT8ze2dgk+xnV+5wyC2UyGAEv-GpwRiQZat3-dEMbvOCLA@HIDDEN>
X-Spook: enemy of the state Medco terrorist colonel number key
X-Ran: mo];e'@YVR~zfc~VNQI6Fe5F"f@k0_e{\@:6rG=rf?=/Z\%T(hK#zF8Vt&!^${tjE>R/ie
X-Hue: blue
X-Attribution: GM
Date: Mon, 04 Feb 2013 03:07:57 -0500
In-Reply-To: <CAPGKwT8ze2dgk+xnV+5wyC2UyGAEv-GpwRiQZat3-dEMbvOCLA@HIDDEN>
	(Alpheus Madsen's message of "Wed, 30 Jan 2013 14:14:03 -0700")
Message-ID: <w0pq0gy00y.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 13590
Cc: 13590 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.0 (-----)


Thanks for the report.
Could you try the latest release, 24.2, to see if you still have the
same problem? (There is a Debian package for this, sadly stuck in unstable.)
Better still, the latest pretest from
http://alpha.gnu.org/gnu/emacs/pretest/




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13590; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Jan 2013 21:15:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 30 16:15:05 2013
Received: from localhost ([127.0.0.1]:56319 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U0ezo-00055Y-Op
	for submit <at> debbugs.gnu.org; Wed, 30 Jan 2013 16:15:05 -0500
Received: from eggs.gnu.org ([208.118.235.92]:57446)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0ezf-00054m-TU
	for submit <at> debbugs.gnu.org; Wed, 30 Jan 2013 16:14:56 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0ez0-0006ib-SS
	for submit <at> debbugs.gnu.org; Wed, 30 Jan 2013 16:14:17 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	HTML_MESSAGE,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable
	version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:43277)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0ez0-0006iX-Pu
	for submit <at> debbugs.gnu.org; Wed, 30 Jan 2013 16:14:14 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40556)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0eyx-0007d4-LA
	for bug-gnu-emacs@HIDDEN; Wed, 30 Jan 2013 16:14:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0eyr-0006h8-Og
	for bug-gnu-emacs@HIDDEN; Wed, 30 Jan 2013 16:14:10 -0500
Received: from mail-vb0-f52.google.com ([209.85.212.52]:57551)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0eyr-0006ge-HS
	for bug-gnu-emacs@HIDDEN; Wed, 30 Jan 2013 16:14:05 -0500
Received: by mail-vb0-f52.google.com with SMTP id fa15so1274708vbb.25
	for <bug-gnu-emacs@HIDDEN>; Wed, 30 Jan 2013 13:14:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:x-received:date:message-id:subject:from:to
	:content-type; bh=OO/v6KE8dxS7HehG1LnuGvVUndrzkBLa5d8rzQBxLFU=;
	b=HKlFp+oWMAFT5n2vxn50Ahj1/KrkBn4yc6Kc9Sp4O4kMgdCXcbRDlecGMq/RcUCvVz
	6Ct0Hj4V/QrSOlP31aumN+nTDXWGFin7tG3C4YVuRnDrKxOsG2LkvTgBuhSY75prMSDJ
	BhX+eUNjK3SLCwn7lUlCIrb43PO/2Fxrg+WPYcEcBfB6aXeMTHqBOuzooH13/2ufKu/8
	t2uHklS3KjSMvDsjm+xO3TOJOArSh1uOqXvdqHNrYIxiB18yaacpN7lW31Wbjjuk3JG7
	QK8XswayOoT70TplqN10uVrISerBlmpjkA9ZgwkvRkOUdi8wn5Td8pg2bq2+kuYBmQQ3
	kO2A==
MIME-Version: 1.0
X-Received: by 10.52.22.207 with SMTP id g15mr5302555vdf.61.1359580444034;
	Wed, 30 Jan 2013 13:14:04 -0800 (PST)
Received: by 10.58.209.165 with HTTP; Wed, 30 Jan 2013 13:14:03 -0800 (PST)
Date: Wed, 30 Jan 2013 14:14:03 -0700
Message-ID: <CAPGKwT8ze2dgk+xnV+5wyC2UyGAEv-GpwRiQZat3-dEMbvOCLA@HIDDEN>
Subject: Re: bug#13590: 23.4; Cursor jumps around while typing
From: Alpheus Madsen <alpheus.madsen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary=20cf3071c8bc69066904d487fd89
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -3.4 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

--20cf3071c8bc69066904d487fd89
Content-Type: text/plain; charset=ISO-8859-1

I need to add a couple of updates to this bug report.

First, I have duplicated this bug, using both "emacs -nw -Q" and in
commenting out my init.el file completely, essentially by doing the same
thing.

Second, (and I consider this to be a very important datapoint, that I
forgot to report, to my everlasting shame), I am using Emacs under screen.
Indeed, if I run "emacs -nw -Q ~/aoeu.py" without screen, my very brief
tests don't run into a problem, but if I start a new screen instance, and
open "emacs -nw -Q ~/aoeu.py", I can type

    def hello(world):

and I get

   def hello(w:rld)

so whether the problem is with Emacs/screen interaction, or is strictly a
problem with screen, I do not know.

(For what it's worth, I've most recently been typing

   def hello(world):
   [TAB]testing = {"presidents" :
   [TAB]{ "jefferson" : "thomas",
   [TAB]"madison" : "james"}}
   [TAB]vesting = {"confederates" :
   [TAB]{"davis" : "jefferson"}}

in an attempt to test tabbing; the cursor can jump at any time through the
process, although I haven't been keeping track of when that happens.  This
is really just a "stream-of-consciousness" tab test.)

--20cf3071c8bc69066904d487fd89
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I need to add a couple of updates to this bug report.<br><br>First, I have =
duplicated this bug, using both &quot;emacs -nw -Q&quot; and in commenting =
out my init.el file completely, essentially by doing the same thing.<br>
<br>Second, (and I consider this to be a very important datapoint, that I f=
orgot to report, to my everlasting shame), I am using Emacs under screen.=
=A0 Indeed, if I run &quot;emacs -nw -Q ~/aoeu.py&quot; without screen, my =
very brief tests don&#39;t run into a problem, but if I start a new screen =
instance, and open &quot;emacs -nw -Q ~/aoeu.py&quot;, I can type<br>
<br>=A0=A0=A0 def hello(world):<br><br>and I get<br><br>=A0=A0 def hello(w:=
rld)<br><br>so whether the problem is with Emacs/screen interaction, or is =
strictly a problem with screen, I do not know.<br><br>(For what it&#39;s wo=
rth, I&#39;ve most recently been typing<br>
<br>=A0=A0 def hello(world):<br>=A0=A0 [TAB]testing =3D {&quot;presidents&q=
uot; :<br>=A0=A0 [TAB]{ &quot;jefferson&quot; : &quot;thomas&quot;,<br>=A0=
=A0 [TAB]&quot;madison&quot; : &quot;james&quot;}}<br>=A0=A0 [TAB]vesting =
=3D {&quot;confederates&quot; :<br>
=A0=A0 [TAB]{&quot;davis&quot; : &quot;jefferson&quot;}}<br><br>in an attem=
pt to test tabbing; the cursor can jump at any time through the process, al=
though I haven&#39;t been keeping track of when that happens.=A0 This is re=
ally just a &quot;stream-of-consciousness&quot; tab test.)<br>

--20cf3071c8bc69066904d487fd89--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13590; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Jan 2013 18:06:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 30 13:06:25 2013
Received: from localhost ([127.0.0.1]:56078 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U0c3D-0006Hw-4P
	for submit <at> debbugs.gnu.org; Wed, 30 Jan 2013 13:06:25 -0500
Received: from eggs.gnu.org ([208.118.235.92]:42249)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0bwi-0005De-6g
	for submit <at> debbugs.gnu.org; Wed, 30 Jan 2013 12:59:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0bw2-0000yl-Jf
	for submit <at> debbugs.gnu.org; Wed, 30 Jan 2013 12:59:02 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	HTML_MESSAGE,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable
	version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:59945)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0bw2-0000yh-Ga
	for submit <at> debbugs.gnu.org; Wed, 30 Jan 2013 12:58:58 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53582)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0bvx-0001kZ-EG
	for bug-gnu-emacs@HIDDEN; Wed, 30 Jan 2013 12:58:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0bvt-0000xD-0s
	for bug-gnu-emacs@HIDDEN; Wed, 30 Jan 2013 12:58:53 -0500
Received: from mail-ve0-f178.google.com ([209.85.128.178]:51286)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <alpheus.madsen@HIDDEN>) id 1U0bvs-0000x5-QP
	for bug-gnu-emacs@HIDDEN; Wed, 30 Jan 2013 12:58:48 -0500
Received: by mail-ve0-f178.google.com with SMTP id db10so1305429veb.23
	for <bug-gnu-emacs@HIDDEN>; Wed, 30 Jan 2013 09:58:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:x-received:date:message-id:subject:from:to
	:content-type; bh=Ui2dw8HrZ5qeni2PNL5x+eRQRRvWfp55Rkqa/DrYa5c=;
	b=qTICKqp5/LC1f1+HK6i96EVfDQ3CNzEnSw6TecF0cfSfd6+9Td/McRPdjC4Nyru0TD
	3lpjVCdufBVWzukGuh4FpOWiS+V5JP00886d5nLzJXJCAwdXNbmDPwcP2cHPsb2LgWtI
	XPosK/jpMOVqRCICMfngmTvbW/S9VdQtxz1hn8iImDEHwnAoHozuGIJ11DCVo681psE/
	ARS8lZdPpGTS9fcxOBl7QSz4Wc56lfB7XhHnzPxhMOCaiuZte5s0+STbMNA5yWyiEVU6
	EwYxVDQoe1sZNsV1hywvAbA77dkHXszACtD8vCPGs5/tMFp7szgnrUIe22RkEOdKw2HB
	uUeg==
MIME-Version: 1.0
X-Received: by 10.220.241.80 with SMTP id ld16mr5678115vcb.5.1359568727915;
	Wed, 30 Jan 2013 09:58:47 -0800 (PST)
Received: by 10.58.209.165 with HTTP; Wed, 30 Jan 2013 09:58:47 -0800 (PST)
Date: Wed, 30 Jan 2013 10:58:47 -0700
Message-ID: <CAPGKwT-W_=Yf+pzh0_7XCAWN91tHoqkqtmzLh+qmy=6PvwBcOA@HIDDEN>
Subject: 23.4; Cursor jumps around while typing
From: Alpheus Madsen <alpheus.madsen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary=14dae9cfc850133bcf04d48543bf
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 30 Jan 2013 13:06:21 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

--14dae9cfc850133bcf04d48543bf
Content-Type: text/plain; charset=ISO-8859-1

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@HIDDEN 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':
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am currently trying to disable "Smart Tabs" for Python.

I start with:

   emacs -nw ~/aoeu.py

Right off the bat, if I try to type

   def hello, world!

I get the following:

   deo h!ll , world

with the initial "de" highlighted in Cyan, "o h" and "ll" in blue, and the
rest in grey.

If I then type "M-x whitespace-mode", the text *sometimes* reappears as
normal text.

Also, if I try to open a file, and type "C-x C-f" and then "~/.git[TAB]"
(or something similar), the tab completion jumps back over the
text--indeed, if I repeatedly backspace, I'll even backspace over the
highlighed status line.

I *don't* think it's a problem with "python-mode", because I have had this
problem before, when trying to edit "~/.gitconfig".  Since I was working
with a lot of colors, I suspected that the problem involved funny escape
characters.  Here is the portion of the Git configuration file:

=================
[alias]
   tree = log --pretty=format:'%C(red reverse)%h%Creset %C(yellow)%d%Creset
%C(blue bold)<%cn>%Creset %Cgreen%cd %Creset%s' --date=short --graph
   lg = log --graph --pretty=format:'%Cred%h%Creset %ad %s
%C(yellow)%d%Creset %C(bold blue)<%an>%Creset' --date=short
   hist = log --graph --full-history --all --pretty=format:'%Cred%h%Creset
%ad %s %C(yellow)%d%Creset %C(bold blue)<%an>%Creset' --date=short
   graph = log --graph --color --all
--pretty=format:"%C(yellow)%H%C(green)%d%C(reset)%n%x20%cd%n%x20%cn%x20(%ce)%n%x20%s%n"
   lol = log --graph --decorate --pretty=oneline --abbrev-commit
   lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
   ln = log --oneline --graph --decorate --all

   mytree log --graph --full-history --all --color
--pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
=================

Unfortunately, because I deleted the line that seemed to be causing the
problem, this *isn't* the original section of the file; I *hope* that the
alias "mytree" is like the line that was causing the problem, but I cannot
be sure--thus, this example might be completely useless for debugging
purposes.

If I start with "emacs -nw -Q ~/aoeu.py", the problem doesn't seem to exist
at all.

Also, if I comment out (column-number-mode 1) in my init.el file, the
problem also doesn't see\
m to exist.


My ".emacs.d/init.el" file is as follows:
==================
;;;; A few basic variables that I like to have set up...
(desktop-save-mode 1)
(show-paren-mode 1)
(column-number-mode 1)
(setq make-backup-files nil)

;;;; Include files; we add "~/.emacs.d/elisp/[. smarttabs]"
(let ((default-directory "~/.emacs.d/elisp"))
  (normal-top-level-add-to-load-path '("."))
  (normal-top-level-add-to-load-path '("smarttabs")))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Smart Tabs Mode and hooks; useful for using tabs to show
;;;; indentation, and spaces for showing alignment.
(setq-default tab-width 3)
(setq indent-tabs-mode nil)

(autoload 'smart-tabs-mode "smart-tabs-mode"
  "Intelligently indent with tabs, align with spaces!")
(autoload 'smart-tabs-mode-enable "smart-tabs-mode")
(autoload 'smart-tabs-advice "smart-tabs-mode")

;; Python
(add-hook 'python-mode-hook
          (lambda ()
                  (setq indent-tabs-mode t)
                  (setq tab-width (default-value 'tab-width))
                  (setq smart-tabs-mode t)))
(smart-tabs-advice python-indent-line-1 python-indent)


;; Lisp
==================

Of course, I have reason to believe that the problem is somewhere in
column-number-mode, so I'll be turning off this mode, so that I could just
get back to work.  Since the cursor jumps back and forth in this bug,
however, I wouldn't be surprised if it's a combination of
column-number-mode and show-paren-mode--but that's just speculation on my
part.

Also, I use the Smart Tabs mode made available on the Wiki:
https://github.com/jcsalomon/smarttabs.git

While I can't be certain, I don't *think* that Smart Tabs is part of the
bug, because I can comment out Smart Tabs in init.el, and the problem
remains.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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
/usr/share/emacs/23.4/etc/DEBUG.


In GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.12)
 of 2012-09-22 on allspice, modified by Debian
configured using `configure  '--build' 'x86_64-linux-gnu' '--build'
'x86_64-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.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.4/site-lisp:/usr/share/emacs/site-lisp'
'--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
'--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -DDEBIAN
-O2' 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

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: Python

Minor modes in effect:
  smart-tabs-mode: t
  show-paren-mode: t
  desktop-save-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
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
h e l l o , SPC w o r l d ! RET C-x b C-g ESC x r e
p TAB o r t TAB RET

Recent messages:
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done
No desktop file.
For information about GNU Emacs and the GNU system, type C-h C-a.
(New file)
Quit
Making completion list...

Load-path shadows:
/usr/share/emacs/23.4/site-lisp/debian-startup hides
/usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs/site-lisp/rst hides
/usr/share/emacs/23.4/lisp/textmodes/rst
/usr/share/emacs23/site-lisp/dictionaries-common/ispell hides
/usr/share/emacs/23.4/lisp/textmodes/ispell
/usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides
/usr/share/emacs/23.4/lisp/textmodes/flyspell

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 help-mode view python-21
python easymenu comint ring smart-tabs-mode easy-mmode advice help-fns
advice-preload paren desktop tooltip ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd font-setting 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 dbusbind
system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs)

--14dae9cfc850133bcf04d48543bf
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

This bug report will be sent to the Free Software Foundation,<br>not to you=
r local site managers!<br>Please write in English if possible, because the =
Emacs maintainers<br>usually do not have translators to read other language=
s for them.<br>
<br>Your report will be posted to the <a href=3D"mailto:bug-gnu-emacs@HIDDEN=
rg">bug-gnu-emacs@HIDDEN</a> mailing list<br>and the gnu.emacs.bug news gr=
oup, and at <a href=3D"http://debbugs.gnu.org">http://debbugs.gnu.org</a>.<=
br>
<br>Please describe exactly what actions triggered the bug<br>and the preci=
se symptoms of the bug.=A0 If you can, give<br>a recipe starting from `emac=
s -Q&#39;:<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>I am currently tr=
ying to disable &quot;Smart Tabs&quot; for Python.<br>
<br>I start with:<br><br>=A0=A0 emacs -nw ~/aoeu.py<br><br>Right off the ba=
t, if I try to type<br><br>=A0=A0 def hello, world!<br><br>I get the follow=
ing:<br><br>=A0=A0 deo h!ll , world<br><br>with the initial &quot;de&quot; =
highlighted in Cyan, &quot;o h&quot; and &quot;ll&quot; in blue, and the re=
st in grey.<br>
<br>If I then type &quot;M-x whitespace-mode&quot;, the text *sometimes* re=
appears as normal text.<br><br>Also, if I try to open a file, and type &quo=
t;C-x C-f&quot; and then &quot;~/.git[TAB]&quot; (or something similar), th=
e tab completion jumps back over the text--indeed, if I repeatedly backspac=
e, I&#39;ll even backspace over the highlighed status line.<br>
<br>I *don&#39;t* think it&#39;s a problem with &quot;python-mode&quot;, be=
cause I have had this problem before, when trying to edit &quot;~/.gitconfi=
g&quot;.=A0 Since I was working with a lot of colors, I suspected that the =
problem involved funny escape characters.=A0 Here is the portion of the Git=
 configuration file:<br>
<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>[alias]<br>=A0=
=A0 tree =3D log --pretty=3Dformat:&#39;%C(red reverse)%h%Creset %C(yellow)=
%d%Creset %C(blue bold)&lt;%cn&gt;%Creset %Cgreen%cd %Creset%s&#39; --date=
=3Dshort --graph<br>=A0=A0 lg =3D log --graph --pretty=3Dformat:&#39;%Cred%=
h%Creset %ad %s %C(yellow)%d%Creset %C(bold blue)&lt;%an&gt;%Creset&#39; --=
date=3Dshort<br>
=A0=A0 hist =3D log --graph --full-history --all --pretty=3Dformat:&#39;%Cr=
ed%h%Creset %ad %s %C(yellow)%d%Creset %C(bold blue)&lt;%an&gt;%Creset&#39;=
 --date=3Dshort<br>=A0=A0 graph =3D log --graph --color --all --pretty=3Dfo=
rmat:&quot;%C(yellow)%H%C(green)%d%C(reset)%n%x20%cd%n%x20%cn%x20(%ce)%n%x2=
0%s%n&quot;<br>
=A0=A0 lol =3D log --graph --decorate --pretty=3Doneline --abbrev-commit<br=
>=A0=A0 lola =3D log --graph --decorate --pretty=3Doneline --abbrev-commit =
--all<br>=A0=A0 ln =3D log --oneline --graph --decorate --all<br><br>=A0=A0=
 mytree log --graph --full-history --all --color --pretty=3Dformat:&quot;%x=
1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s&quot;<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br><br>Unfortunately, b=
ecause I deleted the line that seemed to be causing the problem, this *isn&=
#39;t* the original section of the file; I *hope* that the alias &quot;mytr=
ee&quot; is like the line that was causing the problem, but I cannot be sur=
e--thus, this example might be completely useless for debugging purposes.<b=
r>
<br>If I start with &quot;emacs -nw -Q ~/aoeu.py&quot;, the problem doesn&#=
39;t seem to exist at all.<br><br>Also, if I comment out (column-number-mod=
e 1) in my init.el file, the problem also doesn&#39;t see\<br>m to exist.<b=
r>
<br><br>My &quot;.emacs.d/init.el&quot; file is as follows:<br>=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>;;;; A few basic variables th=
at I like to have set up...<br>(desktop-save-mode 1)<br>(show-paren-mode 1)=
<br>(column-number-mode 1)<br>(setq make-backup-files nil)<br>
<br>;;;; Include files; we add &quot;~/.emacs.d/elisp/[. smarttabs]&quot;<b=
r>(let ((default-directory &quot;~/.emacs.d/elisp&quot;))<br>=A0 (normal-to=
p-level-add-to-load-path &#39;(&quot;.&quot;))<br>=A0 (normal-top-level-add=
-to-load-path &#39;(&quot;smarttabs&quot;)))<br>
<br>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>;;;;=
 Smart Tabs Mode and hooks; useful for using tabs to show<br>;;;; indentati=
on, and spaces for showing alignment.<br>(setq-default tab-width 3)<br>
(setq indent-tabs-mode nil)<br><br>(autoload &#39;smart-tabs-mode &quot;sma=
rt-tabs-mode&quot;<br>=A0 &quot;Intelligently indent with tabs, align with =
spaces!&quot;)<br>(autoload &#39;smart-tabs-mode-enable &quot;smart-tabs-mo=
de&quot;)<br>
(autoload &#39;smart-tabs-advice &quot;smart-tabs-mode&quot;)<br><br>;; Pyt=
hon<br>(add-hook &#39;python-mode-hook<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 (lamb=
da ()<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (setq indent-t=
abs-mode t)<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (setq ta=
b-width (default-value &#39;tab-width))<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (setq smart-tabs-mode t=
)))<br>(smart-tabs-advice python-indent-line-1 python-indent)<br><br><br>;;=
 Lisp<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br><br>Of c=
ourse, I have reason to believe that the problem is somewhere in column-num=
ber-mode, so I&#39;ll be turning off this mode, so that I could just get ba=
ck to work.=A0 Since the cursor jumps back and forth in this bug, however, =
I wouldn&#39;t be surprised if it&#39;s a combination of column-number-mode=
 and show-paren-mode--but that&#39;s just speculation on my part.<br>
<br>Also, I use the Smart Tabs mode made available on the Wiki:=A0 <a href=
=3D"https://github.com/jcsalomon/smarttabs.git">https://github.com/jcsalomo=
n/smarttabs.git</a><br><br>While I can&#39;t be certain, I don&#39;t *think=
* that Smart Tabs is part of the bug, because I can comment out Smart Tabs =
in init.el, and the problem remains.<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br><br>If Emacs crashed, and y=
ou have the Emacs process in the gdb debugger,<br>please include the output=
 from the following gdb commands:<br>=A0=A0=A0 `bt full&#39; and `xbacktrac=
e&#39;.<br>
For information about debugging Emacs, please read the file<br>/usr/share/e=
macs/23.4/etc/DEBUG.<br><br><br>In GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, G=
TK+ Version 2.24.12)<br>=A0of 2012-09-22 on allspice, modified by Debian<br=
>
configured using `configure=A0 &#39;--build&#39; &#39;x86_64-linux-gnu&#39;=
 &#39;--build&#39; &#39;x86_64-linux-gnu&#39; &#39;--prefix=3D/usr&#39; &#3=
9;--sharedstatedir=3D/var/lib&#39; &#39;--libexecdir=3D/usr/lib&#39; &#39;-=
-localstatedir=3D/var/lib&#39; &#39;--infodir=3D/usr/share/info&#39; &#39;-=
-mandir=3D/usr/share/man&#39; &#39;--with-pop=3Dyes&#39; &#39;--enable-loca=
llisppath=3D/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.4/site-lisp:/=
usr/local/share/emacs/site-lisp:/usr/share/emacs/23.4/site-lisp:/usr/share/=
emacs/site-lisp&#39; &#39;--with-crt-dir=3D/usr/lib/x86_64-linux-gnu&#39; &=
#39;--with-x=3Dyes&#39; &#39;--with-x-toolkit=3Dgtk&#39; &#39;--with-toolki=
t-scroll-bars&#39; &#39;build_alias=3Dx86_64-linux-gnu&#39; &#39;CFLAGS=3D-=
g -O2 -fstack-protector --param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dfo=
rmat-security -Wall -DDEBIAN -O2&#39; &#39;CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2=
&#39;&#39;<br>
<br>Important settings:<br>=A0 value of $LC_ALL: nil<br>=A0 value of $LC_CO=
LLATE: nil<br>=A0 value of $LC_CTYPE: nil<br>=A0 value of $LC_MESSAGES: nil=
<br>=A0 value of $LC_MONETARY: nil<br>=A0 value of $LC_NUMERIC: nil<br>=A0 =
value of $LC_TIME: nil<br>
=A0 value of $LANG: en_US.UTF-8<br>=A0 value of $XMODIFIERS: nil<br>=A0 loc=
ale-coding-system: utf-8-unix<br>=A0 default enable-multibyte-characters: t=
<br><br>Major mode: Python<br><br>Minor modes in effect:<br>=A0 smart-tabs-=
mode: t<br>
=A0 show-paren-mode: t<br>=A0 desktop-save-mode: t<br>=A0 tooltip-mode: t<b=
r>=A0 mouse-wheel-mode: t<br>=A0 tool-bar-mode: t<br>=A0 menu-bar-mode: t<b=
r>=A0 file-name-shadow-mode: t<br>=A0 global-font-lock-mode: t<br>=A0 font-=
lock-mode: t<br>
=A0 auto-encryption-mode: t<br>=A0 auto-compression-mode: t<br>=A0 column-n=
umber-mode: t<br>=A0 line-number-mode: t<br>=A0 transient-mark-mode: t<br><=
br>Recent input:<br>h e l l o , SPC w o r l d ! RET C-x b C-g ESC x r e<br>=
p TAB o r t TAB RET<br>
<br>Recent messages:<br>Loading /var/cache/dictionaries-common/emacsen-ispe=
ll-default.el (source)...done<br>Loading debian-ispell...done<br>Loading /v=
ar/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done<br>
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done<br=
>Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done<br>No=
 desktop file.<br>For information about GNU Emacs and the GNU system, type =
C-h C-a.<br>
(New file)<br>Quit<br>Making completion list...<br><br>Load-path shadows:<b=
r>/usr/share/emacs/23.4/site-lisp/debian-startup hides /usr/share/emacs/sit=
e-lisp/debian-startup<br>/usr/share/emacs/site-lisp/rst hides /usr/share/em=
acs/23.4/lisp/textmodes/rst<br>
/usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/em=
acs/23.4/lisp/textmodes/ispell<br>/usr/share/emacs23/site-lisp/dictionaries=
-common/flyspell hides /usr/share/emacs/23.4/lisp/textmodes/flyspell<br>
<br>Features:<br>(shadow sort mail-extr message sendmail regexp-opt ecomple=
te rfc822 mml<br>mml-sec password-cache mm-decode mm-bodies mm-encode mailc=
ap mail-parse<br>rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader =
gnus-util<br>
netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock<br=
>sha1 hex-util hashcash mail-utils emacsbug help-mode view python-21<br>pyt=
hon easymenu comint ring smart-tabs-mode easy-mmode advice help-fns<br>
advice-preload paren desktop tooltip ediff-hook vc-hooks lisp-float-type<br=
>mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe<br>lisp-=
mode register page menu-bar rfn-eshadow timer select scroll-bar<br>mldrag m=
ouse jit-lock font-lock syntax facemenu font-core frame cham<br>
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao<br>korea=
n japanese hebrew greek romanian slovak czech european ethiopic<br>indian c=
yrillic chinese case-table epa-hook jka-cmpr-hook help simple<br>abbrev loa=
ddefs button minibuffer faces cus-face files text-properties<br>
overlay md5 base64 format env code-pages mule custom widget<br>hashtable-pr=
int-readable backquote make-network-process dbusbind<br>system-font-setting=
 font-render-setting gtk x-toolkit x multi-tty emacs)<br>

--14dae9cfc850133bcf04d48543bf--




Acknowledgement sent to Alpheus Madsen <alpheus.madsen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#13590; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.