emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: Richard Riley <rileyrg@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Re: org-edit-src-code : same window?
Date: Wed, 01 Sep 2010 21:20:37 -0700	[thread overview]
Message-ID: <87aao06aju.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <i5m960$881$1@dough.gmane.org> (Richard Riley's message of "Wed, 01 Sep 2010 21:22:37 +0200")

Richard Riley <rileyrg@gmail.com> writes:

> Erik Iverson <eriki@ccbr.umn.edu> writes:
>
>> See the org-src-window-setup variable.
>>
>> I think you want it set to current-window.
>
> Well spotted. Thanks. Here is a small path to update the docs to mention
> this :-

Thanks Richard, I've added that.

Dan

>
> diff --git a/lisp/org-src.el b/lisp/org-src.el
> index 7ed7606..920fa8a 100644
> --- a/lisp/org-src.el
> +++ b/lisp/org-src.el
> @@ -200,7 +200,7 @@ The example is copied to a separate buffer, and that buffer is switched
>  to the correct language mode.  When done, exit with \\[org-edit-src-exit].
>  This will remove the original code in the Org buffer, and replace it with
>  the edited version. Optional argument CONTEXT is used by
> -\\[org-edit-src-save] when calling this function."
> +\\[org-edit-src-save] when calling this function. See \\[org-src-window-setup] to configure the buffer open mode."
>    (interactive)
>    (unless (eq context 'save)
>      (setq org-edit-src-saved-temp-window-config (current-window-configuration)))
>
>
>>
>> Richard Riley wrote:
>>> Is there a way to configure emacs/org so that C-c ' which calls
>>> org-edit-src-code for me opens the source in the  same window rather
>>> than splitting the window and continuing to show the then redundant org
>>> babel source?
>>> 
>>> cheers
>>> 
>>> r.
>>> 
>>> 
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Please use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>

  reply	other threads:[~2010-09-02  4:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-01 19:03 org-edit-src-code : same window? Richard Riley
2010-09-01 19:14 ` Erik Iverson
2010-09-01 19:22   ` [PATCH] " Richard Riley
2010-09-02  4:20     ` Dan Davison [this message]
2010-09-01 19:27 ` Samuel Wales
2010-09-01 19:30   ` Samuel Wales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87aao06aju.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=rileyrg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).