From: Mirko Vukovic <mirko.vukovic@gmail.com>
To: Mirko Vukovic <mirko.vukovic@gmail.com>,
pankaj@codeisgreat.org, bugs@gnu.support
Cc: emacs-orgmode@gnu.org
Subject: Re: How to evaluate source code while in the edit buffer?
Date: Fri, 4 Dec 2020 13:59:39 -0500 [thread overview]
Message-ID: <CAO73BAAa1pFPTq8FqnAYE+kwQh=E=_1gBGNx5XP5EtNeZqX4aw@mail.gmail.com> (raw)
In-Reply-To: <m2y2id5v0q.fsf@codeisgreat.org>
[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]
On Fri, Dec 4, 2020 at 12:41 PM Pankaj Jangid <pankaj@codeisgreat.org>
wrote:
> Mirko Vukovic <mirko.vukovic@gmail.com> writes:
>
> > 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.
> >
> > Is it possible to execute code from the edit buffer?
>
> 1. When I enter the edit mode (C-c ') it connects to plantuml server
> (that I don't like), and produces the error that you have specified:
> "Wrong type argument: stringp, nil".
>
> 2. Pressing C-c C-c in the edit buffer opens up plantuml preview but it
> gives some error: "The plugin you are using seems to generate a bad
> URL".
>
> I am on Emacs 28.x and default org 9.3.
>
So I tried C-c C-c and got the same response as Pankaj.
I traced the code to understand better and saw that plant-uml-exec-mode can
have settings of server and jar
With the jar setting (and after pointing a few variables to the jar file),
I am getting a different error:
error in process sentinel: PLANTUML Preview failed: exited abnormally with
code 1
The plantuml.el code seems to
1. start a process and then
2. pass the plantuml string to the process.
It is at step 2 that the error is issued.
Mirko
[-- Attachment #2: Type: text/html, Size: 2678 bytes --]
next prev parent reply other threads:[~2020-12-04 20:43 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
2020-12-04 17:41 ` Pankaj Jangid
2020-12-04 18:59 ` Mirko Vukovic [this message]
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='CAO73BAAa1pFPTq8FqnAYE+kwQh=E=_1gBGNx5XP5EtNeZqX4aw@mail.gmail.com' \
--to=mirko.vukovic@gmail.com \
--cc=bugs@gnu.support \
--cc=emacs-orgmode@gnu.org \
--cc=pankaj@codeisgreat.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).