[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs Mac port
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: Emacs Mac port |
Date: |
Mon, 11 Jun 2012 16:29:51 +0900 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Sun, 10 Jun 2012 18:29:26 +0900, YAMAMOTO Mitsuharu <address@hidden>
>>>>> said:
> Emacs 24 Mac port 3.0 is now available from
> ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.1-mac-3.0.tar.gz
> This version is based on Emacs 24.1.
It turned out that the pixel-based mouse wheel smooth scroll had a
problem: scrolling up the contents of a buffer with a header line is
sometimes jumpy. Please apply the patch below. Sorry for the
inconvenience.
(This is due to some incompatibility between Emacs 23 and 24 I
overlooked, so do not apply it to Emacs 23 Mac port 2.1 .)
YAMAMOTO Mitsuharu
address@hidden
=== modified file 'lisp/term/mac-win.el'
*** lisp/term/mac-win.el 2012-06-01 11:45:25 +0000
--- lisp/term/mac-win.el 2012-06-11 07:14:04 +0000
***************
*** 1977,1982 ****
--- 1977,1987 ----
(cadr (pos-visible-in-window-p
(posn-point target-posn) nil t)))
(scrolled-pixel-height (- target-y first-y)))
+ ;; Emacs 23 -> 24 incompatibility: the
+ ;; actual row part of POSITION now counts
+ ;; the header line.
+ (if header-line-height
+ (setq target-row (1- target-row)))
(scroll-up (if (= delta-y scrolled-pixel-height)
target-row
(1+ target-row)))