aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2010-11-13 23:07:58 +0200
committerEli Zaretskii2010-11-13 23:07:58 +0200
commite68afd742f1d1a98f7d14219b3981ace2f91f39c (patch)
tree9d484255dae9ab0e3739cda6fe78d2411e13eb2a /lisp
parentde02effd8d2c2f8ada0eb8bda143b38e7506e2ae (diff)
downloademacs-e68afd742f1d1a98f7d14219b3981ace2f91f39c.tar.gz
emacs-e68afd742f1d1a98f7d14219b3981ace2f91f39c.zip
subr.el (posn-col-row): Pay attention to header line. (Bug#7390)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el3
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8be8e44d9a6..3e974e9b81f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12010-11-13 Eli Zaretskii <eliz@gnu.org>
2
3 * subr.el (posn-col-row): Pay attention to header line. (Bug#7390)
4
12010-11-13 Chong Yidong <cyd@stupidchicken.com> 52010-11-13 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * textmodes/picture.el (picture-mouse-set-point): Don't use 7 * textmodes/picture.el (picture-mouse-set-point): Don't use
diff --git a/lisp/subr.el b/lisp/subr.el
index 41697faeaca..7449295421c 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -955,7 +955,8 @@ and `event-end' functions."
955 ((null spacing) 955 ((null spacing)
956 (setq spacing 0))) 956 (setq spacing 0)))
957 (cons (/ (car pair) (frame-char-width frame)) 957 (cons (/ (car pair) (frame-char-width frame))
958 (/ (cdr pair) (+ (frame-char-height frame) spacing)))))))) 958 (- (/ (cdr pair) (+ (frame-char-height frame) spacing))
959 (if (null header-line-format) 0 1))))))))
959 960
960(defun posn-actual-col-row (position) 961(defun posn-actual-col-row (position)
961 "Return the actual column and row in POSITION, measured in characters. 962 "Return the actual column and row in POSITION, measured in characters.