From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: A scrolling problem with Emac trunk Date: Mon, 17 Dec 2012 14:17:23 -0500 Message-ID: References: <50CF01A5.1050701@alice.it> <50CF2074.7040406@gmx.at> <50CF576A.5050703@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355771862 3053 80.91.229.3 (17 Dec 2012 19:17:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2012 19:17:42 +0000 (UTC) Cc: emacs , Angelo Graziosi To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 17 20:17:56 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TkgCK-0004EV-8I for ged-emacs-devel@m.gmane.org; Mon, 17 Dec 2012 20:17:56 +0100 Original-Received: from localhost ([::1]:32909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkgC6-0001Zs-SC for ged-emacs-devel@m.gmane.org; Mon, 17 Dec 2012 14:17:42 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkgBr-0000x6-DX for emacs-devel@gnu.org; Mon, 17 Dec 2012 14:17:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TkgBq-0005BS-59 for emacs-devel@gnu.org; Mon, 17 Dec 2012 14:17:27 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:40160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkgBq-0005BM-1n for emacs-devel@gnu.org; Mon, 17 Dec 2012 14:17:26 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FxLDj/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kE4gJBboJkEQDiEKacYFYgwc X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="210103410" Original-Received: from 69-196-176-227.dsl.teksavvy.com (HELO pastel.home) ([69.196.176.227]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Dec 2012 14:17:25 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id EB81D5912C; Mon, 17 Dec 2012 14:17:23 -0500 (EST) In-Reply-To: <50CF576A.5050703@gmx.at> (martin rudalics's message of "Mon, 17 Dec 2012 18:33:30 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155628 Archived-At: > revno: 111232 > committer: Stefan Monnier > branch nick: trunk > timestamp: Fri 2012-12-14 10:52:43 -0500 > message: > * src/xdisp.c (display_mode_lines): Keep selected_window and selected_frame > in sync. It's actually the 111231 that's the problem (it's probably what you meant). Changing selected_window without sync'ing point is at the root of the problem. Often it's not a problem because we set selected-window back to its previous value before it can cause problems, but in the select_frame_for_redisplay that's not the case if redisplay moves point (as it does when it needs to scroll). I believe it's fixed now. Stefan