Björn Kettunen <[email protected]> writes:

>> Just try
>> 1. make repro
>> 2. M-x find-file /tmp/test.org
>>    You will have a single window in the Emacs frame
>> 3. Add a heading
>> * heading
>> 4. C-c C-z
>> 5. The note window will pop up
>> 6. type something
>> 7. C-c C-c
>> 8. There will be two windows in Emacs frame
>
> I could reproduce this issue. I think saving the window configuration
> after poping to the org-log-note marker but before poping the org-note
> buffer would work for both setups.
>
> In both cases the window configuration in that frame the org-note is
> taken should be saved and restored.
>
> Saving the window configuration of that frame the org-note is in would
> make sure the  correct window configuration is restore no matter what
> frame is the frame of origin.

This fixes my reproducer, but leave conceptually similar problem.
Try

1. make repro
2. M-x find-file /tmp/test.org
3. Add a heading
* TODO heading
4. M-x org-agenda RET < t
5. Agenda buffer will show up with TODO heading listed
6. C-x 1 to maximize the agenda buffer
7. Put cursor on TODO heading
8. C-c C-z
9. Type something
10. C-c C-c
11. Instead of returning to agenda buffer, the test.org buffer will be 
displayed.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to