* window.el (display-buffer-record-window): When WINDOW is the
selected window use `point' instead of `window-point'. (Bug#9626)
2011-09-29 Martin Rudalics <rudalics@gmx.at>
+ * window.el (display-buffer-record-window): When WINDOW is the
+ selected window use `point' instead of `window-point'. (Bug#9626)
+
* startup.el (command-line-1): Use insert-before-markers when
inserting initial-scratch-message. (Bug#9605)
+
* help.el (help-window): Remove variable.
2011-09-29 Glenn Morris <rgm@gnu.org>
(list 'other
;; A quadruple of WINDOW's buffer, start, point and height.
(list (window-buffer window) (window-start window)
- (window-point window) (window-total-size window))
+ (if (eq window (selected-window))
+ ;; When WINDOW is the selected window use its
+ ;; buffer's `point' instead of `window-point'
+ ;; (Bug#9626).
+ (with-current-buffer (window-buffer window)
+ (point))
+ (window-point window))
+ (window-total-size window))
(selected-window) buffer))))
((eq type 'window)
;; WINDOW has been created on an existing frame.