From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] keep source code buffer open Date: Wed, 11 Apr 2012 10:06:39 -0400 Message-ID: <87zkai2wi8.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI04b-0001Di-0N for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:07:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SI04X-0005fa-V3 for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:07:08 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:60085) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SI04X-0005fQ-Q4 for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:07:05 -0400 In-Reply-To: (Torsten Wagner's message of "Wed, 11 Apr 2012 23:58:49 +0900") 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 Hi Torsten, You could keep the buffer open but just save it with C-x C-s which will propagate changes back to the original Org-mode buffer. If you want to wrap the save->switch-to-org->export actions into a single keystroke then I think an Emacs Macro or writing a simple personal elisp function would be the best approach. Best, Torsten Wagner writes: > 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 > -- Eric Schulte http://cs.unm.edu/~eschulte/