[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Explain a bit more on how to configure language server in Eglot's ma
From: |
Yuan Fu |
Subject: |
Re: Explain a bit more on how to configure language server in Eglot's manual |
Date: |
Thu, 9 Mar 2023 22:26:02 -0800 |
> On Mar 9, 2023, at 9:20 AM, Juri Linkov <juri@linkov.net> wrote:
>
>>> Orthogonal to Augusto’s function, but I think something like this
>>> would be nice: a function that pops up a buffer and enters recursive
>>> edit for arbitrary input and edit, and when you hit C-c C-c, it
>>> returns the buffer content, kind of like Magit’s commit buffer. Plus
>>> buffer content validator (eg, validate JSON), and arbitrary major
>>> modes in the buffer, etc.
>>
>> This sounds like a generally useful thing for Emacs. There should be a
>> version without recursive edit which calls a callback function when
>> quitting.
>
> 'read-string-from-buffer' was intended to do this by relying on
> 'string-edit'. You could add a new function e.g. named
> 'read-expression-from-buffer' that does the same as
> 'read--expression' but using a buffer instead of the minibuffer.
Of course Emacs has one built-in :-) I’ll see if I can make some improvement to
the read-string-from-buffer functions. In particular, I think arbitrary setup
function and validator would be useful additions.
Yuan
- Re: [SPAM UNSURE] Explain a bit more on how to configure language server in Eglot's manual, (continued)
- Re: [SPAM UNSURE] Explain a bit more on how to configure language server in Eglot's manual, João Távora, 2023/03/07
- Re: Explain a bit more on how to configure language server in Eglot's manual, Augusto Stoffel, 2023/03/08
- Re: Explain a bit more on how to configure language server in Eglot's manual, João Távora, 2023/03/08
- Re: Explain a bit more on how to configure language server in Eglot's manual, Augusto Stoffel, 2023/03/08
- Re: Explain a bit more on how to configure language server in Eglot's manual, João Távora, 2023/03/08
- Re: Explain a bit more on how to configure language server in Eglot's manual, Augusto Stoffel, 2023/03/08
- Re: Explain a bit more on how to configure language server in Eglot's manual, João Távora, 2023/03/09
- Re: Explain a bit more on how to configure language server in Eglot's manual, Yuan Fu, 2023/03/08
- Re: Explain a bit more on how to configure language server in Eglot's manual, Augusto Stoffel, 2023/03/09
- Re: Explain a bit more on how to configure language server in Eglot's manual, Juri Linkov, 2023/03/09
- Re: Explain a bit more on how to configure language server in Eglot's manual,
Yuan Fu <=
- Re: Explain a bit more on how to configure language server in Eglot's manual, João Távora, 2023/03/10
- Re: Explain a bit more on how to configure language server in Eglot's manual, João Távora, 2023/03/09
- Re: Explain a bit more on how to configure language server in Eglot's manual, Juri Linkov, 2023/03/09
- Re: Explain a bit more on how to configure language server in Eglot's manual, Augusto Stoffel, 2023/03/09
- Re: Explain a bit more on how to configure language server in Eglot's manual', Augusto Stoffel, 2023/03/09
- Re: Explain a bit more on how to configure language server in Eglot's manual, Yuri Khan, 2023/03/08
- Re: Explain a bit more on how to configure language server in Eglot's manual, João Távora, 2023/03/08
- Re: Explain a bit more on how to configure language server in Eglot's manual, Yuri Khan, 2023/03/08
- Re: Explain a bit more on how to configure language server in Eglot's manual, João Távora, 2023/03/08
- Re: [SPAM UNSURE] Explain a bit more on how to configure language server in Eglot's manual, João Távora, 2023/03/09