subr.el (posn-col-row): Evaluate header-line-format in the context of
the POSITION window's buffer.
This commit is contained in:
parent
1557947189
commit
11aad4e9f9
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-12-12 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* subr.el (posn-col-row): Evaluate header-line-format in the
|
||||
context of the POSITION window's buffer.
|
||||
|
||||
2010-12-11 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* subr.el (member-ignore-case, run-mode-hooks, insert-for-yank-1)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue