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

> I have a patch to fix the bug. The issue was that the window
> configuration to restore to was set to early, i.e. set before popping to
> the frame the note is taken in.

But if we do not pop the frame, but simply a buffer, we *DO NOT* want
the notes buffer window configuration to be saved.

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

> The other change I have is to raise the frame where the call to take the
> note is issued from if it's different from the one where it's taken.
> To restore back the focus as it was when the command to take a note was
> called, this aligns the behavior as if the only one frame was used.

What about using current-frame-configuration instead of 
current-window-configuration?

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