From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: window.el modify current emacs23 behavior of anything. Date: Wed, 21 Sep 2011 10:34:58 +0200 Message-ID: <4E79A1B2.9010009@gmx.at> References: <87aaaab8jn.fsf@gmail.com> <4E6FA0E6.2090003@gmx.at> <877h585trj.fsf@gmail.com> <4E738310.2070005@gmx.at> <8739fw5lip.fsf@gmail.com> <4E745D84.8050301@gmx.at> <87pqiz3xov.fsf@gmail.com> <4E74D8AF.8000603@gmx.at> <87r53ecj65.fsf@gmail.com> <4E78BA49.4070306@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1316594122 25224 80.91.229.12 (21 Sep 2011 08:35:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2011 08:35:22 +0000 (UTC) Cc: emacs-devel@gnu.org, Thierry Volpiatto To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 21 10:35:11 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R6IGs-0002ZH-TO for ged-emacs-devel@m.gmane.org; Wed, 21 Sep 2011 10:35:11 +0200 Original-Received: from localhost ([::1]:44324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6IGs-00014T-DT for ged-emacs-devel@m.gmane.org; Wed, 21 Sep 2011 04:35:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6IGp-00013F-K6 for emacs-devel@gnu.org; Wed, 21 Sep 2011 04:35:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6IGn-0007CT-SI for emacs-devel@gnu.org; Wed, 21 Sep 2011 04:35:07 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:46213) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1R6IGn-0007Ad-Ei for emacs-devel@gnu.org; Wed, 21 Sep 2011 04:35:05 -0400 Original-Received: (qmail invoked by alias); 21 Sep 2011 08:35:00 -0000 Original-Received: from 62-47-34-140.adsl.highway.telekom.at (EHLO [62.47.34.140]) [62.47.34.140] by mail.gmx.net (mp022) with SMTP; 21 Sep 2011 10:35:00 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+ntmtkI6ynajRoyzgeQY1JhZHLu6appoLUm66xUJ YbJUi1rdI40LbL User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 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:144139 Archived-At: > Try M-: (progn (set-window-start (selected-window) (point)) (goto-char (point-min))) > > and you'll see the that set-window-point ... you mean `set-window-start' here I suppose ... > wins even though it's run > before the goto-char. > > That's why a sit-for works around the problem: it causes the > set-window-start to be "executed", letting the subsequent goto-char do > its job. Indeed. Thanks for the explanation :-) > So maybe the right fix is to remove the call to set-window-start. I did as Thierry suggested: Call `set-window-start' with NOFORCE non-nil. martin