emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: "Sébastien Vauban"
	<public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org
Subject: Re: [babel] ledger tutorial on Worg
Date: Thu, 09 Sep 2010 17:42:00 -0400	[thread overview]
Message-ID: <87zkvqlhlj.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <87mxrqzkhk.fsf@mundaneum.com> ("Sébastien Vauban"'s message of "Thu, 09 Sep 2010 23:15:51 +0200")



Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
writes:

> Hi Eric,
>
> Sébastien Vauban wrote:
>> "Eric Schulte" wrote:
>>> Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw-XMD5yJDbdMRG2NFembrH+g@public.gmane.orgorg> writes:
>>>> Hi Eric,
>>>> Sébastien 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 =C-c '=, 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

  reply	other threads:[~2010-09-09 21:42 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 23:06 [babel] ledger tutorial on Worg Eric S Fraga
2010-08-27 14:53 ` Carsten Dominik
2010-08-27 15:27   ` Eric Schulte
2010-08-27 19:33     ` Eric S Fraga
2010-09-01 11:25     ` Sébastien Vauban
2010-09-01 18:33       ` Eric S Fraga
2010-09-02  0:19         ` Eric Schulte
2010-09-02 12:43         ` Sébastien Vauban
2010-09-02 14:56           ` Eric Schulte
2010-09-03 20:53             ` Sébastien Vauban
2010-09-03 21:35               ` Eric Schulte
2010-09-05 20:49                 ` Sébastien Vauban
2010-09-07 23:03                   ` Eric Schulte
2010-09-08  8:21                     ` Sébastien Vauban
2010-09-08 17:53                       ` Eric Schulte
2010-09-08 21:40                         ` Sébastien Vauban
2010-09-08 22:46                           ` Eric Schulte
2010-09-09 12:14                           ` Sébastien Vauban
2010-09-09 15:29                             ` Eric Schulte
2010-09-09 19:59                               ` Sébastien Vauban
2010-09-09 21:15                                 ` Sébastien Vauban
2010-09-09 21:42                                   ` Dan Davison [this message]
2010-09-03  8:33           ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zkvqlhlj.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
    --cc=public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).