[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [feature request] org-capture-window-setup to stop capture windo
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame |
Date: |
Tue, 23 Jun 2015 22:31:59 +0200 |
Hello,
Eric S Fraga <address@hidden> writes:
> Thanks for this. Works okay if there is more than one window which is a
> step in the right direction. In any case, you've pointed me in the
> right direction and the following seems to work fine (with very limited
> testing):
>
> diff --git a/lisp/org-capture.el b/lisp/org-capture.el
> index eeb05ca..ac0ed6f 100644
> --- a/lisp/org-capture.el
> +++ b/lisp/org-capture.el
> @@ -1590,8 +1590,7 @@ The template may still contain \"%?\" for cursor
> positioning."
> (unless template (setq template "") (message "No template") (ding)
> (sit-for 1))
> (save-window-excursion
> - (delete-other-windows)
> - (org-pop-to-buffer-same-window (get-buffer-create "*Capture*"))
> + (org-switch-to-buffer-other-window (get-buffer-create "*Capture*"))
> (erase-buffer)
> (insert template)
> (goto-char (point-min))
>
> Feedback from real emacs lisp people welcome...
It looks good. Could you turn it into a proper patch with a commit
message?
Thank you.
Regards,
--
Nicolas Goaziou
- [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Eric S Fraga, 2015/06/08
- Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Charles Millar, 2015/06/08
- Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Kaushal, 2015/06/09
- Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, e.fraga, 2015/06/09
- Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Eric S Fraga, 2015/06/17
- Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Subhan Michael Tindall, 2015/06/17
- Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Eric S Fraga, 2015/06/18
- Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame,
Nicolas Goaziou <=
- Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Eric S Fraga, 2015/06/25
- Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Nicolas Goaziou, 2015/06/25
Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Thierry Banel, 2015/06/08
Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame, Alan Schmitt, 2015/06/09
Message not available