From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Witte Subject: Re: [babel] keep source code buffer open Date: Wed, 11 Apr 2012 18:10:22 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI07s-0003zB-HR for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:10:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SI07l-00076L-Vu for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:10:32 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:57568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI07l-000761-Py for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:10:25 -0400 Received: by werj55 with SMTP id j55so858531wer.0 for ; Wed, 11 Apr 2012 09:10:23 -0700 (PDT) In-Reply-To: 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: Torsten Wagner Cc: Org Mode Mailing List Here is a keyboard macro I used with some success (fset 'org-execute-from-indirect =A0 (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ("C-c ' C-c C-c C-'" 0 "%d")) arg))) basically it just exits the source code buffer, compiles and then reopens the source code buffer On 11 April 2012 16:58, Torsten Wagner wrote: > Hi, > yep me again. > I find myself hitting C-' all the day long today and was wondering is > there a way to keep the source code buffer open instead of closing it > after pressing again C-'. > Now I need to do > * C-' open the source code buffer > * do my changed > * C-' close the buffer take over the changes > * C-c C-e d export as PDF after evaluation of all code blocks > * check the PDF > * start over again > All this comes with window splits and most of the time I hit C-s in > the wrong buffer because I am so used to it to save my changes to > files. > > I would like to make changes in the code buffer and start e.g. > evaluation or exporting from within the source code buffer. > > That is > * Press once C-' > * make my changes > * press C-c ?? to move all changes over into the org-mode buffer and > evaluate the source code block > or > * press C-c ?? to move all changes over into the org-mode buffer and > export the org-buffer > repeat > > Is there any way to do this? > > That's it for today... promise > > Thanks > Torsten >