[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: org-edit-src keeps splitting the window [9.2.5 (release_9.2
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug: org-edit-src keeps splitting the window [9.2.5 (release_9.2.5-504-g3c24be @ /home/immanuel/.emacs.d/straight/build/org/)] |
Date: |
Mon, 02 Sep 2019 21:41:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
immanuel <address@hidden> writes:
> When org-edit-src-code is called with org-window-setup equal to
> 'split-window-below or 'split-window-right it will keep splitting the
> window if the mouse is clicked on the src block in the org buffer.
> This patch tries to address that
[...]
> +(defun org-src-select-window-for-buffer (buffer split-fun)
You should make it an internal function: `org-src--select-window-for-buffer'.
> + "Tries to select an existing window for buffer or splits the
> window."
You need to expound the docstring a bit, e.g.:
"Re-use an existing window or split the current window.
If BUFFER is current in a window, use it. Otherwise, split the current
window, according to SPLIT-FUN, in order to display it.
Also, I think this should be notified in ORG-NEWS file.
Thank you!
Regards,
--
Nicolas Goaziou
- Re: [O] Bug: org-edit-src keeps splitting the window [9.2.5 (release_9.2.5-504-g3c24be @ /home/immanuel/.emacs.d/straight/build/org/)],
Nicolas Goaziou <=