emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Clocktable hides agenda buffer due to window manipulation in org-string-width [9.6 (9.6-??-e9da29b6f @ /Users/tok/.emacs.d/.local/straight/build-28.1/org/)]
@ 2022-08-03 16:57 Tobias Kniep
  2022-08-03 22:28 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias Kniep @ 2022-08-03 16:57 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Observation:
When activating clocktable mode in agenda view 
(e.g. by pressing "R"), the current window switches to a previous
buffer and thus hides the agenda. I can manually switch back to the
agenda buffer and the clocktable is displayed. However, any
redrawing of the agenda (e.g. when moving to another day) causes
this issue to repeat, making dealing with the clocktable in the
agenda quite cumbersome.

Analysis:
I'm not an Emacs hacker so please forgive my basis analysis. But I
think that I have tracked the issue down to the way
org-string-width uses a temporary buffer to determine text width.
The way I understand this is that the call to set-window-buffer 
switches the current window (while still showing the agenda
buffer) to the temp buffer for pixel measurement. After the
with-temp-buffer block ends, the temp buffer gets killed
and the window switches back to another buffer. However,
instead of switch to the agenda buffer (which was visible before)
it switches to the previous buffer (the one I had open when
calling the agenda).

The behaviour is new and I think it might be related to this 
change which was introduced recently:
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/lisp/org-macs.el?id=d048c153dd67a118eaa21f04a7faef2800bba03a

Best
Tobias


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

* Re: [BUG] Clocktable hides agenda buffer due to window manipulation in org-string-width [9.6 (9.6-??-e9da29b6f @ /Users/tok/.emacs.d/.local/straight/build-28.1/org/)]
  2022-08-03 16:57 [BUG] Clocktable hides agenda buffer due to window manipulation in org-string-width [9.6 (9.6-??-e9da29b6f @ /Users/tok/.emacs.d/.local/straight/build-28.1/org/)] Tobias Kniep
@ 2022-08-03 22:28 ` Ihor Radchenko
  2022-08-04  4:51   ` Tobias Kniep
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2022-08-03 22:28 UTC (permalink / raw)
  To: Tobias Kniep; +Cc: emacs-orgmode@gnu.org

Tobias Kniep <org_tk@kistbein.de> writes:

> Observation:
> When activating clocktable mode in agenda view 
> (e.g. by pressing "R"), the current window switches to a previous
> buffer and thus hides the agenda. I can manually switch back to the
> agenda buffer and the clocktable is displayed. However, any
> redrawing of the agenda (e.g. when moving to another day) causes
> this issue to repeat, making dealing with the clocktable in the
> agenda quite cumbersome.

Are you able to reproduce starting from emacs -Q?
See https://orgmode.org/manual/Feedback.html

Best,
Ihor


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

* Re: [BUG] Clocktable hides agenda buffer due to window manipulation in org-string-width [9.6 (9.6-??-e9da29b6f @ /Users/tok/.emacs.d/.local/straight/build-28.1/org/)]
  2022-08-03 22:28 ` Ihor Radchenko
@ 2022-08-04  4:51   ` Tobias Kniep
  0 siblings, 0 replies; 3+ messages in thread
From: Tobias Kniep @ 2022-08-04  4:51 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

> Are you able to reproduce starting from emacs -Q?
> See https://orgmode.org/manual/Feedback.html

In fact, I'm not. So I guess there's something in my configuration conflicting with this function. I'll have to find out what it is.

Thanks for pointing this out, and sorry for bothering you.

Best
Tobias


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

end of thread, other threads:[~2022-08-04  4:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03 16:57 [BUG] Clocktable hides agenda buffer due to window manipulation in org-string-width [9.6 (9.6-??-e9da29b6f @ /Users/tok/.emacs.d/.local/straight/build-28.1/org/)] Tobias Kniep
2022-08-03 22:28 ` Ihor Radchenko
2022-08-04  4:51   ` Tobias Kniep

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).