emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrg@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Re: org-edit-src-code : same window?
Date: Wed, 01 Sep 2010 21:22:37 +0200	[thread overview]
Message-ID: <i5m960$881$1@dough.gmane.org> (raw)
In-Reply-To: 4C7EA62B.7020001@ccbr.umn.edu


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

--8<---------------cut here---------------start------------->8---
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)))
--8<---------------cut here---------------end--------------->8---


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

-- 
☘ http://www.shamrockirishbar.com, http://www.richardriley.net

"Learning French is trivial: the word for horse is 'cheval' and
 everything follows thusly." : quotemaster, #emacs on irc.freenode.net

  reply	other threads:[~2010-09-01 19:23 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   ` Richard Riley [this message]
2010-09-02  4:20     ` [PATCH] " Dan Davison
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='i5m960$881$1@dough.gmane.org' \
    --to=rileyrg@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).