diff options
| author | Eli Zaretskii <eliz@gnu.org> | 2010-12-12 22:45:57 +0200 |
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2010-12-12 22:45:57 +0200 |
| commit | 11aad4e9f9f54ce8e9ecc66347e512b20a3cdf39 (patch) | |
| tree | 09beb0200c6b9515d9bf45223050202425c998f6 /lisp/subr.el | |
| parent | 15579471891efd210b5d9edd29c1374cba98f648 (diff) | |
| download | emacs-11aad4e9f9f54ce8e9ecc66347e512b20a3cdf39.tar.gz | |
subr.el (posn-col-row): Evaluate header-line-format in the context of
the POSITION window's buffer.
Diffstat (limited to 'lisp/subr.el')
| -rw-r--r-- | lisp/subr.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index c0f65897f29..e4be7df50c7 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -958,7 +958,9 @@ and `event-end' functions." (setq spacing 0))) (cons (/ (car pair) (frame-char-width frame)) (- (/ (cdr pair) (+ (frame-char-height frame) spacing)) - (if (null header-line-format) 0 1)))))))) + (if (null (with-current-buffer (window-buffer window) + header-line-format)) + 0 1)))))))) (defun posn-actual-col-row (position) "Return the actual column and row in POSITION, measured in characters. |
