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 4MzpNhycyl9JMAAA0tVLHw (envelope-from ) for ; Fri, 04 Dec 2020 20:29:16 +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 GFGlMhycyl85RAAAB5/wlQ (envelope-from ) for ; Fri, 04 Dec 2020 20:29:16 +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 CA028940484 for ; Fri, 4 Dec 2020 20:29:11 +0000 (UTC) Received: from localhost ([::1]:45444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klHhW-0005Yb-PL for larch@yhetil.org; Fri, 04 Dec 2020 15:29:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klF5T-0002un-F2 for emacs-orgmode@gnu.org; Fri, 04 Dec 2020 12:41:45 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:36701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klF5L-0004W8-F2 for emacs-orgmode@gnu.org; Fri, 04 Dec 2020 12:41:38 -0500 Received: by mail-pj1-x102c.google.com with SMTP id l23so3569799pjg.1 for ; Fri, 04 Dec 2020 09:41:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:organization:references:mail-followup-to:date :in-reply-to:message-id:user-agent:mime-version; bh=HpSDt1vFgQkFNu1+LE+X0F5amSpUGnepQGtN9mYUIyY=; b=HRbE3cFHfJ3PxlyC8I2UyIgUjeDEqbDsZmeaZIrWSqImAYS4Gz5RTmbLPTrDoLf3Ig 1fRlEIR01ewlHJRu6tLvNN8k2QUQlcUpKAUUkYz+brnbVg5ILHX7p/a8ff6g54SHrWsO ZaQamLj1JYGeEv2ZPqC3kmpklvD0EevxkNdphPN3QcirNvzgdx/efAEwzwZndDznhoA4 V8Awx8Lq9+FF4gjWCpvRRjKBQRYzyycqiQcaq85ysc+o5JaEuzPfhxpJfqkbWzJqlrB1 O2KGwjQtTU0+ps5a1knvIucgkd2scFr3Ieh6QPZ30mkNXz3foTGlCSHhFGeGfNIg3bWR AZRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-followup-to:date:in-reply-to:message-id:user-agent :mime-version; bh=HpSDt1vFgQkFNu1+LE+X0F5amSpUGnepQGtN9mYUIyY=; b=p0nfFhrjPfPitjGMgapLGe87goLqa30hfgpHB58z8UcigF8H8+UvG9Do3kb30pYIE2 Aw5+rA3b4DBlWAGsyH2oLLmxeVX/p1AX1bBayYQ8HsumWmQkXnk2Qd3+NID94LfYI5vE w4jHqGmt058NR+jKj8Y10F7q3IzNOEs/JpvRf1sixhdu6j+/0VaBwSvViMRchxlazqqQ PEDtwHnAE0fzaEPuF32qeU499XhuBlfkD+sigAvY6Wzr+29HsBjv4dQLWSKxTiLHfzDm KQ4GTr5I4mjm5zUQEuW/wcHWVvZ4cwwrWaXF7eHMXrC8UgQGSLtwHEQyZEEED+GENB73 DGDg== X-Gm-Message-State: AOAM5327BzfCmGjQz/wOxuhjKCAqVitDNmdocHjDue7JYtTWOhR69RdM 8guEbseTNUgDiX7J6jk5Rp6yg9B3PL9MPg== X-Google-Smtp-Source: ABdhPJwDu/swh4YD4Gu1DBT/0OPYULm6BErJCZt/b18W0QT7RYonMZxx9WZ/JY/N9BGa9MS/3MP4VA== X-Received: by 2002:a17:90a:608:: with SMTP id j8mr4956967pjj.44.1607103674049; Fri, 04 Dec 2020 09:41:14 -0800 (PST) Received: from mb2.local ([2405:201:5c06:70bc:34af:2222:ac1b:ebe8]) by smtp.gmail.com with ESMTPSA id gm2sm2776604pjb.35.2020.12.04.09.41.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2020 09:41:13 -0800 (PST) From: Pankaj Jangid To: Mirko Vukovic Subject: Re: How to evaluate source code while in the edit buffer? Organization: Code Is Great Foundation References: Mail-Followup-To: Mirko Vukovic , emacs-orgmode@gnu.org Date: Fri, 04 Dec 2020 23:11:09 +0530 In-Reply-To: (Mirko Vukovic's message of "Fri, 4 Dec 2020 08:58:11 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=2607:f8b0:4864:20::102c; envelope-from=pankaj@codeisgreat.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no 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: -1.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=codeisgreat-org.20150623.gappssmtp.com header.s=20150623 header.b=HRbE3cFH; dmarc=none; 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: CA028940484 X-Spam-Score: -1.49 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: FnpXRmvJ2EGa 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.