all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 'Tomohiro Matsuyama' <tomo@cx4a.org>,
	'Paul Eggert' <eggert@cs.ucla.edu>,
	Drew Adams <drew.adams@oracle.com>,
	emacs-devel@gnu.org
Subject: Re: Timer scheduling and cancel-timer
Date: Tue, 22 Jan 2013 14:57:49 +0100	[thread overview]
Message-ID: <87ehhdxqua.fsf@bzg.ath.cx> (raw)
In-Reply-To: <jwv622p4a3y.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 22 Jan 2013 08:34:04 -0500")

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> Perhaps it is worth reverting the code change you made that makes this happen
>> now, until you find the bug?
>
> No, the change is there specifically to avoid hiding bugs under the
> rug.

The attached patch fixes the bug.

Can anyone confirm this?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: paren.el.patch --]
[-- Type: text/x-patch, Size: 1585 bytes --]

=== modified file 'lisp/paren.el'
--- lisp/paren.el	2013-01-01 09:11:05 +0000
+++ lisp/paren.el	2013-01-22 13:55:42 +0000
@@ -243,23 +243,23 @@
 	  ;;
 	  ;; Turn on highlighting for the matching paren, if found.
 	  ;; If it's an unmatched paren, turn off any such highlighting.
-	  (unless (integerp pos)
-	    (delete-overlay show-paren-overlay))
-	  (let ((to (if (or (eq show-paren-style 'expression)
-			    (and (eq show-paren-style 'mixed)
-				 (not (pos-visible-in-window-p pos))))
-			(point)
-		      pos))
-		(from (if (or (eq show-paren-style 'expression)
+	  (if (not (integerp pos))
+	      (when show-paren-overlay (delete-overlay show-paren-overlay))
+	    (let ((to (if (or (eq show-paren-style 'expression)
 			      (and (eq show-paren-style 'mixed)
 				   (not (pos-visible-in-window-p pos))))
-			  pos
-			(save-excursion
-			  (goto-char pos)
-			  (- (point) dir)))))
-	    (if show-paren-overlay
-		(move-overlay show-paren-overlay from to (current-buffer))
-	      (setq show-paren-overlay (make-overlay from to nil t))))
+			  (point)
+			pos))
+		  (from (if (or (eq show-paren-style 'expression)
+				(and (eq show-paren-style 'mixed)
+				     (not (pos-visible-in-window-p pos))))
+			    pos
+			  (save-excursion
+			    (goto-char pos)
+			    (- (point) dir)))))
+	      (if show-paren-overlay
+		  (move-overlay show-paren-overlay from to (current-buffer))
+		(setq show-paren-overlay (make-overlay from to nil t)))))
 	  ;;
 	  ;; Always set the overlay face, since it varies.
 	  (overlay-put show-paren-overlay 'priority show-paren-priority)


[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


-- 
 Bastien

  reply	other threads:[~2013-01-22 13:57 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-20 15:58 Timer scheduling and cancel-timer Tomohiro Matsuyama
2013-01-20 19:22 ` Paul Eggert
2013-01-20 21:04   ` Drew Adams
2013-01-20 21:35     ` Drew Adams
2013-01-21  1:36     ` Stefan Monnier
2013-01-21  1:39       ` Drew Adams
2013-01-22  3:50         ` Drew Adams
2013-01-22 11:28           ` Stephen Berman
2013-01-22 16:00             ` Stephen Berman
2013-01-22 16:09               ` Bastien
2013-01-23  9:32                 ` Bastien
2013-01-23 13:03                   ` Stefan Monnier
2013-01-23 13:29                     ` Bastien
2013-01-23 20:35                       ` Stefan Monnier
2013-01-23 22:01                         ` Bastien
2013-01-24 16:32               ` Drew Adams
2013-01-24 19:02                 ` Bastien
2013-01-22 13:34           ` Stefan Monnier
2013-01-22 13:57             ` Bastien [this message]
2013-01-22 14:14               ` Stefan Monnier
2013-03-31 11:17   ` Tomohiro Matsuyama
2013-03-31 16:44     ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ehhdxqua.fsf@bzg.ath.cx \
    --to=bzg@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=tomo@cx4a.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.