diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-07-30 07:50:15 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-07-30 07:50:15 +0000 |
commit | 776b7d5aac10fa05cb35d7102ac1b343e0a1bedd (patch) | |
tree | cf80e56091f3e902d584195530fad81a2a27d8d7 /lisp/paren.el | |
parent | 362a07f4a4283d9f9f26667f70eaa31b80589250 (diff) | |
download | emacs-776b7d5aac10fa05cb35d7102ac1b343e0a1bedd.tar.gz |
(show-paren-command-hook): Specify buffer for move-overay.
Diffstat (limited to 'lisp/paren.el')
-rw-r--r-- | lisp/paren.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/paren.el b/lisp/paren.el index cd1c8878180..e42751c706e 100644 --- a/lisp/paren.el +++ b/lisp/paren.el @@ -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)) @@ -106,7 +108,8 @@ (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)) |