From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#349: show-paren-mode overlay extending onto new text Date: Mon, 02 Jun 2008 09:47:54 -0400 Message-ID: References: <87k5h8vcb7.fsf@blah.blah> <484391EC.2050905@gmx.at> Reply-To: Stefan Monnier , 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 1212415962 15216 80.91.229.12 (2 Jun 2008 14:12:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2008 14:12:42 +0000 (UTC) Cc: 349@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org, Kevin Ryde To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 02 16:13:22 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 1K3AmM-0005Cy-Ag for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jun 2008 16:12:54 +0200 Original-Received: from localhost ([127.0.0.1]:51860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3Ala-0008Vr-5B for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jun 2008 10:12:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3AlO-0008SJ-7L for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2008 10:11:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3AlL-0008RT-Lv for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2008 10:11:53 -0400 Original-Received: from [199.232.76.173] (port=33191 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3AlL-0008RQ-9N for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2008 10:11:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34398) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K3AlK-0001Kt-Ur for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2008 10:11:51 -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 m52EBjX5000759; Mon, 2 Jun 2008 07:11:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m52Dt7Gf028056; Mon, 2 Jun 2008 06:55:07 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 02 Jun 2008 13:55:07 +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 349-submit@emacsbugs.donarmstrong.com id=B349.121241448426468 (code B ref 349); Mon, 02 Jun 2008 13:55:07 +0000 Original-Received: (at 349) by emacsbugs.donarmstrong.com; 2 Jun 2008 13:48:04 +0000 Original-Received: from ceviche.home (206-248-132-168.dsl.teksavvy.com [206.248.132.168]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m52DlxHm026462 for <349@emacsbugs.donarmstrong.com>; Mon, 2 Jun 2008 06:48:01 -0700 Original-Received: by ceviche.home (Postfix, from userid 20848) id 127C9B4239; Mon, 2 Jun 2008 09:47:54 -0400 (EDT) In-Reply-To: <484391EC.2050905@gmx.at> (martin rudalics's message of "Mon, 02 Jun 2008 08:23:40 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 02 Jun 2008 10:11:53 -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:18222 Archived-At: >> 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) > [...] >> show-paren-mode: t > [...] > Version 1.75 of paren.el has > (setq show-paren-overlay-1 (make-overlay from to nil t))) > and > (setq show-paren-overlay (make-overlay from to nil t)))) > hence both overlays seem to have "rear-advance" nil. Indeed, the problem is that compile.el uses insert-before-markers. So no amount of rear-advance will help. I have been using a simple patch which adds a buffer-local variable which I called `window-marker-insertion-type' (but I realize now it should rather be `window-point-insertion-type'), so major modes can set this variable if they want `window-point' to be "move after insertion". This way, compile.el (and other similar packages) might not need to use insert-before-markers. Stefan