From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miguel Frasson Newsgroups: gmane.emacs.bugs Subject: Highlight/font-lock problem with non-fixed width fonts Date: Wed, 2 Feb 2005 16:07:01 +0100 (CET) Message-ID: <20050202150701.0718B8014@mira.math.leidenuniv.nl> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1107357700 32002 80.91.229.2 (2 Feb 2005 15:21:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Feb 2005 15:21:40 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 02 16:21:40 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CwMGs-0008Au-Bi for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 16:18:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwMU1-0003GW-0c for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Feb 2005 10:31:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CwMP5-0000V1-Of for bug-gnu-emacs@gnu.org; Wed, 02 Feb 2005 10:26:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CwMOq-0000Nm-6v for bug-gnu-emacs@gnu.org; Wed, 02 Feb 2005 10:26:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwMOo-0000J6-Sl for bug-gnu-emacs@gnu.org; Wed, 02 Feb 2005 10:26:34 -0500 Original-Received: from [132.229.231.52] (helo=spica.math.leidenuniv.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CwM61-0006kf-Om for bug-gnu-emacs@gnu.org; Wed, 02 Feb 2005 10:07:10 -0500 Original-Received: from mira.math.leidenuniv.nl (mira.math.leidenuniv.nl [132.229.230.2]) by spica.math.leidenuniv.nl (Postfix) with ESMTP id 470F55BD2A for ; Wed, 2 Feb 2005 16:07:02 +0100 (CET) Original-Received: by mira.math.leidenuniv.nl (Postfix, from userid 685) id 0718B8014; Wed, 2 Feb 2005 16:07:01 +0100 (CET) Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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 X-MailScanner-To: geb-bug-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.bugs:10654 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:10654 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.3.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars) of 2004-04-15 on bugs.devel.redhat.com configured using `configure --host=i386-redhat-linux --build=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-pop --with-sound' 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 locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hi. I am using in some lines (section title in LaTeX-mode in new AUCTeX) a large non-fixed width font (helvetica) (AUCTeX defaults), and I use also pc-selection-mode. I was in a long line, with non-fixed width font, that is displayed in 2 lines. I select text in this line such that text in both displayed lines is highlighted. Then I delete this text. Strangely, there is a tiny (or huge, depending on what is next) area in the end of the line that is still highlighed. An undo action, that puts the text back and does _not_ select anything, does not paint in white again that region. What I think that is happening: since the text is in non-fixed font, the end of the "picture" of the last displayed character in a line does not coincide with the frame border. There is a white (bg color) region, smaller in width than the next character. This region is not correctly handled. A screenshot demonstrating the problem is found in http://www.math.leidenuniv.nl/~frasson/emacs-bug-highlight.png Best regards. Miguel. Recent input: C-_ SPC SPC / m m m m m m m m C-_ Recent messages: Mark set Undo! Mark set Undo! Mark set Undo! Mark set [2 times] Undo! Auto-saving... Loading emacsbug...done