From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cC68IsD0yV6yYgAA0tVLHw (envelope-from ) for ; Sun, 24 May 2020 04:14:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OGZrHsD0yV50cwAAbx9fmQ (envelope-from ) for ; Sun, 24 May 2020 04:14:56 +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 087009402A0 for ; Sun, 24 May 2020 04:14:54 +0000 (UTC) Received: from localhost ([::1]:48578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jci2G-0007e5-BW for larch@yhetil.org; Sun, 24 May 2020 00:14:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jci1w-0007dj-Di for emacs-orgmode@gnu.org; Sun, 24 May 2020 00:14:32 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:40964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jci1v-0004WA-Ii for emacs-orgmode@gnu.org; Sun, 24 May 2020 00:14:32 -0400 Received: by mail-pf1-x433.google.com with SMTP id 23so7166046pfy.8 for ; Sat, 23 May 2020 21:14:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:in-reply-to:message-id:date :mime-version:content-transfer-encoding; bh=IxYpkc2qXSfrsBWpv72TRoCqe/SR5HwpPe0w8HunWAg=; b=M9+E1E7d8aX8CDGmcCsucYrV0vIjbuXjDSAhDlOpvvXbvQ+Io00uvyE1COEzLK5vdE Nj/hzVPx5uvSwD0haQatq4Jm8SIpMx7RiSwvQ6+/GvoS4cNzvAJKlveGJ+uof+Iht0Qn dAGkBtqNhNzpWo4fb1H6PCz0kQXl9OfksoIvJ7P7IL+BCdB4MU6hb/PGMy/yahb+nryW 72DPwW0FU3SMr+SgHXr4NN+duEEV7HuY08PkHCcX81EWVQKgT8NsHL30xFGHBHMBRovl auGnjwyLlOvJHmSCL2gePDsLyErcKqQe9DZKI3gBsxAeJRbRwz54xsykth/UdBLAx2eV uuQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:message-id:date:mime-version:content-transfer-encoding; bh=IxYpkc2qXSfrsBWpv72TRoCqe/SR5HwpPe0w8HunWAg=; b=hBvTczjn3AneF0jmiGf0dX/1nqpEnVirXHQnDz5w970tN9k1iUStySImH/yvUMeVo5 WevoufFJxJbjbjG7sA1yIUwWJjVdTOwWBdQhyShtxx7cgXkfKFxluUjyMfGXSzeVc75X 2hBIWkehwuAgEb6D96biPdHT6iIk0s5S7tmR8r5scpVLzutzb711NvGxA1VHVdEQVw2y 8aeDH8VYAA0bt9HbjvhiL/caUskKNqTd16n36V2ari1R5GA3ozu3OC5jWEvnSYe6yOj6 xROquqsXxhEv52E+x9BK+7oYOe0ftMi3djn4rZwdwLD7OVmU7Vy84pLmZJPNJekbxrfR DliA== X-Gm-Message-State: AOAM530Dn7fBiHbJ/WyF99wDWnP6wunvVyQmQtQSNbi9ZF8rTiyo4jk9 2tBxETmU8xA9Uc7NDEl3yPa4EkmX X-Google-Smtp-Source: ABdhPJxkyA9lhatg3fCnhV+5xu8Cer/OF77IbiDdzB6SJ/ZghT0+ZrTqUfzSeAV38Jinp0EGbiGKFw== X-Received: by 2002:a63:5644:: with SMTP id g4mr2106758pgm.381.1590293669480; Sat, 23 May 2020 21:14:29 -0700 (PDT) Received: from tim-desktop (203-173-31-71.dyn.iinet.net.au. [203.173.31.71]) by smtp.gmail.com with ESMTPSA id 2sm191075pfd.163.2020.05.23.21.14.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2020 21:14:28 -0700 (PDT) References: <874ks65idf.fsf@gmail.com> User-agent: mu4e 1.4.6; emacs 27.0.91 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Improving Org Mode for VSCode - Thinking Aloud In-reply-to: <874ks65idf.fsf@gmail.com> Message-ID: <878shi55r3.fsf@gmail.com> Date: Sun, 24 May 2020 14:14:24 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x433.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=M9+E1E7d; 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-Spam-Score: -0.21 X-TUID: jQQZ2YoxBCfR stardiviner writes: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > > George Mauer writes: > >> With VSCode becoming ever-popular it seems like there might be some value >> in getting org mode working there simply as a way of promoting org as an >> excellent literate coding notebook. >> >> VSCode already has a halfway decent org-mode but it doesn=E2=80=99t supp= ort >> anything from Babel. I=E2=80=99m trying to think of relatively easy ways= of adding >> that ability. Here=E2=80=99s a thought: Most of babel that technically w= orks >> against the document itself, it doesn=E2=80=99t really need much document >> integration with the editor. So could you get it working in vscode so lo= ng >> as someone has a properly configured version of emacs installed locally? >> =E2=80=9CEvaluate/Export/etc=E2=80=9D would just write the document, the= n use emacs to run >> the appropriate commands on it and refresh the document view. > > Use Emacs as backend for Org Mode Babel to run in VS Code, This sound a b= it of > overthinking. Why not just use Org Mode in Emacs directly? As my personal > opinion, Org Mode is just a document format (of course it's deeply integr= ated > with Emacs!!) But VS Code can do it in similar way. I really suggest you = think > it clearly. And help VS Code team archive this. > I think the main flaw in using Emacs as the backend is that a correctly configured emacs to support or the org features, especially wrt babel and document export, is a non-trivial task. It is not as simple as installing Emacs and a couple of setq lines in an init file. Org relies heavily on a lot of external tools, especially TeX/LaTeX. Anyone who is going to put in the effort to configure Emacs is unlikely to want to also configure VSCode and vice versa, plus you would need to run both VSCode and at least the emacs server/daemon to make this work. Having said that, it could be an OK proof of concept to perhaps spark interest in developing a VSCode version which has the babel/export features (I'm assuming the existing implementation already handles the basic org markup syntax etc). In the long term, a VSCode version of org would probably benefit more if it uses other VSCode plugins for babel and export. Starting with the languages which have REPLs would likely be a good first step and I suspect there is already a LaTeX plugin. It will likely be necessary to work with the various authors of these other VSCode plugins as you will probably need them to add additional API hooks to use.=20 Probably the best assistance org-mode can provide would be definitive and current documentation on the markup syntax and APIs for babel and export. A tough task given the scope, but things are probably pretty stable in this area now (though I'm not sure about babel and handling of returned values and errors etc).=20 --=20 Tim Cross