+2003-03-11 John Paul Wallington <jpw@gnu.org>
+
+ * subr.el (posn-col-row): Heed frame parameter `line-spacing' and
+ `default-line-spacing', rather than buffer-local `line-spacing'.
+
2003-03-10 Per Abrahamsen <abraham@dina.kvl.dk>
* cus-edit.el (customize-rogue): New command.
corresponds to the vertical position of the click in the scroll bar."
(let* ((pair (nth 2 position))
(window (posn-window position))
- (vspacing (or (buffer-local-value 'line-spacing
- (window-buffer window))
- 0)))
+ (vspacing (or (frame-parameter (window-frame window) 'line-spacing)
+ default-line-spacing)))
(if (eq (if (consp (nth 1 position))
(car (nth 1 position))
(nth 1 position))
(cons (scroll-bar-scale pair (window-width window)) 0)
(let* ((frame (if (framep window) window (window-frame window)))
(x (/ (car pair) (frame-char-width frame)))
- (y (/ (cdr pair) (+ (frame-char-height frame) vspacing))))
+ (y (/ (cdr pair) (+ (frame-char-height frame)
+ (or vspacing 0)))))
(cons x y))))))
(defsubst posn-timestamp (position)