From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MKY1HMIyfGOP1QAAbAwnHQ (envelope-from ) for ; Tue, 22 Nov 2022 03:24:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8HQ4HMIyfGNJywAA9RJhRA (envelope-from ) for ; Tue, 22 Nov 2022 03:24:02 +0100 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 379F43EEAE for ; Tue, 22 Nov 2022 03:24:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxIwT-0005tk-8x; Mon, 21 Nov 2022 21:23:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxIwR-0005tb-Ij for emacs-orgmode@gnu.org; Mon, 21 Nov 2022 21:23:19 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxIwP-0005BA-4M for emacs-orgmode@gnu.org; Mon, 21 Nov 2022 21:23:19 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 27090240028 for ; Tue, 22 Nov 2022 03:23:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1669083794; bh=QZhPBrbBMadWo/OxGj1FwJy6Fq2o/Rz9re8egm3cths=; h=From:To:Cc:Subject:Date:From; b=drqKql0TA8NZigGC6xQBL+KhF1SFOlFmhDg2ZhtgZmICsQakqHX6tOFPPTFs6yqBT De+hg1giAx6K3xc/rLh6VR+49yP3pwqP+dfPqAAakLrUxfhd3eUb47JgvmKbbkW5K9 MI5BGIwlGQBbi2cv9iCtukNUHIBPkPldcQTEaROng+HDkgxzoNClWuazF37xjq1cJE sSKqpZmvytF3HW2u5ERySyua23PYdPKb8D6AsgMgWTEqfT9lB43atIlkAB75uLM+ws iXNnbxAGqf7/j94Rkk5+wDQOvjTDbjfs3sYg+y5Sgvi5mtc2x0rEDICLyiCSPpXvD/ 35nysyWtaz6mQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NGSjD6ZC9z6tnx; Tue, 22 Nov 2022 03:23:12 +0100 (CET) From: Ihor Radchenko To: =?utf-8?Q?Jo=C3=A3o?= Pedro Cc: Karthik Chikmagalur , emacs-orgmode@gnu.org Subject: Re: [PATCH] LSP support in org-src buffers In-Reply-To: <87sficbccx.fsf@gmail.com> References: <87bkqmdhqz.fsf@gmail.com> <87sficbccx.fsf@gmail.com> Date: Tue, 22 Nov 2022 02:23:55 +0000 Message-ID: <87a64jd8w4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de 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, 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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669083842; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=QZhPBrbBMadWo/OxGj1FwJy6Fq2o/Rz9re8egm3cths=; b=a7JTB1g4yARb9yZkDAWbwUit3ESOZsaxosNVMMnJTtA+G9K87n6H9jahFwJZn87QKhSq+X 5tsYotJHf0KU0ZdDvNu7b6j+Mj+6X6a1jCPbuWCpgWun+5oQaaGeui8+iUS0E1wjKBi7cT L2ZgGZSGUGe4nWD/mUx93/MCaL51Q51CHSim8aK/DXEWtFDl7QlHzQbCwoIVQu+nsH9l3u 4lWhm2jUDo/7nngt/jir0Blb2xofkStp8Djl7nf+QypfCXARjOcbo3MXOS+D9B+liuem0U nTaZsM2g+yiu/hpSWbOKXXmPpUiQQ4ZFdcK/T6EHdyfWf1mePyIkm2GBZNA1iQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669083842; a=rsa-sha256; cv=none; b=ASp0MFXxWkWcZMSRkfmu8lXE1kCAB1+5PTdUMcMA9yVRwpEcVtNELR+mECYDYVh2oOo2xq HsEQ/cf1rwJCGUhdZRk9A2qNwzC/+z5gXNZBMROi5mxpMocNfBFM7laFiyfgspCjmtC/vj QKCaSFKbr5Z7ZawFSTVNvhaMcSoVCg/yWSfxUU1t3bROGn5ntEy634Kkz4bApG8Bsd6x/L W5UtQm2H1raQKQHsTDmm0dx1t4o/Dcnd++Ps0ffPFC+fUu5Pdheikdu/Uh4lLjETTRZvnG 4Ba50JrnIVBB/eAao5L9P5KEMTmWdej/QLu+9z4Oa3T84KipD+qU69fSkZnWsA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=drqKql0T; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=drqKql0T; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 379F43EEAE X-Spam-Score: -6.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: zr+9pQrWrsEA Jo=C3=A3o Pedro writes: > I think the contextual src block could be split from the LSP > functionality, since it could be used in other contexts other than > dealing with language servers. My iteration is not tied to anything in > particular and simply creates a source buffer with the whole context for > that tangled file. > > Hope this can help you in some way! > > [1] https://gist.github.com/bigodel/15599f3c1da23d1008b7d7d4ff8bff77 It looks like you have done something very close to what we are discussing. Would you be interested to create a patch against Org core instead of relying on advises? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at