# HG changeset patch # User Chong Yidong # Date 1180705664 0 # Node ID 5d313ba2e8de880546b79907e46f9641a92b40ae # Parent 18f27a3ca8116ed0a62e96d3b1f4d7a8ec117381 (show-paren-function): Undo 2007-04-19 and 2007-04-20 changes. diff -r 18f27a3ca811 -r 5d313ba2e8de lisp/paren.el --- a/lisp/paren.el Fri Jun 01 13:47:33 2007 +0000 +++ b/lisp/paren.el Fri Jun 01 13:47:44 2007 +0000 @@ -143,7 +143,6 @@ (let ((oldpos (point)) (dir (cond ((eq (syntax-class (syntax-after (1- (point)))) 5) -1) ((eq (syntax-class (syntax-after (point))) 4) 1))) - (window-start (window-start)) pos mismatch face) ;; ;; Find the other end of the sexp. @@ -248,13 +247,7 @@ ;; ;; Always set the overlay face, since it varies. (overlay-put show-paren-overlay 'priority show-paren-priority) - (overlay-put show-paren-overlay 'face face)) - ;; If there are continued lines, the above operations can - ;; force redisplay to recenter the window (since there is no - ;; way for it to know that the overlay changes to the buffer - ;; are harmless). So reset the window-start. - (unless (window-minibuffer-p) - (set-window-start (selected-window) window-start))) + (overlay-put show-paren-overlay 'face face))) ;; show-paren-mode is nil in this buffer. (and show-paren-overlay (delete-overlay show-paren-overlay))