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 oJBMD7Knyl8BCQAA0tVLHw (envelope-from ) for ; Fri, 04 Dec 2020 21:18:42 +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 iG4XC7Knyl9tZwAAB5/wlQ (envelope-from ) for ; Fri, 04 Dec 2020 21:18:42 +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 C076B9403EE for ; Fri, 4 Dec 2020 21:18:41 +0000 (UTC) Received: from localhost ([::1]:55454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klITQ-00057t-6v for larch@yhetil.org; Fri, 04 Dec 2020 16:18:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klISE-00054h-0N for emacs-orgmode@gnu.org; Fri, 04 Dec 2020 16:17:26 -0500 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]:38189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klISC-000122-8i for emacs-orgmode@gnu.org; Fri, 04 Dec 2020 16:17:25 -0500 Received: by mail-ot1-x332.google.com with SMTP id b62so6611434otc.5 for ; Fri, 04 Dec 2020 13:17:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=f0vU+u6bvXmWO6Ms0CWt3uiUuk58vtf0YV4LpuEmKAk=; b=F8ijktr0Pd2PAFl9VFxmSJjCA1ZItOri9EPlGpZrfD9aqwxpCyZmkqnGr1VuaurE/q B4FqLAyLnR8FczG3EJQ9Zv8QtVRh/dgknX+9SRxnwsaewy5oC+fGzVjTfRayjZ7vUMc0 FxxgMvXzu5urfO3efo6y2+o0zIE7ltZdOL5vBMfBJUPHTOoVW/uMxUp1yRYCn/6ka0Zq E9ABu3C6h5+1i0PMZ9Z9PKEJy7veUB5/M36a9MnDB8XcNCaHvfB9/hvxS0dOSaN7sUnW k9wqsqcL9Z4FdLgifv+IvwOWSzfok4DdC+FUUtwvwKXEQaRanwq5Kiy8MPnPad5Zz246 RI3A== 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:reply-to :from:date:message-id:subject:to; bh=f0vU+u6bvXmWO6Ms0CWt3uiUuk58vtf0YV4LpuEmKAk=; b=kEVc6+LYiODfJeT9Ma97DNuwoxgzNBoLLKqRVisNLMZ1e9tUvlvpifQwaRGDcS3qYx Pu58h4eXx8bN9VQcDY/JXSgKv8V+e+JgE8xzofH5tuAy+/5tg44/LofZtKThH6V2gOhW cJ3kjDy8I7olOsVjUhTuqBMr/aUpzeEBO6ROPUD2pTYHT0KD3lcGfMUbDUj3ZAmHI69L GUE5w+lwvZ6JDYN/YWH7Z1Z2/KRB9usNEgQz+0Pe0RurfOElM9PYqwRViN/IPp/H9m4f C8W76lPxu/JH1mos/XnWQySRHhFm5EankhZAaPle+uQoEKtJ5wAdlTN+hohLQKwunjk9 oXZA== X-Gm-Message-State: AOAM531HRa7wMOjHaqxxqwiIOHKZMN5rkpv1tAIdrqhWlab/jEZcC1fs tLyqwvVYYcr+0qw0BKrVBXnbHBLGlHtCqKVFuFM= X-Google-Smtp-Source: ABdhPJyRudt9nBsCTiDlpi1Tgu+7zqDnmKceZEqQsI8yAUhd3j9XFh9FIIm3X4GK7bTbSqlQUnSn/ULmjHv604HOBi0= X-Received: by 2002:a9d:67d8:: with SMTP id c24mr5024437otn.356.1607116642666; Fri, 04 Dec 2020 13:17:22 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: George Mauer Date: Fri, 4 Dec 2020 15:17:11 -0600 Message-ID: Subject: Re: How to evaluate source code while in the edit buffer? To: Mirko Vukovic , emacs-orgmode Content-Type: multipart/alternative; boundary="000000000000994fde05b5aa00c3" Received-SPF: pass client-ip=2607:f8b0:4864:20::332; envelope-from=gmauer@gmail.com; helo=mail-ot1-x332.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: , Reply-To: gmauer@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=F8ijktr0; 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: C076B9403EE X-Spam-Score: -1.99 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: BRAO5Yt23wdn --000000000000994fde05b5aa00c3 Content-Type: text/plain; charset="UTF-8" +1 to this question. I have the exact same annoyance (would also be nice to do some threading so it doesn't lock up emacs for a few seconds) On Fri, Dec 4, 2020 at 2:28 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. > > --000000000000994fde05b5aa00c3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
+1 to this question. I have the exact same annoyance (woul= d also be nice to do some threading so it doesn't lock up emacs for a f= ew seconds)

On Fri, Dec 4, 2020 at 2:28 PM Pankaj Jangid <pankaj@codeisgreat.org> wrote:
Mirko Vukovic <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.

--000000000000994fde05b5aa00c3--