]> git.eshelyaron.com Git - emacs.git/commitdiff
(show-paren-command-hook): Specify buffer for move-overay.
authorRichard M. Stallman <rms@gnu.org>
Fri, 30 Jul 1993 07:50:15 +0000 (07:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 30 Jul 1993 07:50:15 +0000 (07:50 +0000)
lisp/paren.el

index cd1c88781803ea231f83f73108edb5877a6d8b63..e42751c706e6d0b3a4b8173b09b17b781267a0d1 100644 (file)
@@ -96,7 +96,9 @@
                   ;; before point as well as its matching open.
                   (progn
                     (if show-paren-overlay-1
-                        (move-overlay show-paren-overlay-1 (+ (point) dir) (point))
+                        (move-overlay show-paren-overlay-1
+                                      (+ (point) dir) (point)
+                                      (current-buffer))
                       (setq show-paren-overlay-1
                             (make-overlay (- pos dir) pos)))
                     (overlay-put show-paren-overlay-1 'face face))
                      (delete-overlay show-paren-overlay-1)))
               ;; Turn on highlighting for the matching paren.
               (if show-paren-overlay
-                  (move-overlay show-paren-overlay (- pos dir) pos)
+                  (move-overlay show-paren-overlay (- pos dir) pos
+                                (current-buffer))
                 (setq show-paren-overlay
                       (make-overlay (- pos dir) pos)))
               (overlay-put show-paren-overlay 'face face))