]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the highlight overlay extension
authorVinicius Jose Latorre <viniciusjl@ig.com.br>
Fri, 1 Dec 2006 21:03:19 +0000 (21:03 +0000)
committerVinicius Jose Latorre <viniciusjl@ig.com.br>
Fri, 1 Dec 2006 21:03:19 +0000 (21:03 +0000)
lisp/ChangeLog
lisp/paren.el

index fd3a2a501037c3bf61aa29f72cc7ad0dcf3b0f88..cc1982b69c63762cea12ab2057220078fe3f594f 100644 (file)
@@ -4,6 +4,10 @@
 
 2006-12-01  Vinicius Jose Latorre  <viniciusjl@ig.com.br>
 
+       * paren.el: Fix the highlight overlay extension when the user types a
+       sequence of char very fast just after the open parenthesis.
+       Suggested by Ben North <ben@redfrontdoor.org>.
+
        * ps-mule.el: Eliminate Emacs 20 compatibility.
 
        * ps-print.el: Eliminate Emacs 20 & 21 compatibility.
index 29506174c6b07485ef1ccd1c44fdd288b3762ffa..fe928045765208c0ac7f989c14985230ad30b604 100644 (file)
@@ -220,7 +220,7 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
                        (point))))
              (if show-paren-overlay-1
                  (move-overlay show-paren-overlay-1 from to (current-buffer))
-               (setq show-paren-overlay-1 (make-overlay from to)))
+               (setq show-paren-overlay-1 (make-overlay from to nil t)))
              ;; Always set the overlay face, since it varies.
              (overlay-put show-paren-overlay-1 'priority show-paren-priority)
              (overlay-put show-paren-overlay-1 'face face)))
@@ -243,7 +243,7 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
                          (forward-point (- dir))))))
            (if show-paren-overlay
                (move-overlay show-paren-overlay from to (current-buffer))
-             (setq show-paren-overlay (make-overlay from to))))
+             (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)