Subject: bug#11577: 24.1.50; show-paren-mode broken in trunk

From: Ari Roponen <[email-masked]>
Date: Tue, 29 May 2012 14:45:43 +0300

martin rudalics <[email-masked]> writes:

> Some change in the last four days broke `show-paren-mode' here:
>

I was just about to report the same problem :-)

Using GIT + bisect, I found that the bug comes from:

  commit 96f1e61015615eef4fce55e7a4b1019e8e215efc
  Author: Paul Eggert <[email-masked]>
  Date:   Fri May 25 13:30:19 2012 -0700

      * src/buffer.c (Fmove_overflay): Clip instead of trying to fix bug 9642.

The following patch seems to fix the problem:

diff --git a/src/buffer.c b/src/buffer.c
index 5d431f2..74d2efb 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3758,8 +3758,8 @@ buffer.  */)
       eassert (XOVERLAY (overlay)->next == NULL);
     }
 
-  Fset_marker (OVERLAY_START (overlay), beg, buffer);
-  Fset_marker (OVERLAY_END   (overlay), end, buffer);
+  Fset_marker (OVERLAY_START (overlay), make_number (n_beg), buffer);
+  Fset_marker (OVERLAY_END   (overlay), make_number (n_end), buffer);
 
   /* Put the overlay on the wrong list.  */
   end = OVERLAY_END (overlay);

-- 
Ari Roponen