From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#4854: 23.1.50; before-string overlay and show-paren-mode Date: Thu, 05 Nov 2009 00:08:00 +0100 Message-ID: <877hu5zy5r.fsf@escher.local.home> References: <87fx8x0yng.fsf@escher.local.home> Reply-To: Stephen Berman , 4854@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 1257377257 23327 80.91.229.12 (4 Nov 2009 23:27:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Nov 2009 23:27:37 +0000 (UTC) To: 4854@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 05 00:27:30 2009 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 1N5pGD-0005Kc-Aw for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Nov 2009 00:27:29 +0100 Original-Received: from localhost ([127.0.0.1]:37958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5pGC-0002ZW-DH for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Nov 2009 18:27:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5pG8-0002Yk-5N for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2009 18:27:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5pG3-0002Xk-8E for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2009 18:27:23 -0500 Original-Received: from [199.232.76.173] (port=37199 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5pG3-0002Xh-1q for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2009 18:27:19 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38943) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N5pG2-00023X-EF for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2009 18:27:18 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA4NRGYU015251; Wed, 4 Nov 2009 15:27:16 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nA4NF5QM013800; Wed, 4 Nov 2009 15:15:05 -0800 Resent-Date: Wed, 4 Nov 2009 15:15:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stephen Berman Original-Sender: steve@escher.local.home Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 04 Nov 2009 23:15:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4854 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4854-submit@emacsbugs.donarmstrong.com id=B4854.125737609012913 (code B ref 4854); Wed, 04 Nov 2009 23:15:05 +0000 Original-Received: (at 4854) by emacsbugs.donarmstrong.com; 4 Nov 2009 23:08:10 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id nA4N87pv012910 for <4854@emacsbugs.donarmstrong.com>; Wed, 4 Nov 2009 15:08:09 -0800 Original-Received: (qmail invoked by alias); 04 Nov 2009 23:08:02 -0000 Original-Received: from i59F57F86.versanet.de (EHLO escher.local.home) [89.245.127.134] by mail.gmx.net (mp001) with SMTP; 05 Nov 2009 00:08:02 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX18GhBJ12fYG8KsboCBP95sW9qv0u4H5LsCd251Ie2 gJK81NzpIPs2SR Original-Received: by escher.local.home (Postfix, from userid 1000) id 5DC861D19F5; Thu, 5 Nov 2009 00:08:01 +0100 (CET) In-Reply-To: <87fx8x0yng.fsf@escher.local.home> (Stephen Berman's message of "Mon, 02 Nov 2009 15:49:55 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 04 Nov 2009 18:27:23 -0500 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:32414 Archived-At: Here's a slightly simpler test, which has partly different behavior from the one I previously posted. 1. emacs -Q 2. eval this: (defun my-test () (interactive) (unless (let ((ovlist (overlays-in (1- (point)) (1+ (point))))) (when ovlist (overlay-get (car ovlist) 'before-string))) (let ((ov (make-overlay (point) (point) nil))) (overlay-put ov 'before-string "* ")))) 3. eval this: (global-set-key "\C-cy" 'my-test) 4. Insert the string "(test)" into a buffer, put the cursor on `('. 5. Type `C-c y' and/or `M-x my-test' any number of times: the overlay is added once only due to `unless', i.e. this is displayed: * (test) 6. Enable show-paren-mode 7. With the cursor still on `(', type `C-c y' repeatedly => each repetition adds an overlay, e.g. after three repetitions this is displayed (starting from the preceding display): * * * * (test) 8. With the cursor still on `(' and show-paren-mode still enabled, type `M-x my-test' repeatedly => no overlays are added, i.e. the display remains unchanged These two things seem very strange: (i) enabling show-paren-mode and getting the show-paren overlay somehow nullifies the unless test; (ii) this effect only happens when the command is invoked via a key sequence. The result after step 7 seems to be a reproducible heisenbug, in that stepping through my-test (called by typing `C-c y') with edebug does not result in more than one overlay being added. Also, unlike in my OP with narrowing, with the above my-test, typing and deleting a self-inserting character does not prevent repetitions of `C-c y' from adding more overlays. If anyone has any idea what's going on here, or how to debug it, I'd be grateful. Steve Berman