[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to evaluate source code while in the edit buffer?
From: |
Pankaj Jangid |
Subject: |
Re: How to evaluate source code while in the edit buffer? |
Date: |
Fri, 04 Dec 2020 22:39:23 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) |
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.