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 nhc9GPpD3l78SgAA0tVLHw (envelope-from ) for ; Mon, 08 Jun 2020 13:58:18 +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 iBexE/pD3l5lWgAAB5/wlQ (envelope-from ) for ; Mon, 08 Jun 2020 13:58:18 +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 C7623940982 for ; Mon, 8 Jun 2020 13:58:17 +0000 (UTC) Received: from localhost ([::1]:53578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiII3-00069y-SH for larch@yhetil.org; Mon, 08 Jun 2020 09:58:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiIGb-0004rc-RQ for emacs-orgmode@gnu.org; Mon, 08 Jun 2020 09:56:45 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:39536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jiIGa-0000p5-Uj for emacs-orgmode@gnu.org; Mon, 08 Jun 2020 09:56:45 -0400 Received: by mail-pg1-x530.google.com with SMTP id w20so8772970pga.6 for ; Mon, 08 Jun 2020 06:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=tKKybGqn2+uGku1MAIih3jFGlJy3k47rAK60rOwXDmg=; b=WHYQ7iyl19YZZRpxHN9Ctcul7ntuhRcCo+ATYv8R3EPVTxO9pmy4BQxoBmYjGSe2xh dLK7KgJ1MU1GCbMa2cZCgOgoZQJQc8pVYDCnwWthVsJRu0p7wftUkyl/Z66uuNn7/A/X DeujG2KmfTYyqI/NY2nxf+qb2pTPH+efd/EKDhIYysJuPNe1DkC1MhCtJcLUIAb6xZJv kogZJ6HZHC5oorNyJbAckllj3fPeQ7HHFUGPNo3SWKNvWX1tKuKYyk1vx79imCzzyizo FsdMQpb7fviVPy0RDzLWwIDHWwXiqVVas2aGY6LNB3hl9YXK4pyRcZRZkkyYaJRhK0BE Xt4g== 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:date:references:user-agent :in-reply-to:message-id:mime-version; bh=tKKybGqn2+uGku1MAIih3jFGlJy3k47rAK60rOwXDmg=; b=KezRd92fC822mV+VG5VVApWnQsqWR939HV3q8Q31gEN3iQSfx5dDXYs/v9yvfFWMgd hyVG3fOiLAwQMdn1wzV8/limD2K0kog+GHdJ0VmXG2XJkI0FDdnROrGl85fYGnwKem1s a3Nf6H/5gi4C5C/tyC32525i8m9TibzA7l6qvymvwiN6CAkGRrUNMk4MGt6YOacG4y8t 12ch/qEA1pOzYRzRyzAZb/vUPko6jGnTCYkqJ7Fycmap0Kn1Lz5FU0EyRcqaeroLEgvJ iXsY/gy8/3W8J1D00G4edgBCk1ezKabzwWTN7F9aMFeEu5YJ1t+jn8ItbbeFrTAxm/qX 5P1w== X-Gm-Message-State: AOAM530OGOQ43TM7oZG4WiuA3jJfWAbHkZHFeFSHtP7KMBaHfo+pn/k/ XSERzS09v6xoMmfhfLweXT4= X-Google-Smtp-Source: ABdhPJzBCM+9ke+N/IouPukKZS74gqTxRrk6XuTVaBoeqMAeg1AwD94Fm2Lqb9KOIYAQV0txRA2mMQ== X-Received: by 2002:aa7:9093:: with SMTP id i19mr20922460pfa.152.1591624603397; Mon, 08 Jun 2020 06:56:43 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id d189sm7407175pfc.51.2020.06.08.06.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jun 2020 06:56:42 -0700 (PDT) From: TEC To: Ivan Yonchovski Subject: Re: [Announcement] lsp-mode integration with org-mode Date: Mon, 08 Jun 2020 21:53:47 +0800 References: <87sgf6hee0.fsf@gmail.com> <874krlkg69.fsf@gmail.com> <875zc1iyll.fsf@gmail.com> User-agent: mu4e 1.4.6; emacs 26.3 In-reply-to: <875zc1iyll.fsf@gmail.com> Message-ID: <873675k6eg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x530.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: emacs-orgmode@gnu.org 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=WHYQ7iyl; 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.79 X-TUID: tRY5LBtEXhze --=-=-= Content-Type: text/plain; format=flowed Ivan Yonchovski writes: >> That sounds great! Just to check, in the demo you have :tangle >> "demo2.cpp", this would also work with :tangle yes, yes? > > lsp-mode will need actual file path to work. I am not sure what > "yes" will mean in this context. This is fairly simple, it means inherit the file name, and apply the relevant extension. For example a python block in demo.org with :tangle yes exports to demo.py. >> One question --- does this also work in the minibuffers? At the >> moment I have a hack in my config >> (https://tecosaur.github.io/emacs-config/config.html#lsp-support-src) >> to provide this functionality, but it doesn't use the context >> of the entire file, which would be a nice improvement. > > Can you give me an example of that usecase? Generally, we have > introduced "virtual-buffer" abstraction so technically we could > implement running language server over anything. E. g. one could > select random text block and run a language server over it. This is what pops up when you call org-edit-special (C-c '). It's nice because it changes the major mode, and has better font-lock performance. Hopefully that helps, Timothy. --=-=-= Content-Type: multipart/related; boundary="==-=-=" --==-=-= Content-Type: text/html

Ivan Yonchovski <yyoncho@gmail.com> writes:

>> That sounds great! Just to check, in the demo you have :tangle “demo2.cpp”,
>> this would also work with :tangle yes, yes?
>
> lsp-mode will need actual file path to work. I am not sure what “yes”
> will mean in this context.

This is fairly simple, it means inherit the file name, and apply the relevant
extension. For example a python block in demo.org with :tangle yes exports to
demo.py.
>> One question — does this also work in the minibuffers? At the moment I have a
>> hack in my config
>> (https://tecosaur.github.io/emacs-config/config.html#lsp-support-src) to provide
>> this functionality, but it doesn’t use the context of the entire file, which
>> would be a nice improvement.
>
> Can you give me an example of that usecase? Generally, we have
> introduced “virtual-buffer” abstraction so technically we could
> implement running language server over anything. E. g. one could select
> random text block and run a language server over it.

This is what pops up when you call org-edit-special (C-c ’). It’s nice because
it changes the major mode, and has better font-lock performance.

Hopefully that helps,

Timothy.

--==-=-=-- --=-=-=--