From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id ELD4ALTbhWf4awEA62LTzQ:P1 (envelope-from ) for ; Tue, 14 Jan 2025 03:36:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id ELD4ALTbhWf4awEA62LTzQ (envelope-from ) for ; Tue, 14 Jan 2025 04:36:20 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b=F9ZVW40V; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=web.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736825779; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eLI9voMsY9g3mW0SliBdQy+Wqu7gXb7C0SHbQ3mWtzI=; b=YpXMGFjIewGws9sw0acpIwCFUufPULnZ1cgGaYr29KPM7OmClky3Ekeazh6pfv2KmwcHbn sZhD58IFFEEHZgcqZxzfvptEW9zwysE8z+PpjpS3FOn5u1LwGNfLY60n6FQkh8qvi7MHJM bV6rFgIlp70KdwX6hnYUDsBABAHrLVDhghMWV8aYlxXuoSL++NSyq1Px+t8MeXYk8GJwRb CCokB6MeXrr6cEasGiAxfsNLxZj4Rictoi8yrjKRLUgC8jC4Jl5lRJIRmnI62ywjw6/hsi 7Rv3LPD5RNoKYfsgxmPFcdYeOU337iXh6N1+NVZdpqhSTK7RezePhDQ9huhN1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b=F9ZVW40V; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=web.de ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736825780; a=rsa-sha256; cv=none; b=gnJStzu8I8Gaa7qarRBUJlS2WuhOo1/TTPFXSCI5Fm+SbckMaYJDHoup3QU994hsCxn6c7 pp3XN/aS95VTq8A22Y2BjNXzoLg2la7JSn9iREPkiG5I+hQqISOl9PNSZDmmUNFqOgFb7m AHyrJpEBm7U+6xd4CfMdI9pw316VKdg6vBKMi9ie9HV+O8zLwAaYTQ/BwijrlnqwufbK71 pSMGobQZCLqwX8HIrC0RRt4IlbJDtXQIKA8qc3iTtN0RA8r9PH62qWhhWWCsuAbn8qHDoS a7DfHRdJ2JCuHTFGzXjDrhKhGRPapUHcwywo89tNBYVk20nFV+gszptZGPFCuA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0348B41789 for ; Tue, 14 Jan 2025 04:36:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tXXhn-0003Ho-Sh; Mon, 13 Jan 2025 22:35:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tXXhl-0003Gl-0c for emacs-orgmode@gnu.org; Mon, 13 Jan 2025 22:35:01 -0500 Received: from mout.web.de ([212.227.15.4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tXXhj-00023e-34 for emacs-orgmode@gnu.org; Mon, 13 Jan 2025 22:35:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1736825696; x=1737430496; i=michael_heerdegen@web.de; bh=eLI9voMsY9g3mW0SliBdQy+Wqu7gXb7C0SHbQ3mWtzI=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=F9ZVW40VBaWNqdDbo+1IzwoKRjLnfLbPak9/GmBwzNHNFXCdcAUzgvyS6P025Xtu Yg1XrRja9Z5pp8hVV8x2GKA4mrHrtC/NDpjBaF5sR2511oD22MmgkZeZO0aKYFAmW Cc0dK9fbSNkAORT4BN0HJEGutTYSoKbkhiNcm1AQJWNzushKrBo2r894z+krCHWPa hgxcq5r63fWpqcE1a3K4Z2KD6hqB0HfKICAL1ykoOHdMOgbyFcTbpV/XOhp5o4bFC ExKm0wJ1GQj+NuUyMsv+gVJ/rzS1wm6I3WdggctaX/pmp1NWRcWXLiOaOalWpqRJ0 rUwe4KbUbW9eRRMWow== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N14pS-1tRJJi1QZG-016p92; Tue, 14 Jan 2025 04:34:56 +0100 From: Michael Heerdegen To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-agenda-later sometimes creates a void display [9.7.11 (release_9.7.11 @ /usr/local/share/emacs/31.0.50/lisp/org/)] In-Reply-To: <87a5bw79g2.fsf@localhost> (Ihor Radchenko's message of "Sun, 12 Jan 2025 07:55:25 +0000") References: <874j2e14sz.fsf@web.de> <87v7utprqe.fsf@localhost> <87y0zpqg44.fsf@web.de> <87ttadnmcv.fsf@localhost> <87ttadqati.fsf@web.de> <8734hp1kjk.fsf@localhost> <878qrgzxv1.fsf@web.de> <87a5bw79g2.fsf@localhost> Date: Tue, 14 Jan 2025 04:36:10 +0100 Message-ID: <87a5buvzh1.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:kvTXOR/ZYpXD79Qvf2lVggPknom4edfNJHPEVfCJV3O++H+ASFE ibrvUXZiUPIxoIcccFxAIgARWEqMG0wrNMKHM9pQdD9vsueCeHYGlep9ody2uBCjA/Y0K9K nMv5C4Q+ZinmxaxcFDize4XjmUx2kwSEtdpROHxyNQWGZTNQsyOpIeAgu9kIzKiX1KApb0P gE/PTBaDPo9S4c/RgoYQw== UI-OutboundReport: notjunk:1;M01:P0:6yzkXg9nLWE=;XN/HnUtnG2CJrTbFJcPBH52yaNh rBxwmsAYHdR+kgVHYpFAI0OfO34KmO+0xW4yuiE/4D47pBawZ7X2c90hlflUe5jFo0ozjT68h cLyI6nZvBnjtRsbB74Yoim2ZxyaRnQz7FyzPf+QCEB8bDgaLXPuYas5LGBHyQfzoejMpKXAqy E+b52Tl1H/r3D9cLGwTwBZCJCBuhjgtdktCXGbAHtwaSypSbaPTa1m4PX56Mz3MI9DNt+nYTL PnsSq/l5gIOdS0V2RKCpvmEodqvtW5F3CR/OWZKeaW2b84zavPH0I5AXr8YZE2ojgHkUGha7H S73iiH2S2Qyte8TfFo095NY7NtnWHLr2u++CDetfp8gTuKfrSIexysxF1WACO8Mj2JlCdjLNN L0BtyMQ6Ta+A+42OFyf83RbwWMnDJSxdmLvepMHpYsrXQUkCRa5OioJUSt/NExY0j391kkOeR KyDpmC/x8AlHofpB55n9q+F30cdxxGoSc37f4E3xJ7WK5ksuBQUXJAQnjT+phOfKeSNuzp7N9 gefOcxlpyvj1QCLgLKSRaZW08aqtrs3Q2qRzIHu80b+ZWdXQIJ2BuVUsSbF4LPxVZGPD2/5g+ M2HiwKBxDUSJ8BGq9Q0onC9cHMuBc29ikVCq5azsglwGJnFYpJ9mtifq8AUb9T1SbEVYtIUYu V8LB5wcSm5kQGsYgo/C1mFOrl+WnBAXOC2gDGZcNkQ8GXOMuEkjOPMMQLV/cerzGgn3BvO8BY kfx882l1jVG4LISjsdxGXEWrv7h+OgxXHbOGS3bD/TvVsGhNiWy2ND8qVnxdDV51ogEQOATb+ /NFX8C0XUOK8/4wDjM40kYmSpMFBDjF5VvCl6azlD4Dx8tEFhq53faGHYwbD24LICa0e81pvD IMj+4jTci9gLCj4Pl0v9JfQzuLGjA/gSBa+VZgLSnLomF8hko12mhZCQ7HVNKaSVmv3uYW9M8 Ck5wWupvwUNaAKZc3hhWz1MAgdCWQFU8J01DUTBSBDjCTfa83vvZ/xgwBmOH/1Cv7tQvuu2Zf tkHC2JQsQYKsQc8dmtWsuhe8kgMi6mCoDuecdIEP3FMnZaQluOLGuVtdWMlFBBD5FmkfqECkN 2QjGzM2k4= Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 0348B41789 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -0.45 X-Spam-Score: -0.45 X-TUID: i8YphoVM+D2V Ihor Radchenko writes: > > One step back: What problem does this hack solve? [...] > > https://orgmode.org/list/87lfh2hk4k.fsf@gmail.com/ I asked rhetorically ;-) But thanks, this is what I expected. > > How about something like this? > > > > - If point is at bob, we ensure that point is restored at bob - and > > likewise for eob. > > > > - When bob was visible in the prior view, we use window-start = 1 > > for the new view, too > > > > - But when bob was not visible in the last view, we try to restore the > > visible line number containing the window point, so that hitting f > > will show the cursor at the same vertical position as in the last > > view. Or maybe better: restore the vertical position of the > > beginning of the weekday point was in. > > I hope that my idea in the patch is good enough and that we do not need > to go into redisplay complications. These points would not mess with redisplay, just set window-start to something different than now. > - (set-window-start nil wstart))) > + (set-window-start nil wstart 'noforce))) Nice trick (or workaround), thanks. Yes, this solves my problem indeed, and behaves quite ok. Time will show whether I like the behavior, but it's a definite improvement, so I suggest we go with it for now. Thanks for your help, Michael.