emacs-orgmode
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]