emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Pankaj Jangid <pankaj@codeisgreat.org>
To: Jean Louis <bugs@gnu.support>
Cc: emacs-orgmode@gnu.org, Mirko Vukovic <mirko.vukovic@gmail.com>
Subject: Re: How to evaluate source code while in the edit buffer?
Date: Fri, 04 Dec 2020 22:39:23 +0530	[thread overview]
Message-ID: <m2im9h33cs.fsf@codeisgreat.org> (raw)
In-Reply-To: <X8pHM/afyud/OUyC@protected.rcdrun.com> (Jean Louis's message of "Fri, 4 Dec 2020 17:26:59 +0300")

Jean Louis <bugs@gnu.support> writes:

> * Mirko Vukovic <mirko.vukovic@gmail.com> [2020-12-04 16:59]:
>> Creating/editing UML diagrams using plantuml mode is an iterative process.
>> My current workflow is
>> 
>>    1. Enter edit buffer (C-c ')
>>    2. Perform edits in the window
>>    3. Exit edit mode (C-c ')
>>    4. Evaluate code (C-c C-c)
>>    5. Monitor changes to resulting png file
>> 
>> I would prefer instead to skip step 3, and evaluate the code from within
>> the edit mode. I tried evaluating org-babel-execute-src-block from the edit
>> buffer, but that resulted in an error:
>> helm-M-x-execute-command: Wrong type argument: consp, nil
>
> Pozdrav Mirko,
>
> If you are editing source block in Org file, why not just do C-c C-c
> right there in the block to evaluate it?

Because major-mode features for the language are not available in org-mode.


  reply	other threads:[~2020-12-04 19:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04 13:58 How to evaluate source code while in the edit buffer? Mirko Vukovic
2020-12-04 14:26 ` Jean Louis
2020-12-04 17:09   ` Pankaj Jangid [this message]
2020-12-04 17:41 ` Pankaj Jangid
2020-12-04 18:59   ` Mirko Vukovic
2020-12-04 19:11     ` Jean Louis
2020-12-05  2:10       ` Pankaj Jangid
2020-12-04 21:17   ` George Mauer
2020-12-04 21:37     ` Tom Gillespie

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=m2im9h33cs.fsf@codeisgreat.org \
    --to=pankaj@codeisgreat.org \
    --cc=bugs@gnu.support \
    --cc=emacs-orgmode@gnu.org \
    --cc=mirko.vukovic@gmail.com \
    /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).