GNU bug report logs - #13248
24.2.50; select-window moves point (in comint-postoutput-scroll-to-bottom)

Previous Next

Package: emacs;

Reported by: Vitalie Spinu <spinuvit <at> gmail.com>

Date: Fri, 21 Dec 2012 13:16:02 UTC

Severity: normal

Found in version 24.2.50

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 13248 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Vitalie Spinu <spinuvit <at> gmail.com>
Cc: 13248 <at> debbugs.gnu.org
Subject: Re: [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




This bug report was last modified 12 years and 145 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.