bug#80623: Eglot v1.21 patch to handle untitled schema in window/showDocument handler

João Távora <[email protected]> Mon, 03 Aug 2026 17:14:01 +0100
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
Felician Nemeth <[email protected]> writes:

> I was about to suggest something like the following for the simplest
> "visit" case:
>
> (cl-defgeneric eglot-find-uri (server scheme uri)
>   "Edit the document given by URI.
> Similary to `find-file' switch to a buffer visiting the document given
> by URI, creating one if none already exists."
> ...)
>
> But then I read the comment in eglot-uri-to-path and realized that Eglot
> already supported extensibility with variable file-name-handler-alist.
> I'm guessing the "untitled" scheme can be supported using this
> variable.

That would be nice indeed.  Can you develop that idea into a patch or
prototype-patch?

> At any rate, if Eglot can find the buffer of an URI, then it can install
> its post-command-hooks in that buffer.  And

What do you mean here?  If you show this in a patch, maybe I can follow.

> I think it is okay to fail
> at "create", "rename", and "delete" for non-file schemes until someone
> complains.

Yes, agree.

Jo=C3=A3o