657 |
corresponds to the vertical position of the click in the scroll bar." |
corresponds to the vertical position of the click in the scroll bar." |
658 |
(let* ((pair (nth 2 position)) |
(let* ((pair (nth 2 position)) |
659 |
(window (posn-window position)) |
(window (posn-window position)) |
660 |
(vspacing (or (buffer-local-value 'line-spacing |
(vspacing (or (frame-parameter (window-frame window) 'line-spacing) |
661 |
(window-buffer window)) |
default-line-spacing))) |
|
0))) |
|
662 |
(if (eq (if (consp (nth 1 position)) |
(if (eq (if (consp (nth 1 position)) |
663 |
(car (nth 1 position)) |
(car (nth 1 position)) |
664 |
(nth 1 position)) |
(nth 1 position)) |
671 |
(cons (scroll-bar-scale pair (window-width window)) 0) |
(cons (scroll-bar-scale pair (window-width window)) 0) |
672 |
(let* ((frame (if (framep window) window (window-frame window))) |
(let* ((frame (if (framep window) window (window-frame window))) |
673 |
(x (/ (car pair) (frame-char-width frame))) |
(x (/ (car pair) (frame-char-width frame))) |
674 |
(y (/ (cdr pair) (+ (frame-char-height frame) vspacing)))) |
(y (/ (cdr pair) (+ (frame-char-height frame) |
675 |
|
(or vspacing 0))))) |
676 |
(cons x y)))))) |
(cons x y)))))) |
677 |
|
|
678 |
(defsubst posn-timestamp (position) |
(defsubst posn-timestamp (position) |