From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#349: show-paren-mode overlay extending onto new text Date: Mon, 02 Jun 2008 11:46:20 +1000 Message-ID: <87k5h8vcb7.fsf@blah.blah> Reply-To: Kevin Ryde , 349@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212372729 18645 80.91.229.12 (2 Jun 2008 02:12:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2008 02:12:09 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 02 04:12:50 2008 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.50) id 1K2zXR-0003oG-3s for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jun 2008 04:12:45 +0200 Original-Received: from localhost ([127.0.0.1]:50556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2zWe-0003WH-NU for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Jun 2008 22:11:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K2zWY-0003Ts-Du for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2008 22:11:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K2zWX-0003T3-2A for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2008 22:11:49 -0400 Original-Received: from [199.232.76.173] (port=53575 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2zWW-0003So-OH for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2008 22:11:48 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58966) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K2zWV-0003BA-T0 for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2008 22:11:48 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m522Bj1v017754; Sun, 1 Jun 2008 19:11:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m521t4Fw012397; Sun, 1 Jun 2008 18:55:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Kevin Ryde Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 02 Jun 2008 01:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 349 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121237119711147 (code B ref -1); Mon, 02 Jun 2008 01:55:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 2 Jun 2008 01:46:37 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m521kWHA011135 for ; Sun, 1 Jun 2008 18:46:34 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K2z84-000502-E9 for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2008 21:46:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K2z83-0004z7-FX for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2008 21:46:32 -0400 Original-Received: from [199.232.76.173] (port=52391 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2z83-0004yy-Bq for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2008 21:46:31 -0400 Original-Received: from mailout2-6.pacific.net.au ([61.8.2.229]:39351 helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K2z82-0008J0-HE for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2008 21:46:31 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id B5C5EB110F for ; Mon, 2 Jun 2008 11:46:26 +1000 (EST) Original-Received: from blah.blah (ppp2F2B.dyn.pacific.net.au [61.8.47.43]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 9BFDB27432 for ; Mon, 2 Jun 2008 11:46:25 +1000 (EST) Original-Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1K2z7s-0005jb-EY for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2008 11:46:20 +1000 User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.2 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sun, 01 Jun 2008 22:11:49 -0400 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 Xref: news.gmane.org gmane.emacs.bugs:18214 Archived-At: In show-paren-mode, when point is after a closing paren so it and the opener are highlighted, sometimes newly inserted text is covered with the paren colour too, for a little while. This doesn't happen all the time, but I've noticed in particular in program output from M-x compile. So from "emacs -Q", M-x show-paren-mode M-x compile echo -n '(hello)'; sleep 6; yes C-x o # to *compilation* buffer M-> # go to end of buffer => the (hello) parens are highlighted => but then the output of "yes" is highlighted too The "sleep 6" gives you a chance to switch to the compilation buffer, the "echo -n" is so there's no trailing newline in the buffer yet. An "echo" like this is of course a contrivance, but I've struck the effect in real program output when switching to the buffer at a random point or when a close paren is a genuine last bit of its output so far. I guess for most insertions the timer or whatever gets a chance to reset or hide the overlay, but for heavy running compile output maybe that doesn't happen. I wondered if the make-overlay in show-paren-function might have the "rear-advance" arg nil, unless there's ever a time it ought to extend. In GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-04-27 on raven, modified by Debian 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/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/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_AU locale-coding-system: iso-8859-1 default-enable-multibyte-characters: t Major mode: Group Minor modes in effect: gnus-topic-mode: t gnus-undo-mode: t show-paren-mode: t encoded-kbd-mode: t file-name-shadow-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t