From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QA7hFsMKg2eG3AAA62LTzQ:P1 (envelope-from ) for ; Sun, 12 Jan 2025 00:20:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QA7hFsMKg2eG3AAA62LTzQ (envelope-from ) for ; Sun, 12 Jan 2025 01:20:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b=PaerJ2vW; 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=1736641219; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=idSxy1BIFiX1CZtvLlDTAJt+OXHG/BfoNMR71gK0m0w=; b=AqEBqw9VP/xE88HvbEhPlEYH9VBJKsciU5eXTrk4T8j4y2CzkmVajv61lBMSv7FvutGArD S3/gp37KilfikY0O6iYSaIdDVX0kOtw8a9N7rMsKerjEitF047hGZZe78cpTMiwPItNjDp B6lLbjXVtOW+j5AUJ96ayGXwIbH3LNYzbbRxgzNJ3VL1jF285iSfGEvCZBhKOtWZBMbni6 npWXejfo2xTgK83g4wHwU1yUtuVyFgOmPQrAMPP1ZEbhpWjVgJI92hQ1EtPY2Fm+UPSxl4 YOMo1M9rC13NacYuEqUU7Mh6AGLca3KQbfK96h2CC0ZuIkp8SXKMW139zpxMfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b=PaerJ2vW; 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=1736641219; a=rsa-sha256; cv=none; b=FxdZNPKVwZuQxDQ4mD8ct+c27OXxp4VVDy2UqwDj5zOldexrwhIY4ZrkFuZCQw4pdKCOjY GRmSNfG+hQNOE/1m7BWPx/5NxIFl+ow9wwbviVS9MZ9HamLMeY7UnBSfZ6BmqcuePc0O6i hHZFRitiyFLe9soVd15Rw7nLkgbCnERQqt0FHM69+v0LFJo36/aTrgSg56B13gDqhU5hmd 7WWlN3rSHrDVyr1VDnVyfj+8wlS6IsnLJdy372z7xNqFlPPJfnalRYKYcGbyQuihF2VieU lN1eHes/7iaDpOX5zrVTErTREpd2aKi2kQI5vZwEVkKlw5FxuFbBGaleG5vy3g== 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 1F11895F33 for ; Sun, 12 Jan 2025 01:20:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tWlhP-0006wv-NQ; Sat, 11 Jan 2025 19:19:27 -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 1tWlhN-0006wj-Rl for emacs-orgmode@gnu.org; Sat, 11 Jan 2025 19:19:25 -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 1tWlhM-0001uc-2J for emacs-orgmode@gnu.org; Sat, 11 Jan 2025 19:19:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1736641160; x=1737245960; i=michael_heerdegen@web.de; bh=idSxy1BIFiX1CZtvLlDTAJt+OXHG/BfoNMR71gK0m0w=; h=X-UI-Sender-Class:From:To: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=PaerJ2vWNMTQyUz98WMdPRP6bxCXCvo6shYhsf7dzXt0ji7YWYUdHzTkOKSWattX 3813OA/qYQbeJHrAJWJXbIET7mlzNbiCE/y5l7YHbHG/h3v3O/TzToK1d4i4ESa5O oa3KvhRZRX3x8kYzVxctb+hhxpzkiJdxSxwppfquC3q28sElI5PWnIIUGiKqmI718 +YQXo5QAHlYbRr7zxFoxp4SxnbA135ecAX93ksLwhthmkW8GEU4eWLgHM/sWrua5I BPPUOO9fro3oJ4RbKN8Uxbgvkz0JkZ4HA/O7i0cVc6NYAStWHXichD1ADa4JiZRa+ Vun0fUCDPFTE9gpltA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MwR05-1tGCon1g0b-00y3fn; Sun, 12 Jan 2025 01:19:20 +0100 From: Michael Heerdegen To: 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: <8734hp1kjk.fsf@localhost> (Ihor Radchenko's message of "Sat, 11 Jan 2025 14:39:59 +0000") References: <874j2e14sz.fsf@web.de> <87v7utprqe.fsf@localhost> <87y0zpqg44.fsf@web.de> <87ttadnmcv.fsf@localhost> <87ttadqati.fsf@web.de> <8734hp1kjk.fsf@localhost> Date: Sun, 12 Jan 2025 01:20:34 +0100 Message-ID: <878qrgzxv1.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:DEQiEOInyVnN5SiPO8aKiPmHLRB7w4hmWIzArJA3loXyF8K1pR5 s2rN8YvTHE/G73XKwcP9Rj5o4dPQwajf3AaqtGcr/U6EiMOmUkrxs0tGziVrTy13mSYrQzr PLWNdYZQknk/RnwYbClLXN8g35UZoEOEiuX1RJFdsnq+vYfi7NoFBuVHKF1SvfvyJLbawIQ c2wg9/yVu6TO7mp+EMU/w== UI-OutboundReport: notjunk:1;M01:P0:lJrONxVcCAo=;j6uZ4O9UFkI5PPr3zKSLKvMYve1 RHSczubLBuLjNLvl7uPmDtcd/D503YGl2Q9E28NRioWjBNeOzVpjO7Bw/hz7K4nPxfTSocUpP FHIdXCZvUYaQYTXFTsyPSNEKDnkTZWxANwRdku9cAIyguyAv9pYlE2rQ20nqSNsIN0oLJQvUz lMnLIxYAnn7rthNtXwoz82gIkGga/edce23TzgMdRXZzsDa/JdV/VHHnq7StTvHAvKOhmsLBm lQAiyvULGaAFFymXz2OED9tyJVtDBtiogMgPWkSH9F8VDeD5HeNJ9MBQQyW4lWamdFLZo93gm MQdmj2MHBjqRN3wHtAgqReFl9mgPayyacT9vU/kwjV1+GQbBbN7pFXA40QWMupJzFhTwDmY+x O1KSlF/hZwqV6wkRl4St6vbXKOWUoc93ghHlpU3nWCVXmC6y/tDHzMFPuPkDrnaa7EG1Z0vp9 CQ2Htnzgrf3cmfXAI8jZHYGNA4gG0wE7Wm8+hUzi+Za2Uud3rDnuiSY/SPiDnAo6wJ9ygv1Cl jG4+SSzqWrg+6F4mrlmbX7txICrI7mjZJvmoUwh2LLq1ESIJAHcO470E1QZzJ576sClTtnc4X J1hJO3jJfQaRFtYt+YvW3iLUMO2udLN+jj0yQo4p/BHZOwlr+dtM1OUOvOdfg1O4GuApVPMtN VIuarztyzptgSLN7+KbcfNjC60qYEF9yqU7Ra+GRb7ep8G7z7Eckxs00DAZxVVsGsmzYTxXP2 6GWg/PNPzVBRvaxVPeD4DKR7D7pQwrR4uAe5ZG6mBYIb0/86/7e29sOKgTbRqaFmP+MOCOL8O 2Vecn5Nj81PxjuOPzbIKOOE9oU8bW5olLe9tsBqfGXqdnHxCcppXqw0IaPpQBBcm0HA10HQbN rbfTCdjM5tvEWnxrBo6J56hlLwFBikbXZZbpq+0apGn4MO39Yf83GOfVwQR20e2kq1cIk0t8l +cSKrLkeWkjBwTzG/UqVO014QcPmLNBMWTFjwrPL/9csEq/R5/BfFLheGD/XzbGECTJ9y/bXf 7/ZWfIqiTVkA2RUorWC4pWn1A1ZHgmG50wxSySfF9PMcGZ3iu2uC4g8DYfmxV6jly6qeH93lc OszYMWza4= 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.86 X-Spam-Score: -4.86 X-Migadu-Queue-Id: 1F11895F33 X-TUID: r35a50YaD/NY Ihor Radchenko writes: > + (unless (< (point) wstart) ; do no scroll past the point > + (set-window-start nil wstart)))) Thanks. Hmmm - don't we have the same problem when (point) > (window-end)? And this case is nastier, since exact window-end calculation needs a redisplay. We might introduce a flicker when trying to fix it. At the risk of annoying you even more (I'm really sorry about that) - are you open to a small redesign? Since line lengths differ, we are currently setting window-start to a random line, to some degree. (And I think window-start should better be set to the beginning of line). One step back: What problem does this hack solve? Org already remembers the unit number of the time period point is in, and restores that: with point in a Wednesday, the new view will have point set to the beginning of the next Wednesday. The display engine ensures that point is made visible. So that window-start thing does something different. I guess that the purpose of this is to make the switch visually more appealing, so that the eye is presented a similar perspective. But then, shouldn't we at least use a line based approach? Then, what the code is currently agnostic to is point at being at eob. This always annoyed me. 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. If you are open to the approach I could give it a try. Thanks, Michael.