GNU bug report logs - #65519
30.0.50; [FR Eglot] keymaps for useful functions

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Gerd Möllmann <gerd.moellmann@HIDDEN>; dated Fri, 25 Aug 2023 06:48:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 65519 <at> debbugs.gnu.org:


Received: (at 65519) by debbugs.gnu.org; 26 Aug 2023 05:20:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 01:20:46 2023
Received: from localhost ([127.0.0.1]:41472 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZlj3-00086n-Tb
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 01:20:46 -0400
Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:47299)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qZliy-00086U-AU
 for 65519 <at> debbugs.gnu.org; Sat, 26 Aug 2023 01:20:44 -0400
Received: by mail-ed1-x532.google.com with SMTP id
 4fb4d7f45d1cf-52a06f5f556so2215622a12.2
 for <65519 <at> debbugs.gnu.org>; Fri, 25 Aug 2023 22:20:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693027228; x=1693632028;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=qcZpSSickkrHY3472TvHqVEwSzMreJDPEzOXxPpud5w=;
 b=I+fSKYO/yFOkYL+JGy3uFtGnDnpA9NsRmR5QTcUhfGouFINcyCN0ma1MU3QZ0ehsoa
 Q7/MfdwH8MtOrV9pgcwnaY6N9w0zqK2X13gHtPRwJClkHck+neLKitgcvTv/cEq22uaA
 B+JQfmJVatBNBK+AvJAZJEXQRMz8bR/sm2s983ni5bnpHBEksfdroGx7rLxXnhahV70q
 VUMqY+wcaXltC/U5QAsqKlZCqEyOanNW4Fzt18opqwdEFkwFciRAor/xegEz0jIs4sMJ
 BXfg8FtvWtHz+Uh0mmowUjD47jnLMBiAv2Ga5pGviRyJQ7CAehvn3pdw92fgDdDE8i9H
 6tkQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693027228; x=1693632028;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=qcZpSSickkrHY3472TvHqVEwSzMreJDPEzOXxPpud5w=;
 b=VBuyuilN4/rcucV6T60geOcxcsfJ4Y9cTs/j+p3Spz0RzlqoO2kFckm4DE5UTYkGGy
 i/2tfuX8SNpUuMFpZc8O9ZUx3kK6+JvqlDw+GaJawLGrNGk03ZOyZlIIilZ91kk2citk
 ldrdfxeisKDwXOm+3cfZClWe1mnw6nDJPXPIdWf43PQWOuLubQNxwxVZkHGyHr/Q71Q6
 XBoY8ex/Nvu+ie7yfESSJ71lIdHVEIu0mIqYS1ap6QhVLguEd4n2DWIbZEj/7F7gftYf
 YU//xMKFs0BIKxdzjm7lL5UDzjYrdSNlY46ULgEZGGABWBIrNeF+H4Bu6rB3O7YroQG+
 GJHQ==
X-Gm-Message-State: AOJu0YytALRfcLmsTr0tyQaVoP1mnV0coyXw7mva01G0kxIskZbPlFBo
 rKTzZV64A8SeZg9cKRCGHIn2GwfCobs=
X-Google-Smtp-Source: AGHT+IGCAj0lAJ205rOopXXkAjQp7s3weWxTLaN9Rx40wCYO0i/TPMQgyyXMpyjggQd3rS360MOX2w==
X-Received: by 2002:a17:906:209e:b0:99d:dd43:d427 with SMTP id
 30-20020a170906209e00b0099ddd43d427mr17149455ejq.10.1693027228123; 
 Fri, 25 Aug 2023 22:20:28 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36ea3.dip0.t-ipconnect.de.
 [217.227.110.163]) by smtp.gmail.com with ESMTPSA id
 x18-20020a170906805200b0097073f1ed84sm1695176ejw.4.2023.08.25.22.20.27
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 25 Aug 2023 22:20:27 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#65519: 30.0.50; [FR Eglot] keymaps for useful functions
In-Reply-To: <87r0nrqx7w.fsf@HIDDEN> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?=
 =?utf-8?Q?a=22's?= message of "Fri, 25 Aug 2023 10:37:23 +0100")
References: <m21qfrsjot.fsf@HIDDEN> <87r0nrqx7w.fsf@HIDDEN>
Date: Sat, 26 Aug 2023 07:20:26 +0200
Message-ID: <m2v8d2e5wl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65519
Cc: 65519 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:

> Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:
>
>> There are some useful eglot functions that can currently only invoked
>> with M-x, by default.  I'm currently defining a keymap
>>
>> (define-keymap :prefix 'my-eglot-bindings
>>   "a" 'eglot-code-actions
>>   "f" 'eglot-format
>>   "h" 'eglot-inlay-hints-mode
>>   "r" 'eglot-rename)
>>
>> that I bind to a a prefix key in c-mode-common-hook.
>
> I think this is a fine way to go about it.
>
>> Feature request: Could eglot-mode do something like that?
>
> This request comes up often.  The reason Eglot does this is partly
> answered in the top bullet of eglot.el's description:
>
> ;; * Eglot's main job is to hook up the information that language
> ;;   servers offer via LSP to Emacs's UI facilities: Xref for
> ;;   definition-chasing, Flymake for diagnostics, Eldoc for at-point
> ;;   documentation, etc.  Eglot's job is generally *not* to provide
> ;;   such a UI itself, though a small number of simple
> ;;   counter-examples do exist, e.g. in the `eglot-rename' command or
> ;;   the `eglot-inlay-hints-mode' minor mode.  When a new UI is
> ;;   evidently needed, consider adding a new package to Emacs, or
> ;;   extending an existing one.
>
> So this is how Eglot wants to sell itself: to be a low-profile
> middle-man between Emacs and LSP.  It doesn't always work and people
> understandibly want Eglot to be more of a front-man.
>
> I try to resist this temptation as much as possible because that leads
> to bloat and duplicated functionality with idiosyncractic interfaces.

Ok.

> So I always push for other "standard" packages to provide the UI.  But
> as you can see in those 4 examples, I ended up being pragmatic and
> putting the command in Eglot itself.
>
> But it's not unthinkable (in fact, it's desired I think and I've looked
> into it) that 'eglot-format' simply dissolves into Emacs's longstanding
> 'indent.el' machinery.  And there's some talk of a "refactoring
> interface" for Emacs in emacs-devel (I think).  So that's where
> 'eglot-code-actions' and 'eglot-rename' should really live.
>
> In short, I think it's OK to be pragmatic.  Why not make a
> eglot-bindings.el package?

You mean making an ELPA package? Sorry, that's too much effort for me.
Maybe someone else will do it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65519; Package emacs. Full text available.

Message received at 65519 <at> debbugs.gnu.org:


Received: (at 65519) by debbugs.gnu.org; 25 Aug 2023 09:34:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 05:34:52 2023
Received: from localhost ([127.0.0.1]:39279 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZTDQ-0002hF-81
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 05:34:52 -0400
Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:42412)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <joaotavora@HIDDEN>) id 1qZTDO-0002h3-ED
 for 65519 <at> debbugs.gnu.org; Fri, 25 Aug 2023 05:34:51 -0400
Received: by mail-wr1-x42e.google.com with SMTP id
 ffacd0b85a97d-313e742a787so476143f8f.1
 for <65519 <at> debbugs.gnu.org>; Fri, 25 Aug 2023 02:34:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1692956079; x=1693560879;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=kutFQ6QW8XWJOIxG7UantxQdE4Vxy5b4k7Dbi+Sa2R8=;
 b=CnR5wdddgHLG8SrA/liGQsIRfzuoUTSqGojVPWxu1nj7cLRvJI2R2slc1C+kY4pmWy
 c9IC75PjqOXF6Ry5AdXl4Fkj2FitecGLcxrf+fd1tMKB54w1Wcu41ZdNYfOwq473It/a
 52GxXb1QULLUC5vugdbLkA+3pSZxMpfQZUrKAaStsrOamjzs1dVl79d2uhPORLrf2209
 Vdf6y3LBcoOq6BdB28zDI0G7+YjBfHMISwSVeEEIMfxXT0QZ4iM3GkVlsr4PLNI86f3T
 132KtVt9rA+3/ZskK0PHlzZFDdjlkduPX4Kdnod1JhaoPa4/WnXdj/m0Hg595FhcGORY
 SWzQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1692956079; x=1693560879;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=kutFQ6QW8XWJOIxG7UantxQdE4Vxy5b4k7Dbi+Sa2R8=;
 b=PyHEt55tt0dNXv9u8umvidXkH3VsiDUgL+ouWf+cfxnbzIxD7bvPcmLCLmGvc6hXFp
 VVOA6gv4AGh9A9FChZR5G1Y4EDWn/gqpe+txexVgRaD/y1ZhI3gmSadjyqhFuQVK/1Wi
 BnLDy5aEnK2EUmBe5J+TeZDIOFA93t4q0T2DWRn12I0EAhP2nkTeCteWXrgKbd1/R/mp
 ye0TUY36pQVeHSkMxsYvgQX5e6fwTmG6L2OppQeAzQdnl3gEIPwsMz/HVxeQv6jxSlOf
 IJo5vFTzahkK1Du7vfKZVJl+u8iJn5J15IUyY5qkI8qGQTzIO+E9e1RY9geDO8adjW0X
 10Gg==
X-Gm-Message-State: AOJu0Yx5Er2nzDh1q3HPym0xpdKsuveo/QP7r9TyQ0GJEE+SOWnl5y2W
 G+EehRth/DDf86FCpSDktfQ/v8g8XuU/7g==
X-Google-Smtp-Source: AGHT+IF5TBsjBBLWmGaJPApsNJ+s4VLq5hwBDyV7P+LZalcriadYJp1L5Wfc9jnPRHdwih1lDN2ZAw==
X-Received: by 2002:a5d:4d06:0:b0:31c:2f95:8056 with SMTP id
 z6-20020a5d4d06000000b0031c2f958056mr12925674wrt.23.1692956079393; 
 Fri, 25 Aug 2023 02:34:39 -0700 (PDT)
Received: from krug ([87.196.73.154]) by smtp.gmail.com with ESMTPSA id
 j4-20020a5d6184000000b0030ae53550f5sm1698984wru.51.2023.08.25.02.34.38
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 25 Aug 2023 02:34:38 -0700 (PDT)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#65519: 30.0.50; [FR Eglot] keymaps for useful functions
In-Reply-To: <m21qfrsjot.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Fri, 25 Aug 2023 08:46:42 +0200")
References: <m21qfrsjot.fsf@HIDDEN>
Date: Fri, 25 Aug 2023 10:37:23 +0100
Message-ID: <87r0nrqx7w.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65519
Cc: 65519 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> There are some useful eglot functions that can currently only invoked
> with M-x, by default.  I'm currently defining a keymap
>
> (define-keymap :prefix 'my-eglot-bindings
>   "a" 'eglot-code-actions
>   "f" 'eglot-format
>   "h" 'eglot-inlay-hints-mode
>   "r" 'eglot-rename)
>
> that I bind to a a prefix key in c-mode-common-hook.

I think this is a fine way to go about it.

> Feature request: Could eglot-mode do something like that?

This request comes up often.  The reason Eglot does this is partly
answered in the top bullet of eglot.el's description:

;; * Eglot's main job is to hook up the information that language
;;   servers offer via LSP to Emacs's UI facilities: Xref for
;;   definition-chasing, Flymake for diagnostics, Eldoc for at-point
;;   documentation, etc.  Eglot's job is generally *not* to provide
;;   such a UI itself, though a small number of simple
;;   counter-examples do exist, e.g. in the `eglot-rename' command or
;;   the `eglot-inlay-hints-mode' minor mode.  When a new UI is
;;   evidently needed, consider adding a new package to Emacs, or
;;   extending an existing one.

So this is how Eglot wants to sell itself: to be a low-profile
middle-man between Emacs and LSP.  It doesn't always work and people
understandibly want Eglot to be more of a front-man.

I try to resist this temptation as much as possible because that leads
to bloat and duplicated functionality with idiosyncractic interfaces.

So I always push for other "standard" packages to provide the UI.  But
as you can see in those 4 examples, I ended up being pragmatic and
putting the command in Eglot itself.

But it's not unthinkable (in fact, it's desired I think and I've looked
into it) that 'eglot-format' simply dissolves into Emacs's longstanding
'indent.el' machinery.  And there's some talk of a "refactoring
interface" for Emacs in emacs-devel (I think).  So that's where
'eglot-code-actions' and 'eglot-rename' should really live.

In short, I think it's OK to be pragmatic.  Why not make a
eglot-bindings.el package?

Jo=C3=A3o




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65519; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Aug 2023 06:47:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 02:47:18 2023
Received: from localhost ([127.0.0.1]:39076 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZQbG-0003pm-C9
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 02:47:18 -0400
Received: from lists.gnu.org ([2001:470:142::17]:49582)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qZQb9-0003p4-1s
 for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 02:47:16 -0400
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 <gerd.moellmann@HIDDEN>)
 id 1qZQal-0004Ky-Rg
 for bug-gnu-emacs@HIDDEN; Fri, 25 Aug 2023 02:46:51 -0400
Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1qZQaj-0005dl-N4
 for bug-gnu-emacs@HIDDEN; Fri, 25 Aug 2023 02:46:47 -0400
Received: by mail-ej1-x629.google.com with SMTP id
 a640c23a62f3a-99bf1f632b8so69674866b.1
 for <bug-gnu-emacs@HIDDEN>; Thu, 24 Aug 2023 23:46:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1692946004; x=1693550804;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=rirShGT9zXJt3c8nhr0vdet+mxd8ohe3UYNPD381Q0o=;
 b=LiwWXPJPcey9pZyWAxQC5B82yv9/AhhuZU5R1IgaOKek1ybBoBesXOImg8vOvYzMGv
 TudU1lku/DdDqDSbwecGvle2AqLMVDhbGniM3tkiXaDa3GUP32yvrae3rx15qRBsuToL
 vREWq/nakJ3QNcy8fCMWibDPVXXByaJ3I39rB7I+geFLmiTl47dbqVakwy98ulCGZean
 aIP+1QycYX8WnUDlnxucKc52hfOfmv4TTeTXrEhJPCsTymYs41FpwIx8Lm0JOQkmbQhw
 vVFfUe0XtR6Z3yMXlxo89AKvISVsIVsiIadve/dU3pqI8fxIQEryYJV7HLXTFgRtAkgv
 FZIw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1692946004; x=1693550804;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=rirShGT9zXJt3c8nhr0vdet+mxd8ohe3UYNPD381Q0o=;
 b=bSILl9EphACmANN5uiFLmmIG/DFTDg7LYRwVdevx/W6o+BezxDp1GXYliXNylnP2mu
 F+bs+E/yYwMZzW+3wJCuQwT64537sja6Y/0CUwna8dqsN5qw63duy3xjFSt5yr7UGKTl
 4CQn+PhX6Nl+875kHZh3NvGNsSJ47FVNwn8IOEJ/qzPC6BxnUCA6Tb0F0zyB0LDeEsji
 jukH58t+HnUboawV84bla/CFArHPnQORpCPmHwNLV2JGKqs4YAdUWulbOIJ4JaHvXvPO
 ozIPQr3RW65ltJORoq3jiS61XKJO8M0N7EpxtPTq8y7tBsplYKdFWIs9o/MMMOS4PZdl
 p0lg==
X-Gm-Message-State: AOJu0Ywiwz0hn4WCkzSz67dD7RMvOfKLm6CoaKx21n/iEksZiN2nGqdr
 QJTT15Y6Myn1ud3NTmYtgvtrn+FaK4i+Zw==
X-Google-Smtp-Source: AGHT+IEKDOPi+PrvMHGXP2CEeJoP7+iEh2mPdJJJiquJHUXCLhtHkoX7xeHYLVQMNWFql6kvudu0tQ==
X-Received: by 2002:a17:906:186:b0:9a5:81cf:57c3 with SMTP id
 6-20020a170906018600b009a581cf57c3mr177864ejb.38.1692946003727; 
 Thu, 24 Aug 2023 23:46:43 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36a34.dip0.t-ipconnect.de. [217.227.106.52])
 by smtp.gmail.com with ESMTPSA id
 l7-20020a170906938700b009a2235ed496sm606503ejx.141.2023.08.24.23.46.43
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 24 Aug 2023 23:46:43 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; [FR Eglot] keymaps for useful functions
Date: Fri, 25 Aug 2023 08:46:42 +0200
Message-ID: <m21qfrsjot.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::629;
 envelope-from=gerd.moellmann@HIDDEN; helo=mail-ej1-x629.google.com
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_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

There are some useful eglot functions that can currently only invoked
with M-x, by default.  I'm currently defining a keymap

(define-keymap :prefix 'my-eglot-bindings
  "a" 'eglot-code-actions
  "f" 'eglot-format
  "h" 'eglot-inlay-hints-mode
  "r" 'eglot-rename)

that I bind to a a prefix key in c-mode-common-hook.

Feature request: Could eglot-mode do something like that?

In GNU Emacs 30.0.50 (build 2, aarch64-apple-darwin22.6.0, NS
 appkit-2299.70 Version 13.5 (Build 22G74)) of 2023-08-24 built on
 Mini.fritz.box
Repository revision: 53c07bd04bf59f63e49af2c626714bf3fdd03ad6
Repository branch: scratch/pkg
Windowing system distributor 'Apple', version 10.3.2299
System Description:  macOS 13.5




Acknowledgement sent to Gerd Möllmann <gerd.moellmann@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#65519; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 2 Sep 2023 16:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.