[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13248: [PATCH] bug#13248: 24.2.50; select-window moves point (in com
From: |
martin rudalics |
Subject: |
bug#13248: [PATCH] bug#13248: 24.2.50; select-window moves point (in comint-postoutput-scroll-to-bottom) |
Date: |
Tue, 25 Dec 2012 19:09:38 +0100 |
> Here is a patch of the comint-postoutput-scroll-to-bottom to circumvent
> resetting the point on select-window.
I'm too silly to understand what this is supposed to do. But the
doc-string of `comint-adjust-point' says "Move point in the selected
window based on Comint settings." which, together with the fact that you
call this in a loop over all windows showing some buffer, indicates to
use `set-window-point' rather than `goto-char'. So why can't you write
something like
(dolist (w (get-buffer-window-list current nil t))
(when (and (< (window-point) (process-mark process))
...)
(set-window-point w ...)))
here?
martin