[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: show-paren-mode prevents page-down from displaying next 1/2 page.
From: |
Chong Yidong |
Subject: |
Re: show-paren-mode prevents page-down from displaying next 1/2 page. |
Date: |
Wed, 18 Apr 2007 18:26:52 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux) |
"Maguire, Andrew (GE Infra, Energy)" <address@hidden> writes:
> Here goes:
>
> (require 'cl-macs)
> (defun test:scroll-up:show-paren-mode ()
> ...
This glitch occurs because show-paren-mode tries to highlight before
window-start, which forces the redisplay engine to recenter. It's no
big deal, but I believe this patch fixes it. Could someone help me
double-check?
*** emacs/lisp/paren.el.~1.71.~ 2007-01-21 13:34:19.000000000 -0500
--- emacs/lisp/paren.el 2007-04-18 18:25:16.000000000 -0400
***************
*** 146,152 ****
pos mismatch face)
;;
;; Find the other end of the sexp.
! (when dir
(save-excursion
(save-restriction
;; Determine the range within which to look for a match.
--- 146,154 ----
pos mismatch face)
;;
;; Find the other end of the sexp.
! (when (or (= dir 1)
! (and (= dir -1)
! (>= (1- (point)) (window-start))))
(save-excursion
(save-restriction
;; Determine the range within which to look for a match.
- Re: show-paren-mode prevents page-down from displaying next 1/2 page., Richard Stallman, 2007/04/17
- RE: show-paren-mode prevents page-down from displaying next 1/2 page., Maguire, Andrew \(GE Infra, Energy\), 2007/04/18
- RE: show-paren-mode prevents page-down from displaying next 1/2 page., Maguire, Andrew \(GE Infra, Energy\), 2007/04/19
- RE: show-paren-mode prevents page-down from displaying next 1/2 page., Maguire, Andrew \(GE Infra, Energy\), 2007/04/19