From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#62157: More control over the mouse behaviour in eglot Date: Mon, 13 Mar 2023 17:36:58 +0100 Message-ID: <87h6uovc9h.fsf@gmail.com> References: <87lek0vdzd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12050"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62157@debbugs.gnu.org, Pedro Andres Aranda Gutierrez To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 13 17:38:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pblBe-00030u-QY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Mar 2023 17:38:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pblBU-0002dT-Eu; Mon, 13 Mar 2023 12:38:04 -0400 Original-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 1pblBT-0002dL-4I for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 12:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pblBS-0006DT-Mz for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 12:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pblBS-0004dM-3f for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 12:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Mar 2023 16:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62157 X-GNU-PR-Package: emacs Original-Received: via spool by 62157-submit@debbugs.gnu.org id=B62157.167872542717746 (code B ref 62157); Mon, 13 Mar 2023 16:38:02 +0000 Original-Received: (at 62157) by debbugs.gnu.org; 13 Mar 2023 16:37:07 +0000 Original-Received: from localhost ([127.0.0.1]:35517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pblAZ-0004cA-9g for submit@debbugs.gnu.org; Mon, 13 Mar 2023 12:37:07 -0400 Original-Received: from mail-wm1-f43.google.com ([209.85.128.43]:35534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pblAX-0004bg-Ed for 62157@debbugs.gnu.org; Mon, 13 Mar 2023 12:37:06 -0400 Original-Received: by mail-wm1-f43.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso11392305wmb.0 for <62157@debbugs.gnu.org>; Mon, 13 Mar 2023 09:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678725419; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=eDJ0NUVnCbUCyT4leGF57M/W6BtUK/B0+PJhHHyn99Q=; b=ikdnXMba0hDL81fJibcbKqjHgN8J302S3sMT4zHmBmIZPAdE0PmLkPxtAv7ckwD5vZ zOjTYUbruGX+P7NWkYmaRQmkiX6HVCd1+FlLwg5NHudTfA2c37a95opdDDUlduo6RU09 VLAOeFvToCALiVaKDqjsZB/Rt2NS2WVnyh8uehwGSc9ZTmUyKJpBPB49mt+Sls4AAAp4 axcHWWwenhK3oX4ifTaAGrzz5H4EoRCd2Z3V/pTNI7kvKhA3CXH5myahstFPUGIPM5II ucrs69YrrDtjaP1cFsjTERJq7srzoJLhoUGRM080OOoa7UGhiXwK6//Fs04nOXugWyQI afFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678725419; h=content-transfer-encoding:mime-version: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=eDJ0NUVnCbUCyT4leGF57M/W6BtUK/B0+PJhHHyn99Q=; b=iXrGIHJ1zu/QndwO0BFzVNoGIDYFiTvG3/T0OJVCvi+QumIUwofNVZaI8MEg8jNPM+ kuS+SCFgoOdWCt8TPBWsPuVul+IAMjaMdjrJFPce8LUMzLSOdNuPTqpRbbrQVJFRXlY+ GPLtA1Vc+h8SsiAFy2ru9fZuCYz/AcZJOm3dVWsihBrJ0a82hkY+/0FTLnOHtpcAmLlD uF0R8l/aHcY4P6eKmSYCBFKDZsh/m/zEc38wwh0ztzKkZrPomHLGM/zMMQxy4/AVJ3ni 28b3iObSKGpuRTKFiyNGIJnW1ebe/bL1OUGTYH1uLjAAP8fyhoI9MCA2YFnEcQjnbv1j jIoQ== X-Gm-Message-State: AO0yUKVEkeB6CyVoRPor1Cvnihfq0rYF7aYhwr7ZKg6GkAlvykRR9qZ7 MzMA/qepoXJQl+F1TbjUaGk= X-Google-Smtp-Source: AK7set/DheLdQWuYcjp8Uczv2sOjI09pFXYZJqHTrDMK4fFEABdCHph0RW5EJOzpFbOW8Weq7h3EcA== X-Received: by 2002:a1c:f213:0:b0:3ea:d611:f8 with SMTP id s19-20020a1cf213000000b003ead61100f8mr12351209wmc.38.1678725419156; Mon, 13 Mar 2023 09:36:59 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm262527wms.29.2023.03.13.09.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 09:36:58 -0700 (PDT) In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Mon, 13 Mar 2023 16:09:59 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257914 Archived-At: >>>>> On Mon, 13 Mar 2023 16:09:59 +0000, Jo=C3=A3o T=C3=A1vora said: >> In any case, this doesn=CA=BCt make the binding easily changable, yo= u have >> to manually unset/set the `eglot-code-actions-at-mouse' binding. My >> attempt to fix this descended into a circular dependency spiral >> between the keymap and the key defcustom, so I=CA=BCm hoping you kno= w a >> good way to do it :-) Jo=C3=A3o> A key defcustom isn't needed IMO. You may even want multiple Jo=C3=A3o> bindings there. 99% percent of users will like the default Jo=C3=A3o> bindings, the others can OK. We can always add it if people ask for it. Jo=C3=A3o> (define-key eglot-diagnostics-map [mouse-2] nil) Jo=C3=A3o> or Jo=C3=A3o> (unbind-key [mouse-1] eglot-diagnostics-map) Jo=C3=A3o> which I don't know if exists in older Emacsen. I think it=CA=BCs an emacs-29 thing. Although it does look kind of redundant with `keymap-unset' (which is also new in emacs-29) :-) Robert --=20