From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Bach Subject: org-edit-src-code window setup Date: Fri, 07 Feb 2014 12:29:04 +0100 Message-ID: Reply-To: phaebz@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBjiD-0001DS-Dj for emacs-orgmode@gnu.org; Fri, 07 Feb 2014 06:35:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBji6-0004Tz-4H for emacs-orgmode@gnu.org; Fri, 07 Feb 2014 06:35:13 -0500 Received: from plane.gmane.org ([80.91.229.3]:49645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBji5-0004Pz-OP for emacs-orgmode@gnu.org; Fri, 07 Feb 2014 06:35:06 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WBji4-0008Om-Kr for emacs-orgmode@gnu.org; Fri, 07 Feb 2014 12:35:04 +0100 Received: from 83-64-142-10.zwischennetz.xdsl-line.inode.at ([83.64.142.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Feb 2014 12:35:04 +0100 Received: from phaebz by 83-64-142-10.zwischennetz.xdsl-line.inode.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Feb 2014 12:35:04 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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