From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#34038: 26.1; set-window-start sometimes fails to set window start Date: Fri, 11 Jan 2019 18:45:53 +0100 Message-ID: <87o98nf5pq.fsf@metalevel.at> References: <83sgxzhe04.fsf@gnu.org> <87ef9je67i.fsf@metalevel.at> <83d0p3gvua.fsf@gnu.org> <8736pz8dus.fsf@metalevel.at> <5C38B1F5.7040205@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1547228642 28244 195.159.176.226 (11 Jan 2019 17:44:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2019 17:44:02 +0000 (UTC) User-Agent: Emacs/24.5 Cc: 34038@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 11 18:43:58 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gi0qc-0007Bk-8B for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jan 2019 18:43:58 +0100 Original-Received: from localhost ([127.0.0.1]:58798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gi0si-0002mR-OW for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jan 2019 12:46:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gi0sd-0002mL-GY for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 12:46:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gi0sc-0006qj-S8 for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 12:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57032) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gi0sc-0006qf-On for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 12:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gi0sc-0005UP-Ig for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 12:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Jan 2019 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34038 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 34038-submit@debbugs.gnu.org id=B34038.154722875621071 (code B ref 34038); Fri, 11 Jan 2019 17:46:02 +0000 Original-Received: (at 34038) by debbugs.gnu.org; 11 Jan 2019 17:45:56 +0000 Original-Received: from localhost ([127.0.0.1]:56313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gi0sW-0005Tm-EU for submit@debbugs.gnu.org; Fri, 11 Jan 2019 12:45:56 -0500 Original-Received: from metalevel.at ([78.46.218.83]:35832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gi0sU-0005Tc-B8 for 34038@debbugs.gnu.org; Fri, 11 Jan 2019 12:45:54 -0500 Original-Received: by metalevel.at (Postfix, from userid 1000) id 31DFCA0227; Fri, 11 Jan 2019 18:45:53 +0100 (CET) In-Reply-To: <5C38B1F5.7040205@gmx.at> (martin rudalics's message of "Fri, 11 Jan 2019 16:10:45 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154352 Archived-At: martin rudalics writes: > The crucial idiom is provided by the last two forms. Restore window's > point first and then its start position (although any order should do > in your case). This indeed works for the particular snippet I posted. However, I have a more complex application where I am already using set-window-point, and this does not fix the issue. However, in the application for which I need this functionality, it works completely as intended if I add (redisplay) between the calls of set-window-point and set-window-start. >From this, I get the impression that a pending redisplay may interfere with reliably setting the window-start even if window-point is set! All the best, Markus