GNU bug report logs - #7932
23.1; overprinting / cursor misalignment after certain characters

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: David McArthur <david@HIDDEN>; dated Fri, 28 Jan 2011 17:19:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 7932) by debbugs.gnu.org; 31 Jan 2011 18:03:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 31 13:03:29 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Pjy65-0001vO-Hl
	for submit <at> debbugs.gnu.org; Mon, 31 Jan 2011 13:03:29 -0500
Received: from smtprelay-h21.telenor.se ([195.54.99.196])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jan.h.d@HIDDEN>) id 1Pjy62-0001vB-J4
	for 7932 <at> debbugs.gnu.org; Mon, 31 Jan 2011 13:03:27 -0500
Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164])
	by smtprelay-h21.telenor.se (Postfix) with ESMTP id C687EEBAE5
	for <7932 <at> debbugs.gnu.org>; Mon, 31 Jan 2011 19:11:46 +0100 (CET)
X-SENDER-IP: [85.225.45.100]
X-LISTENER: [smtp.bredband.net]
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ahw4AAOKRk1V4S1kPGdsb2JhbACIXpwZDAEBAQE1L71nhU4Ej2Y
X-IronPort-AV: E=Sophos;i="4.60,405,1291590000"; d="scan'208";a="170510694"
Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO
	coolsville.localdomain) ([85.225.45.100])
	by ipb1.telenor.se with ESMTP; 31 Jan 2011 19:11:45 +0100
Received: from [172.20.199.13] (zeplin [172.20.199.13])
	by coolsville.localdomain (Postfix) with ESMTPSA id 1294F7FA05A;
	Mon, 31 Jan 2011 19:11:45 +0100 (CET)
Message-ID: <4D46FB60.8030300@HIDDEN>
Date: Mon, 31 Jan 2011 19:11:44 +0100
From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE;
	rv:1.9.2.14) Gecko/20110123 Thunderbird/3.1.8
MIME-Version: 1.0
To: David McArthur <david@HIDDEN>
Subject: Re: bug#7932: 23.1; overprinting / cursor misalignment after certain
	characters
References: <4D42E3AB.6040901@HIDDEN> <4D43E7A2.9090303@HIDDEN>
	<4D46DB61.40900@HIDDEN>
In-Reply-To: <4D46DB61.40900@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 7932
Cc: 7932 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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/pipermail/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: -2.3 (--)



David McArthur skrev 2011-01-31 16.55:
> On 01/29/2011 05:10 AM, Jan Dj=E4rv wrote:
>  > Does the situation fix itself if you do C-l or iconify and restore
>  > the Emacs frame?
>
> Yes. The problem then re-surfaces if I run the cursor back over those c=
haracters.
>
>  > Can you put the cursor on one of the characters and do C-c
>  > C-x C-=3D and mail the results?
>
> C-c C-x C-=3D is undefined
>

Sorry, I meant C-u C-x =3D

	Jan D.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7932; Package emacs. Full text available.

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


Received: (at 7932) by debbugs.gnu.org; 31 Jan 2011 15:46:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 31 10:46:57 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Pjvxw-0006c5-Pq
	for submit <at> debbugs.gnu.org; Mon, 31 Jan 2011 10:46:57 -0500
Received: from 128-177-28-8.ip.openhosting.com ([128.177.28.8]
	helo=davidmcarthur.com) by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <david@HIDDEN>) id 1Pjvxu-0006bs-FR
	for 7932 <at> debbugs.gnu.org; Mon, 31 Jan 2011 10:46:55 -0500
Received: from davidmcarthur.com (localhost [127.0.0.1])
	by davidmcarthur.com (Postfix) with ESMTP id 7B9AA55DF3;
	Mon, 31 Jan 2011 10:55:11 -0500 (EST)
Received: from [192.168.0.191] (pool-71-178-61-232.washdc.east.verizon.net
	[71.178.61.232]) by davidmcarthur.com (Postfix) with ESMTPSA;
	Mon, 31 Jan 2011 10:55:11 -0500 (EST)
Message-ID: <4D46DB61.40900@HIDDEN>
Date: Mon, 31 Jan 2011 10:55:13 -0500
From: David McArthur <david@HIDDEN>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
MIME-Version: 1.0
To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>, 
	Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#7932: 23.1; overprinting / cursor misalignment after certain
	characters
References: <4D42E3AB.6040901@HIDDEN> <4D43E7A2.9090303@HIDDEN>
In-Reply-To: <4D43E7A2.9090303@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.6 (/)
X-Debbugs-Envelope-To: 7932
Cc: 7932 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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/pipermail/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: -1.5 (-)

On 01/29/2011 05:10 AM, Jan Dj=E4rv wrote:
 > Does the situation fix itself if you do C-l or iconify and restore
 > the Emacs frame?

Yes.  The problem then re-surfaces if I run the cursor back over those=20
characters.

 > Can you put the cursor on one of the characters and do C-c
 > C-x C-=3D and mail the results?

	C-c C-x C-=3D is undefined

Am I trying to do xscheme-send-control-x-interrupt?  C-h a xscheme gives =
me

	No apropos matches for `xscheme'


On 01/29/2011 10:33 AM, Jan Dj=E4rv wrote:
 > Another thing to check, can you do:
 >
 > % xrdb -query|grep Xft
 >
 > before and after you connect the external monitor?

The result is identical before and after:

Xft.antialias:	1
Xft.dpi:	96
Xft.hinting:	1
Xft.hintstyle:	hintslight
Xft.lcdfilter:	lcddefault
Xft.rgba:	rgb


On 01/29/2011 05:10 AM, Jan Dj=E4rv wrote:
> Can you try a newer Emacs version? 23.2 has been out a while.
> If you can try trunk also that would be great (see
> http://savannah.gnu.org/projects/emacs/).

Okay, I'll try this next.


On 01/28/2011 01:52 PM, Stefan Monnier wrote:
 > While this may very well be an Emacs bug, I think there's a chance
 > this is a bug in your X server (at least, I've seen somewhat similar
 > problems in the past with a bug in some of the acceleration code in
 > the `nv' driver).
 >
 > Can you maybe try to fiddle with your X11 driver, like turning off
 > the acceleration, and/or switching between EXA, UXA, XAA, and/or
 > whichever other acceleration framework they came up with?

I don't know anything about X11 drivers, so this may take me a little=20
while to figure out how to do.  I'll try it second.


Thanks,

--=20
David McArthur
david@HIDDEN


 > David McArthur skrev 2011-01-28 16.41:
 >> Upon typing certain characters in any buffer (including the
 >> minibuffer) the
 >> cursor becomes misaligned and text is overprinted. These characters a=
re:
 >> AKkRrTVWwXxYyZ. This problem only occurs when I have my second monito=
r
 >> enabled.
 >>
 >> The cursor is a blinking black box such that when the cursor is on=20
top of
 >> text, the text is printed in inverse (off-white). What happens after
 >> typing
 >> one of AKkRrTVWwXxYyZ is that the black box is moved to the next
 >> position, but
 >> the character I just typed blinks as though the cursor were still on
 >> top of
 >> it. The next letter I type then appears twice: both in the correct
 >> position,
 >> and also overprinted on top of the problem character to the left.
 >> Also, the
 >> problem character is then re-printed one position to the left of wher=
e
 >> I typed
 >> it, overprinting on the character before it. Further typing appears
 >> normally,
 >> as long as the characters are not any of AKkRrTVWwXxYyZ.
 >>
 >> For example, if I type "text" weird behavior starts after I type the
 >> lowercase
 >> "x". What I see before I type the second "t" is "tex" with the
 >> blinking black
 >> box to the right of x, but x is also blinking (alternating black and
 >> off-white). After typing the second "t", what I see is "t#*t" where #
 >> is "x"
 >> printed on top of "e" and * is "t" printed on top of "x". If I move
 >> the cursor
 >> away and type C-l the text is redrawn correctly, but if I move the
 >> cursor back
 >> over the problematic characters, the overprinting reoccurs.
 >>
 >> This is on my laptop running Ubuntu Maverick. The problem occurs when
 >> I have
 >> my external monitor enabled (regardless of which monitor the emacs
 >> window is
 >> on). When the external monitor is disabled, the problem does not occu=
r.
 >>
 >> Here is a snippet from lspci -v
 >>
 >> 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS=
,
 >> 943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 0=
0
 >> [VGA
 >> controller])
 >> Subsystem: Sony Corporation Device 81e6
 >> Flags: bus master, fast devsel, latency 0, IRQ 16
 >> Memory at dc200000 (32-bit, non-prefetchable) [size=3D512K]
 >> I/O ports at 1800 [size=3D8]
 >> Memory at c0000000 (32-bit, prefetchable) [size=3D256M]
 >> Memory at dc300000 (32-bit, non-prefetchable) [size=3D256K]
 >> Expansion ROM at <unassigned> [disabled]
 >> Capabilities: [90] MSI: Enable- Count=3D1/1 Maskable- 64bit-
 >> Capabilities: [d0] Power Management version 2
 >> Kernel driver in use: i915
 >> Kernel modules: i915
 >>
 >>
 >> Here is the info from M-x report-emacs-bug
 >>
 >> In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
 >> of 2010-11-26 on vernadsky, modified by Debian
 >> Windowing system distributor `The X.Org Foundation', version
 >> 11.0.10900000
 >> configured using `configure '--build=3Di686-linux-gnu'
 >> '--host=3Di686-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'
 >>=20
'--enable-locallisppath=3D/etc/emacs23:/etc/emacs:/usr/local/share/emacs/=
23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/sit=
e-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim'=20

 >>
 >> '--with-x=3Dyes' '--with-x-toolkit=3Dgtk' '--with-toolkit-scroll-bars=
'
 >> 'build_alias=3Di686-linux-gnu' 'host_alias=3Di686-linux-gnu'
 >> 'CFLAGS=3D-DDEBIAN -g
 >> -O2' 'LDFLAGS=3D-g' 'CPPFLAGS=3D''
 >>
 >> 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.utf8
 >> value of $XMODIFIERS: nil
 >> locale-coding-system: utf-8-unix
 >> default-enable-multibyte-characters: t
 >>
 >> Major mode: Outline
 >>
 >> Minor modes in effect:
 >> goto-address-mode: t
 >> tooltip-mode: t
 >> tool-bar-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
 >> line-number-mode: t
 >> transient-mark-mode: t
 >> view-mode: t
 >>
 >> Recent input:
 >> r <return> s t u v w <return> x <return> y <return>
 >> z <up> <down> <down> <return> <return> A K R T V W
 >> X Y Z k r w x y <up> <right> C-l C-k C-/ <down> <left>
 >> <left> <left> <left> <left> <left> <left> <left> <left>
 >> <left> <left> <left> <left> <left> <left> <left> <left>
 >> <left> <down> <down> <right> <right> <right> k <right>
 >> r <right> <right> <right> w <right> x <right> y <right>
 >> C-k C-l <up> C-l <down> <down> <down> <return> <return>
 >> C-h C-p C-s c u r s o <right> <left> <left> <left>
 >> <left> <left> <left> <left> <left> <down> <right> <right>
 >> <down> <up> <left> <left> <left> <left> <right> <right>
 >> <right> <right> <right> <left> <left> <left> <right>
 >> <right> <right> <right> <right> <right> <right> <right>
 >> <right> <right> <right> <right> <right> <right> <right>
 >> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
 >> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
 >> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
 >> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
 >> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
 >> <help-echo> C-s C-s C-s <down> <down> <down> <down>
 >> <up> <up> C-x b <return> <up> <up> <right> <right>
 >> <right> <right> <right> <right> <down> C-x b <return>
 >> C-l <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
 >> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
 >> <up> <up> <up> <next> <prior> C-s C-s <down> <up> <up>
 >> <up> <up> <up> <up> C-s C-s <up> <up> <up> <up> <up>
 >> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
 >> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
 >> <up> <up> <up> C-s C-s C-s C-s C-s C-s <down> <down>
 >> <down> <down> <up> <up> <up> <up> <up> <up> C-s C-s
 >> C-s C-s C-s C-s C-s C-s C-s C-s M-x r e p o r t e m
 >> a c s <backspace> <backspace> <backspace> <backspace>
 >> <backspace> SPC e m a c s <tab> <return>
 >>
 >> 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)...d=
one
 >> For information about GNU Emacs and the GNU system, type C-h C-a.
 >> Undo!
 >> Note: file is write protected
 >> View mode: type C-h for help, h for commands, q to quit.
 >> Mark saved where search started [6 times]
 >> /usr/bin/mail is not an executable. Setting mail-interactive to t.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7932; Package emacs. Full text available.

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


Received: (at 7932) by debbugs.gnu.org; 29 Jan 2011 15:25:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 29 10:25:31 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PjCg5-0006fy-QV
	for submit <at> debbugs.gnu.org; Sat, 29 Jan 2011 10:25:30 -0500
Received: from smtprelay-h32.telenor.se ([213.150.131.5])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jan.h.d@HIDDEN>) id 1PjCg3-0006fm-Dy
	for 7932 <at> debbugs.gnu.org; Sat, 29 Jan 2011 10:25:28 -0500
Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165])
	by smtprelay-h32.telenor.se (Postfix) with ESMTP id 1AF8DEB755
	for <7932 <at> debbugs.gnu.org>; Sat, 29 Jan 2011 16:33:41 +0100 (CET)
X-SENDER-IP: [85.225.45.100]
X-LISTENER: [smtp.bredband.net]
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AqY0AK7CQ01V4S1kPGdsb2JhbACIXZwmDAEBAQE1L7sBhU4Ej2Y
X-IronPort-AV: E=Sophos;i="4.60,397,1291590000"; d="scan'208";a="168583041"
Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO
	coolsville.localdomain) ([85.225.45.100])
	by ipb2.telenor.se with ESMTP; 29 Jan 2011 16:33:31 +0100
Received: from [172.20.199.13] (zeplin [172.20.199.13])
	by coolsville.localdomain (Postfix) with ESMTPSA id 70C807FA05A;
	Sat, 29 Jan 2011 16:33:31 +0100 (CET)
Message-ID: <4D44334B.9070507@HIDDEN>
Date: Sat, 29 Jan 2011 16:33:31 +0100
From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE;
	rv:1.9.2.14) Gecko/20110123 Thunderbird/3.1.8
MIME-Version: 1.0
To: David McArthur <david@HIDDEN>
Subject: Re: bug#7932: 23.1; overprinting / cursor misalignment after certain
	characters
References: <4D42E3AB.6040901@HIDDEN>
In-Reply-To: <4D42E3AB.6040901@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 7932
Cc: 7932 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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/pipermail/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: -2.3 (--)

Another thing to check, can you do:

% xrdb -query|grep Xft

before and after you connect the external monitor?

Thanks,

	Jan D.


David McArthur skrev 2011-01-28 16.41:
> Upon typing certain characters in any buffer (including the minibuffer) the
> cursor becomes misaligned and text is overprinted. These characters are:
> AKkRrTVWwXxYyZ. This problem only occurs when I have my second monitor enabled.
>
> The cursor is a blinking black box such that when the cursor is on top of
> text, the text is printed in inverse (off-white). What happens after typing
> one of AKkRrTVWwXxYyZ is that the black box is moved to the next position, but
> the character I just typed blinks as though the cursor were still on top of
> it. The next letter I type then appears twice: both in the correct position,
> and also overprinted on top of the problem character to the left. Also, the
> problem character is then re-printed one position to the left of where I typed
> it, overprinting on the character before it. Further typing appears normally,
> as long as the characters are not any of AKkRrTVWwXxYyZ.
>
> For example, if I type "text" weird behavior starts after I type the lowercase
> "x". What I see before I type the second "t" is "tex" with the blinking black
> box to the right of x, but x is also blinking (alternating black and
> off-white). After typing the second "t", what I see is "t#*t" where # is "x"
> printed on top of "e" and * is "t" printed on top of "x". If I move the cursor
> away and type C-l the text is redrawn correctly, but if I move the cursor back
> over the problematic characters, the overprinting reoccurs.
>
> This is on my laptop running Ubuntu Maverick. The problem occurs when I have
> my external monitor enabled (regardless of which monitor the emacs window is
> on). When the external monitor is disabled, the problem does not occur.
>
> Here is a snippet from lspci -v
>
> 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS,
> 943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA
> controller])
> Subsystem: Sony Corporation Device 81e6
> Flags: bus master, fast devsel, latency 0, IRQ 16
> Memory at dc200000 (32-bit, non-prefetchable) [size=512K]
> I/O ports at 1800 [size=8]
> Memory at c0000000 (32-bit, prefetchable) [size=256M]
> Memory at dc300000 (32-bit, non-prefetchable) [size=256K]
> Expansion ROM at <unassigned> [disabled]
> Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
> Capabilities: [d0] Power Management version 2
> Kernel driver in use: i915
> Kernel modules: i915
>
>
> Here is the info from M-x report-emacs-bug
>
> In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
> of 2010-11-26 on vernadsky, modified by Debian
> Windowing system distributor `The X.Org Foundation', version 11.0.10900000
> configured using `configure '--build=i686-linux-gnu' '--host=i686-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=i686-linux-gnu' 'host_alias=i686-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.utf8
> value of $XMODIFIERS: nil
> locale-coding-system: utf-8-unix
> default-enable-multibyte-characters: t
>
> Major mode: Outline
>
> Minor modes in effect:
> goto-address-mode: t
> tooltip-mode: t
> tool-bar-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
> line-number-mode: t
> transient-mark-mode: t
> view-mode: t
>
> Recent input:
> r <return> s t u v w <return> x <return> y <return>
> z <up> <down> <down> <return> <return> A K R T V W
> X Y Z k r w x y <up> <right> C-l C-k C-/ <down> <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <down> <down> <right> <right> <right> k <right>
> r <right> <right> <right> w <right> x <right> y <right>
> C-k C-l <up> C-l <down> <down> <down> <return> <return>
> C-h C-p C-s c u r s o <right> <left> <left> <left>
> <left> <left> <left> <left> <left> <down> <right> <right>
> <down> <up> <left> <left> <left> <left> <right> <right>
> <right> <right> <right> <left> <left> <left> <right>
> <right> <right> <right> <right> <right> <right> <right>
> <right> <right> <right> <right> <right> <right> <right>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> C-s C-s C-s <down> <down> <down> <down>
> <up> <up> C-x b <return> <up> <up> <right> <right>
> <right> <right> <right> <right> <down> C-x b <return>
> C-l <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
> <up> <up> <up> <next> <prior> C-s C-s <down> <up> <up>
> <up> <up> <up> <up> C-s C-s <up> <up> <up> <up> <up>
> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
> <up> <up> <up> C-s C-s C-s C-s C-s C-s <down> <down>
> <down> <down> <up> <up> <up> <up> <up> <up> C-s C-s
> C-s C-s C-s C-s C-s C-s C-s C-s M-x r e p o r t e m
> a c s <backspace> <backspace> <backspace> <backspace>
> <backspace> SPC e m a c s <tab> <return>
>
> 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
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Undo!
> Note: file is write protected
> View mode: type C-h for help, h for commands, q to quit.
> Mark saved where search started [6 times]
> /usr/bin/mail is not an executable. Setting mail-interactive to t.
>




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7932; Package emacs. Full text available.

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


Received: (at 7932) by debbugs.gnu.org; 29 Jan 2011 10:02:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 29 05:02:34 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Pj7dZ-0006IL-Lx
	for submit <at> debbugs.gnu.org; Sat, 29 Jan 2011 05:02:34 -0500
Received: from smtprelay-h32.telenor.se ([213.150.131.5])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jan.h.d@HIDDEN>) id 1Pj7dW-0006I8-LV
	for 7932 <at> debbugs.gnu.org; Sat, 29 Jan 2011 05:02:32 -0500
Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167])
	by smtprelay-h32.telenor.se (Postfix) with ESMTP id 80F42EB6E5
	for <7932 <at> debbugs.gnu.org>; Sat, 29 Jan 2011 11:10:44 +0100 (CET)
X-SENDER-IP: [85.225.45.100]
X-LISTENER: [smtp.bredband.net]
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AqMxAIN2Q01V4S1kPGdsb2JhbAClAwwBAQEBNS+6cYVOBI9m
X-IronPort-AV: E=Sophos;i="4.60,396,1291590000"; d="scan'208";a="1710220309"
Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO
	coolsville.localdomain) ([85.225.45.100])
	by ipb4.telenor.se with ESMTP; 29 Jan 2011 11:10:43 +0100
Received: from [172.20.199.13] (zeplin [172.20.199.13])
	by coolsville.localdomain (Postfix) with ESMTPSA id 335987FA05A;
	Sat, 29 Jan 2011 11:10:43 +0100 (CET)
Message-ID: <4D43E7A2.9090303@HIDDEN>
Date: Sat, 29 Jan 2011 11:10:42 +0100
From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= <jan.h.d@HIDDEN>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE;
	rv:1.9.2.14) Gecko/20110123 Thunderbird/3.1.8
MIME-Version: 1.0
To: David McArthur <david@HIDDEN>
Subject: Re: bug#7932: 23.1; overprinting / cursor misalignment after certain
	characters
References: <4D42E3AB.6040901@HIDDEN>
In-Reply-To: <4D42E3AB.6040901@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 7932
Cc: 7932 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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/pipermail/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: -2.3 (--)

Hi.

Can you try a newer Emacs version? 23.2 has been out a while.
If you can try trunk also that would be great (see 
http://savannah.gnu.org/projects/emacs/).

Does the situation fix itself if you do C-l or iconify and restore the Emacs 
frame?  Can you put the cursor on one of the characters and do C-c C-x C-= and 
mail the results?

Thanks,

	Jan D.


David McArthur skrev 2011-01-28 16.41:
> Upon typing certain characters in any buffer (including the minibuffer) the
> cursor becomes misaligned and text is overprinted. These characters are:
> AKkRrTVWwXxYyZ. This problem only occurs when I have my second monitor enabled.
>
> The cursor is a blinking black box such that when the cursor is on top of
> text, the text is printed in inverse (off-white). What happens after typing
> one of AKkRrTVWwXxYyZ is that the black box is moved to the next position, but
> the character I just typed blinks as though the cursor were still on top of
> it. The next letter I type then appears twice: both in the correct position,
> and also overprinted on top of the problem character to the left. Also, the
> problem character is then re-printed one position to the left of where I typed
> it, overprinting on the character before it. Further typing appears normally,
> as long as the characters are not any of AKkRrTVWwXxYyZ.
>
> For example, if I type "text" weird behavior starts after I type the lowercase
> "x". What I see before I type the second "t" is "tex" with the blinking black
> box to the right of x, but x is also blinking (alternating black and
> off-white). After typing the second "t", what I see is "t#*t" where # is "x"
> printed on top of "e" and * is "t" printed on top of "x". If I move the cursor
> away and type C-l the text is redrawn correctly, but if I move the cursor back
> over the problematic characters, the overprinting reoccurs.
>
> This is on my laptop running Ubuntu Maverick. The problem occurs when I have
> my external monitor enabled (regardless of which monitor the emacs window is
> on). When the external monitor is disabled, the problem does not occur.
>
> Here is a snippet from lspci -v
>
> 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS,
> 943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA
> controller])
> Subsystem: Sony Corporation Device 81e6
> Flags: bus master, fast devsel, latency 0, IRQ 16
> Memory at dc200000 (32-bit, non-prefetchable) [size=512K]
> I/O ports at 1800 [size=8]
> Memory at c0000000 (32-bit, prefetchable) [size=256M]
> Memory at dc300000 (32-bit, non-prefetchable) [size=256K]
> Expansion ROM at <unassigned> [disabled]
> Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
> Capabilities: [d0] Power Management version 2
> Kernel driver in use: i915
> Kernel modules: i915
>
>
> Here is the info from M-x report-emacs-bug
>
> In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
> of 2010-11-26 on vernadsky, modified by Debian
> Windowing system distributor `The X.Org Foundation', version 11.0.10900000
> configured using `configure '--build=i686-linux-gnu' '--host=i686-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=i686-linux-gnu' 'host_alias=i686-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.utf8
> value of $XMODIFIERS: nil
> locale-coding-system: utf-8-unix
> default-enable-multibyte-characters: t
>
> Major mode: Outline
>
> Minor modes in effect:
> goto-address-mode: t
> tooltip-mode: t
> tool-bar-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
> line-number-mode: t
> transient-mark-mode: t
> view-mode: t
>
> Recent input:
> r <return> s t u v w <return> x <return> y <return>
> z <up> <down> <down> <return> <return> A K R T V W
> X Y Z k r w x y <up> <right> C-l C-k C-/ <down> <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <down> <down> <right> <right> <right> k <right>
> r <right> <right> <right> w <right> x <right> y <right>
> C-k C-l <up> C-l <down> <down> <down> <return> <return>
> C-h C-p C-s c u r s o <right> <left> <left> <left>
> <left> <left> <left> <left> <left> <down> <right> <right>
> <down> <up> <left> <left> <left> <left> <right> <right>
> <right> <right> <right> <left> <left> <left> <right>
> <right> <right> <right> <right> <right> <right> <right>
> <right> <right> <right> <right> <right> <right> <right>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> C-s C-s C-s <down> <down> <down> <down>
> <up> <up> C-x b <return> <up> <up> <right> <right>
> <right> <right> <right> <right> <down> C-x b <return>
> C-l <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
> <up> <up> <up> <next> <prior> C-s C-s <down> <up> <up>
> <up> <up> <up> <up> C-s C-s <up> <up> <up> <up> <up>
> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
> <up> <up> <up> C-s C-s C-s C-s C-s C-s <down> <down>
> <down> <down> <up> <up> <up> <up> <up> <up> C-s C-s
> C-s C-s C-s C-s C-s C-s C-s C-s M-x r e p o r t e m
> a c s <backspace> <backspace> <backspace> <backspace>
> <backspace> SPC e m a c s <tab> <return>
>
> 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
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Undo!
> Note: file is write protected
> View mode: type C-h for help, h for commands, q to quit.
> Mark saved where search started [6 times]
> /usr/bin/mail is not an executable. Setting mail-interactive to t.
>




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7932; Package emacs. Full text available.

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


Received: (at 7932) by debbugs.gnu.org; 28 Jan 2011 18:44:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 28 13:44:00 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PitIe-0005vg-1L
	for submit <at> debbugs.gnu.org; Fri, 28 Jan 2011 13:44:00 -0500
Received: from tomts40.bellnexxia.net ([209.226.175.97]
	helo=tomts40-srv.bellnexxia.net)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <monnier@HIDDEN>) id 1PitIc-0005vT-0d
	for 7932 <at> debbugs.gnu.org; Fri, 28 Jan 2011 13:43:58 -0500
Received: from toip3.srvr.bell.ca ([209.226.175.86])
	by tomts40-srv.bellnexxia.net
	(InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id
	<20110128185209.SWIC13753.tomts40-srv.bellnexxia.net@HIDDEN>
	for <7932 <at> debbugs.gnu.org>; Fri, 28 Jan 2011 13:52:09 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvsEAAOdQk1GHv6P/2dsb2JhbAClAHO7HYVPBIUYim4
Received: from unknown (HELO ceviche.home) ([70.30.254.143])
	by toip3.srvr.bell.ca with ESMTP; 28 Jan 2011 13:52:09 -0500
Received: by ceviche.home (Postfix, from userid 20848)
	id 5F40B660DC; Fri, 28 Jan 2011 13:52:09 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: David McArthur <david@HIDDEN>
Subject: Re: bug#7932: 23.1;
	overprinting / cursor misalignment after certain characters
Message-ID: <jwvpqrghnly.fsf-monnier+emacs@HIDDEN>
References: <4D42E3AB.6040901@HIDDEN>
Date: Fri, 28 Jan 2011 13:52:09 -0500
In-Reply-To: <4D42E3AB.6040901@HIDDEN> (David McArthur's message of
	"Fri, 28 Jan 2011 10:41:31 -0500")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 7932
Cc: 7932 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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/pipermail/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: -1.9 (-)

> For example, if I type "text" weird behavior starts after I type the
> lowercase "x".  What I see before I type the second "t" is "tex" with the
> blinking black box to the right of x, but x is also blinking (alternating
> black and off-white).  After typing the second "t", what I see is  "t#*t"
> where # is "x" printed on top of "e" and * is "t" printed on top of "x".
> If I move the cursor away and type C-l the text is redrawn correctly, but if
> I move the cursor back over the problematic characters, the
> overprinting reoccurs.

> This is on my laptop running Ubuntu Maverick.  The problem occurs when
> I have my external monitor enabled (regardless of which monitor the Emacs
> window is on).  When the external monitor is disabled, the problem does
> not occur.

While this may very well be an Emacs bug, I think there's a chance this
is a bug in your X server (at least, I've seen somewhat similar problems
in the past with a bug in some of the acceleration code in the `nv'
driver).

Can you maybe try to fiddle with your X11 driver, like turning off the
acceleration, and/or switching between EXA, UXA, XAA, and/or whichever
other acceleration framework they came up with?


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7932; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 28 Jan 2011 17:18:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 28 12:18:48 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PiryA-0001gZ-Sb
	for submit <at> debbugs.gnu.org; Fri, 28 Jan 2011 12:18:48 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <david@HIDDEN>) id 1PiqKH-00072V-NP
	for submit <at> debbugs.gnu.org; Fri, 28 Jan 2011 10:33:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <david@HIDDEN>) id 1PiqSD-00076s-7g
	for submit <at> debbugs.gnu.org; Fri, 28 Jan 2011 10:41:42 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,RDNS_DYNAMIC
	autolearn=no version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:59893)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <david@HIDDEN>) id 1PiqSD-00076j-4Y
	for submit <at> debbugs.gnu.org; Fri, 28 Jan 2011 10:41:41 -0500
Received: from [140.186.70.92] (port=35833 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PiqSB-0007Zl-OD
	for bug-gnu-emacs@HIDDEN; Fri, 28 Jan 2011 10:41:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <david@HIDDEN>) id 1PiqS6-00075G-58
	for bug-gnu-emacs@HIDDEN; Fri, 28 Jan 2011 10:41:39 -0500
Received: from 128-177-28-8.ip.openhosting.com ([128.177.28.8]:47326
	helo=davidmcarthur.com) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <david@HIDDEN>) id 1PiqS6-00074s-1y
	for bug-gnu-emacs@HIDDEN; Fri, 28 Jan 2011 10:41:34 -0500
Received: from davidmcarthur.com (localhost [127.0.0.1])
	by davidmcarthur.com (Postfix) with ESMTP id 6A86A55DF3
	for <bug-gnu-emacs@HIDDEN>; Fri, 28 Jan 2011 10:41:29 -0500 (EST)
Received: from [192.168.0.191] (pool-71-191-116-233.washdc.east.verizon.net
	[71.191.116.233]) by davidmcarthur.com (Postfix) with ESMTPSA
	for <bug-gnu-emacs@HIDDEN>; Fri, 28 Jan 2011 10:41:29 -0500 (EST)
Message-ID: <4D42E3AB.6040901@HIDDEN>
Date: Fri, 28 Jan 2011 10:41:31 -0500
From: David McArthur <david@HIDDEN>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
MIME-Version: 1.0
To: bug-gnu-emacs@HIDDEN
Subject: 23.1; overprinting / cursor misalignment after certain characters
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 128.177.28.8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 199.232.76.165
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 28 Jan 2011 12:18:46 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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/pipermail/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.6 (------)

Upon typing certain characters in any buffer (including the minibuffer) 
the cursor becomes misaligned and text is overprinted.  These characters 
are: AKkRrTVWwXxYyZ.  This problem only occurs when I have my second 
monitor enabled.

The cursor is a blinking black box such that when the cursor is on top 
of text, the text is printed in inverse (off-white).  What happens after 
typing one of AKkRrTVWwXxYyZ is that the black box is moved to the next 
position, but the character I just typed blinks as though the cursor 
were still on top of it.  The next letter I type then appears twice: 
both in the correct position, and also overprinted on top of the problem 
character to the left.  Also, the problem character is then re-printed 
one position to the left of where I typed it, overprinting on the 
character before it.  Further typing appears normally, as long as the 
characters are not any of AKkRrTVWwXxYyZ.

For example, if I type "text" weird behavior starts after I type the 
lowercase "x".  What I see before I type the second "t" is "tex" with 
the blinking black box to the right of x, but x is also blinking 
(alternating black and off-white).  After typing the second "t", what I 
see is  "t#*t" where # is "x" printed on top of "e" and * is "t" printed 
on top of "x".  If I move the cursor away and type C-l the text is 
redrawn correctly, but if I move the cursor back over the problematic 
characters, the overprinting reoccurs.

This is on my laptop running Ubuntu Maverick.  The problem occurs when I 
have my external monitor enabled (regardless of which monitor the emacs 
window is on).  When the external monitor is disabled, the problem does 
not occur.

Here is a snippet from lspci -v

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 
943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 
[VGA controller])
         Subsystem: Sony Corporation Device 81e6
         Flags: bus master, fast devsel, latency 0, IRQ 16
         Memory at dc200000 (32-bit, non-prefetchable) [size=512K]
         I/O ports at 1800 [size=8]
         Memory at c0000000 (32-bit, prefetchable) [size=256M]
         Memory at dc300000 (32-bit, non-prefetchable) [size=256K]
         Expansion ROM at <unassigned> [disabled]
         Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
         Capabilities: [d0] Power Management version 2
         Kernel driver in use: i915
         Kernel modules: i915


Here is the info from M-x report-emacs-bug

In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
  of 2010-11-26 on vernadsky, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10900000
configured using `configure  '--build=i686-linux-gnu' 
'--host=i686-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=i686-linux-gnu' 'host_alias=i686-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.utf8
   value of $XMODIFIERS: nil
   locale-coding-system: utf-8-unix
   default-enable-multibyte-characters: t

Major mode: Outline

Minor modes in effect:
   goto-address-mode: t
   tooltip-mode: t
   tool-bar-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
   line-number-mode: t
   transient-mark-mode: t
   view-mode: t

Recent input:
r <return> s t u v w <return> x <return> y <return>
z <up> <down> <down> <return> <return> A K R T V W
X Y Z k r w x y <up> <right> C-l C-k C-/ <down> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <down> <down> <right> <right> <right> k <right>
r <right> <right> <right> w <right> x <right> y <right>
C-k C-l <up> C-l <down> <down> <down> <return> <return>
C-h C-p C-s c u r s o <right> <left> <left> <left>
<left> <left> <left> <left> <left> <down> <right> <right>
<down> <up> <left> <left> <left> <left> <right> <right>
<right> <right> <right> <left> <left> <left> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> C-s C-s C-s <down> <down> <down> <down>
<up> <up> C-x b <return> <up> <up> <right> <right>
<right> <right> <right> <right> <down> C-x b <return>
C-l <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <next> <prior> C-s C-s <down> <up> <up>
<up> <up> <up> <up> C-s C-s <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> C-s C-s C-s C-s C-s C-s <down> <down>
<down> <down> <up> <up> <up> <up> <up> <up> C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s M-x r e p o r t e m
a c s <backspace> <backspace> <backspace> <backspace>
<backspace> SPC e m a c s <tab> <return>

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
For information about GNU Emacs and the GNU system, type C-h C-a.
Undo!
Note: file is write protected
View mode: type C-h for help, h for commands, q to quit.
Mark saved where search started [6 times]
/usr/bin/mail is not an executable.  Setting mail-interactive to t.

-- 
David McArthur
david@HIDDEN




Acknowledgement sent to David McArthur <david@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7932; 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.