From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 3d6PCHefyl8pSAAA0tVLHw (envelope-from ) for ; Fri, 04 Dec 2020 20:43:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QPzYA3efyl+VTgAAB5/wlQ (envelope-from ) for ; Fri, 04 Dec 2020 20:43:35 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 937749404FC for ; Fri, 4 Dec 2020 20:43:34 +0000 (UTC) Received: from localhost ([::1]:49014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klHvR-0002TR-0V for larch@yhetil.org; Fri, 04 Dec 2020 15:43:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klGJn-00022e-9a for emacs-orgmode@gnu.org; Fri, 04 Dec 2020 14:00:40 -0500 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:35941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klGJX-0008N3-Cq for emacs-orgmode@gnu.org; Fri, 04 Dec 2020 14:00:31 -0500 Received: by mail-pf1-x435.google.com with SMTP id b26so4386749pfi.3 for ; Fri, 04 Dec 2020 11:00:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ww9wwN6B4Gd8L7rm9lBblppnfY+7znALGHRFzdq4XJ8=; b=r3mY9bQELMVnwF1kldctap62b7uujnqIcgWpydQHuxUkMqWp8bthKmsesDD9nwNF2G q7eJyJvKee1sknDUSKuwJQv+w1kbU3PAQ07oEShmNH3wn6J5CdaqXjbOSIE3ZNZkDQpw vUseYYf4SbmtL0heq5uXw2Nya4M+WIOygV9KkQ6fD5l0cz0N+KjaZMpf22UDGb6v+KEu 2pkAo6JgA8+Zu+VXMbEFCdZUYlr/1N5rBntR9OCVli/I9RdTyjeevn6qw8eQNaABH0X2 X9OXOBnETvfSQlSvvnOmuV7wOC2xbLJPF9ionma/um1bb7cyU2tYmUw2a6xE8Rqs15yX sK1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ww9wwN6B4Gd8L7rm9lBblppnfY+7znALGHRFzdq4XJ8=; b=Qcm1jY01ujWThGbWBg6Jiotw/XcHHG60J2fuu5hu7G+SBqVI50FAiMwPA2jeQd63sb hFMCRL1/3nzFHTBymaRLaP6vmnlSJXYGNp61A2IGNxAIEeXHlJJhjEKqeUewPuHtXQyR 0R+1pot3JZT9DNsiU9t+s5zGgnW1ODofM8GPGTGJuzxpBQVpeXmpYNViPIkGYDgYHU5/ ud3YJZPeraJjQaOtSGAMrVVapyxuzqqHU7Ap+u4ETcet/r80XIapNKwk/0rXAIKUeMQD wKV6KBRe7RRxwm3WIsq8lVdRJ5Cxl50qUVxTXIcPg4/NqWAJzYf5vg338d1geFoO5FQC Xj3A== X-Gm-Message-State: AOAM532zIIMxBWwKZHRqI9jnC8xQTNZNzUl5JNx3n5diJ8tjygH0xem2 orFq40Z5JbOnuf6AUd50PUCcGfMORDiseS3SCr8= X-Google-Smtp-Source: ABdhPJyiFhTsjJ+CK99ang/FXFwZa55+pEwLgVXot9j3oQUsoOgg4wIDQZ+o+IptsQ50gb43XvQ0FYjyQT/oy+fIof0= X-Received: by 2002:a65:679a:: with SMTP id e26mr8516871pgr.394.1607108415524; Fri, 04 Dec 2020 11:00:15 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Mirko Vukovic Date: Fri, 4 Dec 2020 13:59:39 -0500 Message-ID: Subject: Re: How to evaluate source code while in the edit buffer? To: Mirko Vukovic , pankaj@codeisgreat.org, bugs@gnu.support Content-Type: multipart/alternative; boundary="0000000000003914a305b5a81603" Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=mirko.vukovic@gmail.com; helo=mail-pf1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=r3mY9bQE; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 937749404FC X-Spam-Score: -0.49 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: K8XLvl9bsgYd --0000000000003914a305b5a81603 Content-Type: text/plain; charset="UTF-8" On Fri, Dec 4, 2020 at 12:41 PM Pankaj Jangid wrote: > Mirko Vukovic 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 --0000000000003914a305b5a81603 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Fri, Dec 4, 2020 at 12:41 PM Panka= j Jangid <pankaj@codeisgreat.o= rg> wrote:
mirko.vukovic@gmail.com> writes:

> My current workflow is
>
>=C2=A0 =C2=A0 1. Enter edit buffer (C-c ')
>=C2=A0 =C2=A0 2. Perform edits in the window
>=C2=A0 =C2=A0 3. Exit edit mode (C-c ')
>=C2=A0 =C2=A0 4. Evaluate code (C-c C-c)
>=C2=A0 =C2=A0 5. Monitor changes to resulting png file
>
> I would prefer instead to skip step 3, and evaluate the code from with= in
> 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 sentin= el: PLANTUML Preview failed: exited abnormally with code 1
=

The plantuml.el code seems to=C2=A0
  1. start a process and then=C2=A0
  2. = pass the plantuml string to the process.
It is at step 2 that t= he error is issued.

Mirko
<= /div>
--0000000000003914a305b5a81603--