Mercurial > emacs
changeset 4353:d4e116f25030
(show-paren-command-hook): Specify buffer for move-overay.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 30 Jul 1993 07:50:15 +0000 |
parents | d00889d02f75 |
children | 5b54255ee4b3 |
files | lisp/paren.el |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/paren.el Fri Jul 30 07:01:23 1993 +0000 +++ b/lisp/paren.el Fri Jul 30 07:50:15 1993 +0000 @@ -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))