all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-edit-src-code window setup
@ 2014-02-07 11:24 Michael Bach
  2014-02-07 11:27 ` Michael Bach
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Bach @ 2014-02-07 11:24 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-edit-src-code window setup
  2014-02-07 11:24 Michael Bach
@ 2014-02-07 11:27 ` Michael Bach
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Bach @ 2014-02-07 11:27 UTC (permalink / raw)
  To: help-gnu-emacs

On 2/7/14 12:24 PM, Michael Bach wrote:
> 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
> 
> 
> 

argh, wrong list, sorry... but maybe someone here wants to answer anyways...



^ permalink raw reply	[flat|nested] 5+ messages in thread

* org-edit-src-code window setup
@ 2014-02-07 11:29 Michael Bach
  2014-02-07 17:01 ` John Hendy
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Bach @ 2014-02-07 11:29 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-edit-src-code window setup
  2014-02-07 11:29 org-edit-src-code window setup Michael Bach
@ 2014-02-07 17:01 ` John Hendy
  2014-02-09 18:32   ` Michael Bach
  0 siblings, 1 reply; 5+ messages in thread
From: John Hendy @ 2014-02-07 17:01 UTC (permalink / raw)
  To: Michael Bach; +Cc: emacs-orgmode

On Fri, Feb 7, 2014 at 5:29 AM, Michael Bach <phaebz@gmail.com> wrote:
> 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').

Can you clarify whether you simply want to obtain this view in Emacs
and are not sure how, or if you are asking for a way to automate the
process via a keyboard binding/macros/function in order to do this
automatically on every use of =C-c '=?


[snip]

> Best Regards,
> Michael Bach
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-edit-src-code window setup
  2014-02-07 17:01 ` John Hendy
@ 2014-02-09 18:32   ` Michael Bach
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Bach @ 2014-02-09 18:32 UTC (permalink / raw)
  To: John Hendy; +Cc: emacs-orgmode

On 2/7/14 6:01 PM, John Hendy wrote:
> On Fri, Feb 7, 2014 at 5:29 AM, Michael Bach <phaebz@gmail.com> wrote:
>> 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').
> 
> Can you clarify whether you simply want to obtain this view in Emacs
> and are not sure how, or if you are asking for a way to automate the
> process via a keyboard binding/macros/function in order to do this
> automatically on every use of =C-c '=?
> 

I set this view up myself and also remember that there is a way to
automate this.  My problem is not with the setup per se, but with the
behaviour that if I repeatedly press =C-c '= in the mentioned window
setup, the org src buffer is alternatingly displayed in window 2 and 3,
which is annoying (distracting)

I would like the interpreter buffer to stay in window 3 and the org src
buffer always be displayed in window 2 if I press =C-c '=.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-09 18:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-07 11:29 org-edit-src-code window setup Michael Bach
2014-02-07 17:01 ` John Hendy
2014-02-09 18:32   ` Michael Bach
  -- strict thread matches above, loose matches on Subject: below --
2014-02-07 11:24 Michael Bach
2014-02-07 11:27 ` Michael Bach

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.