From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: [babel] ledger tutorial on Worg Date: Thu, 09 Sep 2010 17:42:00 -0400 Message-ID: <87zkvqlhlj.fsf@stats.ox.ac.uk> References: <871v9lm0s3.wl%ucecesf@ucl.ac.uk> <4296BE2D-051E-47E8-8AA7-24582082DD0F@gmail.com> <87zkw8vzxw.fsf@gmail.com> <87aao1bt8w.fsf@mundaneum.com> <87mxs1co0f.wl%ucecesf@ucl.ac.uk> <87mxs071us.fsf@mundaneum.com> <87tym8b3e0.fsf@gmail.com> <87mxryv9ah.fsf@mundaneum.com> <8762ymo6hf.fsf@gmail.com> <877hizvrui.fsf@mundaneum.com> <87wrqxw3ou.fsf@gmail.com> <871v94wspn.fsf@mundaneum.com> <87r5h4xgt3.fsf@gmail.com> <87bp87kj7b.fsf@mundaneum.com> <8762yfktad.fsf@mundaneum.com> <87r5h33pgm.fsf@gmail.com> <87wrquzo06.fsf@mundaneum.com> <87mxrqzkhk.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=59950 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Otosm-0004gt-V6 for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 17:42:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Otosl-0004Ok-I1 for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 17:42:12 -0400 Received: from plane.gmane.org ([80.91.229.3]:34873) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Otosl-0004ON-CJ for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 17:42:11 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Otosh-000708-QJ for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 23:42:07 +0200 In-Reply-To: <87mxrqzkhk.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Thu, 09 Sep 2010 23:15:51 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org S=C3=A9bastien Vauban writes: > Hi Eric, > > S=C3=A9bastien Vauban wrote: >> "Eric Schulte" wrote: >>> S=C3=A9bastien Vauban writes: >>>> Hi Eric, >>>> S=C3=A9bastien Vauban wrote: >>> as a side note, for experimenting with tangling like in the above, I >>> find the `org-babel-expand-src-block' command bound to C-c C-v v >>> (mnemonic "view") to be very useful as it shows the expanded version of >>> the current code block. >> >> Knew about it. But... never used/thought before. Interesting command! > > Though... > > When editing code with =3DC-c '=3D, I chose to reuse the current window. > > When viewing the results, I find myself preferring to use another window,= so > that I see what the code is, and to what it gets converted. > > For the first case, I have to write: > > (setq org-src-window-setup 'current-window) > > For the second: > > (setq org-src-window-setup 'reorganize-frame) > > Is it, then, possible to get two vars? Or is my suggestion a bit silly? Hi Seb, in the absence of having distinct variables for this, you could make your own version, e.g. (defun my/org-babel-expand-src-block () (interactive) (let ((org-src-window-setup 'reorganize-frame)) (org-babel-expand-src-block))) Dan > > >>>> Maybe it'd be good to echo that "no eval" occurs anymore in such a >>>> condition? >>> >>> hmm, but then it would inhibit C-c C-c from performing the next action >>> in the `org-ctrl-c-ctrl-c-hook'. >> >> I mean: if C-c C-c is disabled, but run on code, then echo "I do nothing= ". If >> not, do the same as C-c C-v C-e... >> >> Feasible? Interesting (for others, like me, in the future)? > > Echoing that request, so that you can answer both in one post... > > Thanks in advance. > > Best regards, > Seb