gnu-emacs-sources
[Top][All Lists]
Advanced

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

Re: mic-paren.el 3.10 available


From: Leo Liu
Subject: Re: mic-paren.el 3.10 available
Date: Thu, 17 Jan 2013 16:18:42 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (OS X 10.8.2)

On 2013-01-17 10:42 +0800, Thien-Thi Nguyen wrote:
> When ignorance falls, then we can celebrate.
> The only sadness is that it has come to this.

Hello Thien and Stefan,

It seems the scan-sexps call in mic-paren-highlight fails to find the
matching parenthesis which gives us the funny mismatch look.

I can get mic-paren to behave by applying this patch but I am not sure
it is the proper fix. Can you take a look? Thanks.

Leo


a/mic-paren.el
b/mic-paren.el
16:11:47.000000000 +0800
@@ -1022,7 +1022,8 @@
                                             (min lim (point-max))
                                           (point-max)))))
                   (condition-case ()
-                      (setq opos (scan-sexps (point) mult))
+                      (setq opos (let ((parse-sexp-ignore-comments nil))
+                                   (scan-sexps (point) mult)))
                     (error nil))))
               ;; We must call matching-paren because `scan-sexps' doesn't
               ;; care about the kind of paren (e.g., matches '( and '}).

Diff finished.  Thu Jan 17 16:11:49 2013



reply via email to

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