From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Bach Newsgroups: gmane.emacs.help Subject: org-edit-src-code window setup Date: Fri, 07 Feb 2014 12:24:19 +0100 Message-ID: Reply-To: phaebz@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1391772294 8235 80.91.229.3 (7 Feb 2014 11:24:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2014 11:24:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 07 12:25:01 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WBjYL-0000HR-Gm for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 12:25:01 +0100 Original-Received: from localhost ([::1]:40910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBjYL-0005o1-3N for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 06:25:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBjY4-0005mw-0f for help-gnu-emacs@gnu.org; Fri, 07 Feb 2014 06:24:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBjXu-00012w-Q2 for help-gnu-emacs@gnu.org; Fri, 07 Feb 2014 06:24:43 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:52379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBjXu-00012s-JO for help-gnu-emacs@gnu.org; Fri, 07 Feb 2014 06:24:34 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WBjXt-0008Ka-MJ for help-gnu-emacs@gnu.org; Fri, 07 Feb 2014 12:24:33 +0100 Original-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:24:33 +0100 Original-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:24:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 83-64-142-10.zwischennetz.xdsl-line.inode.at User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95961 Archived-At: 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