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 15:31:55 +0100 Message-ID: <8736pz8dus.fsf@metalevel.at> References: <83sgxzhe04.fsf@gnu.org> <87ef9je67i.fsf@metalevel.at> <83d0p3gvua.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1547217942 7827 195.159.176.226 (11 Jan 2019 14:45:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2019 14:45:42 +0000 (UTC) User-Agent: Emacs/24.5 Cc: 34038@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 11 15:45:37 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 1ghy40-0001uA-Uf for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jan 2019 15:45:37 +0100 Original-Received: from localhost ([127.0.0.1]:41258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghy64-0004HX-ND for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jan 2019 09:47:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghxqt-0000nb-IW for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 09:32:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghxqs-0002Ta-OT for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 09:32:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55488) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ghxqs-0002TS-LJ for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 09:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ghxqs-0000P0-C9 for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 09:32: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 14:32: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.15472171191537 (code B ref 34038); Fri, 11 Jan 2019 14:32:02 +0000 Original-Received: (at 34038) by debbugs.gnu.org; 11 Jan 2019 14:31:59 +0000 Original-Received: from localhost ([127.0.0.1]:54769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghxqo-0000Oj-Nh for submit@debbugs.gnu.org; Fri, 11 Jan 2019 09:31:58 -0500 Original-Received: from metalevel.at ([78.46.218.83]:32916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghxqm-0000Ob-JA for 34038@debbugs.gnu.org; Fri, 11 Jan 2019 09:31:57 -0500 Original-Received: by metalevel.at (Postfix, from userid 1000) id 384ADA0227; Fri, 11 Jan 2019 15:31:55 +0100 (CET) In-Reply-To: <83d0p3gvua.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Jan 2019 15:36:13 +0200") 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:154346 Archived-At: Eli Zaretskii writes: > IOW, if there's a contradiction between the requested window-start and > showing point, the latter always wins in Emacs. OK! However, in the snippet I posted, there appears to be no such contradiction, because the window-start can be set to the intended position while point is also displayed. This is illustrated before you press a key when you run the snippet, and after you press a key, I would like to reliably restore the exact same display situation as before. > > How can you expect Emacs to do something like that? It cannot > possibly do something that will leave point not displayed, can it? I agree. However, that is not what I was requesting. What I need for my use case is to reliably restore a configuration that I know is possible to display on the grounds that it has already been displayed before. Is there any way to do this, or could this please be provided? Thank you and all the best, Markus