emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [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/)]
@ 2025-01-05  0:29 Michael Heerdegen
  2025-01-05  8:52 ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Heerdegen @ 2025-01-05  0:29 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 778 bytes --]


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

Hi,

especially after displaying the agenda when it didn't exist before, when
I display it (`org-agenda'), switch to it and then move point to the end
of the agenda buffer, and hit f (`org-agenda-later'), I see an purely
void window.  I don't think I messed with agenda displaying, so others
may be able to reproduce this issue.

Hitting C-g suddenly shows everything as expected - do I just need a
redisplay?  Yip, this fixes the issue for me:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-org-org-agenda.el-org-agenda-later-redisplay.patch --]
[-- Type: text/x-diff, Size: 923 bytes --]

From 3e706fef270cdac18d543e8814f76cfedac34916 Mon Sep 17 00:00:00 2001
From: Michael Heerdegen <michael_heerdegen@web.de>
Date: Sun, 5 Jan 2025 01:21:43 +0100
Subject: [PATCH] * lisp/org/org-agenda.el (org-agenda-later): redisplay

Without redisplay sometimes only a void looking window is displayed.
---
 lisp/org/org-agenda.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index 87eda4700b7..14201d2f592 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -8774,7 +8774,8 @@ org-agenda-later
 	   (list (car args) sd span)))
       (org-agenda-redo)
       (org-agenda-find-same-or-today-or-agenda cnt))
-    (set-window-start nil wstart)))
+    (set-window-start nil wstart)
+    (redisplay)))

 (defun org-agenda-earlier (arg)
   "Go backward in time by the current span in the agenda buffer.
--
2.39.5


[-- Attachment #3: Type: text/plain, Size: 451 bytes --]


Hope it's the right thing to do.  Haven't looked whether the same might
be appropriate somewhere else.

TIA,

Michael.



Emacs  : GNU Emacs 31.0.50 (build 22, x86_64-pc-linux-gnu, cairo version 1.16.0)
 of 2025-01-04
Package: Org mode version 9.7.11 (release_9.7.11 @ /usr/local/share/emacs/31.0.50/lisp/org/)

current state:
==============

Sorry, I removed this stuff, it contained too many private information.
Ask me if you want anything.  Thx.

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-01-05 20:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-05  0:29 [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/)] Michael Heerdegen
2025-01-05  8:52 ` Ihor Radchenko
2025-01-05 18:18   ` Michael Heerdegen
2025-01-05 18:31     ` Ihor Radchenko
2025-01-05 20:12       ` Michael Heerdegen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).