[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Ari Roponen
Subject: bug#11577: 24.1.50; show-paren-mode broken in trunk
Date: Tue, 29 May 2012 14:45:43 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

martin rudalics <address@hidden> 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 <address@hidden>
  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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]