Sébastien Vauban <wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org> writes:
> Hi Eric, > > Sébastien Vauban wrote: >> "Eric Schulte" wrote: >>> Sébastien Vauban >>> <wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw-xmd5yjdbdmrg2nfembr...@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 _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode