all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Bach <phaebz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: org-edit-src-code window setup
Date: Fri, 07 Feb 2014 12:24:19 +0100	[thread overview]
Message-ID: <ld2foo$76k$1@ger.gmane.org> (raw)

Dear org-mode Developers and Users,

(Org-mode version 8.2.5g from git)

I want to change the behaviour of C-c ' when inside a source block.
What I am after is best described in a schematic:

+---------------+---------------+
|		|		|
|		|	2	|		 	
|		|		|
|		|		|
+	1	+---------------+
|		|		|
|		|	3	|
|		|		|
|		|		|
+---------------+---------------+

I am editing the .org file in window 1 ('org').  I want C-c ' to display
the code block contents in window 2 ('source').  In window 3 I want to
have the interpreter for the language I am editing ('interpreter').

I read up on the internal documentation:
`org-edit-special' > `org-edit-src-code' > `org-src-window-setup' >
other-window (`switch-to-buffer-other-window')

Now, when I do C-c ' multiple times, the source buffer changes from 2 to
3 and back again and so on - effectively switching the 'source' and
'interpreter' window contents on each C-c '.

After reading the documentation for `switch-to-buffer-other-window', I
wanted to check out the NORECORD option that has the description:

	Optional second argument NORECORD non-nil means do not put this
	buffer at the front of the list of recently selected ones.

Now is there a way to control this option that I miss?  Would it have
any effect?  How would you handle this situation?

Best Regards,
Michael Bach




             reply	other threads:[~2014-02-07 11:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-07 11:24 Michael Bach [this message]
2014-02-07 11:27 ` org-edit-src-code window setup Michael Bach
  -- strict thread matches above, loose matches on Subject: below --
2014-02-07 11:29 Michael Bach
2014-02-07 17:01 ` John Hendy
2014-02-09 18:32   ` Michael Bach

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

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

  git send-email \
    --in-reply-to='ld2foo$76k$1@ger.gmane.org' \
    --to=phaebz@gmail.com \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.