From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Xref/Eglot feature requests and a question Date: Thu, 24 Aug 2023 15:33:23 +0200 Message-ID: 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="38045"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 24 15:34:14 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qZATV-0009ge-P5 for ged-emacs-devel@m.gmane-mx.org; Thu, 24 Aug 2023 15:34:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZASo-0002xQ-VS; Thu, 24 Aug 2023 09:33:30 -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 1qZASn-0002xD-RF for emacs-devel@gnu.org; Thu, 24 Aug 2023 09:33:29 -0400 Original-Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZASl-0005Rb-Fx for emacs-devel@gnu.org; Thu, 24 Aug 2023 09:33:29 -0400 Original-Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-52557cc5e7bso8661693a12.0 for ; Thu, 24 Aug 2023 06:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692884005; x=1693488805; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=0Gn9NldIU6rklDIArh6jUXLlH/f94ysJeJTMY1rLmqU=; b=iSeGzPjs1hhPswkiqwZDFU8XcI+Z5cR4ZqzS0htHyWy+QNmeFtPNjCWP6dZH35BGVh Hj+8JEbVHCF3XYGNPGLX2KjCVdAPA1y6+pEIQR5GDVr6eE9k+MAOy2KbYNc5Hl50ezo5 FZuAuYBiQ7mELZ7Oo54TbrnTpml0oe/ZBVdUQ8D18wvmK/T/16CzJD1mS9dzz28X3PId QDLiidIw/j4vJtEfWR3ZEv/WqfN4pljDfcMtP/2+VDycc8r4ILgQ8f/L9JgnivR9w+7d GnYkLOJ2U2YAX/9q8byHXP9qU0aepdeWw1qMqzBngIIFWQUoqW6oOLR581cXEyRsveLk 2cYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692884005; x=1693488805; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0Gn9NldIU6rklDIArh6jUXLlH/f94ysJeJTMY1rLmqU=; b=IjbcQ1CWsch81zTsmjFEWa1wGyUVxoenbQaUpQIfZgU7klyS+aCB//JEX7kp95vQPO gUNZglt1e9N8Y0m4JjYlpvHt9POJnNJ3zRSKG1d6kkb5ikZ6m9cSbx3UvL9g5lS2JnAJ b/0+G58OeR4STA8VgOzxRCr8VqK4NGApMJp9nWzvYlHE13WEbtUjUeoHYpYpqHWU+EUN 5jPdjPuYvixkDFHIJjEoac273jqrwftB3zjh0oOl5Hxb0EQb6qz9kI8Kh1YkX8wzrwqf okndQE2K8fzrroxXFYxNgWswdy+nIxYDhAofhtgM6BtiwbZcOGrpHyhI2pJdNpdeeRzW DZoQ== X-Gm-Message-State: AOJu0Yx2fkr+psf+GTBN4/j0AMhRJjwwVBZD/BKszdcyhLvg+okgYP3p MOWIljXEKqHx4ue5NbQ60ZbsQuznp9BbLA== X-Google-Smtp-Source: AGHT+IFN6kYFp2BpXO/6J+9N2wY1ZkfdCEjejzmM2wqWun79rwcfrmyhwB9Fdg/40Sb+gtpILxYswQ== X-Received: by 2002:aa7:d058:0:b0:523:d1ab:b2ed with SMTP id n24-20020aa7d058000000b00523d1abb2edmr12497263edo.29.1692884004967; Thu, 24 Aug 2023 06:33:24 -0700 (PDT) Original-Received: from Mini.fritz.box (p4fe3a80a.dip0.t-ipconnect.de. [79.227.168.10]) by smtp.gmail.com with ESMTPSA id q6-20020aa7d446000000b0052718577668sm10420818edr.11.2023.08.24.06.33.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 06:33:24 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52f.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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:309168 Archived-At: I have a couple of feature requests regarding Xref and/or Eglot, after switching from Lsp-mode to Eglot yesterday, which BTW went really well. Thanks to Jo=C3=A3o! 1. I'm in a C buffer with Eglot running, and I want to go to the definition of something whose name I know, but point is not on an identifier naming that thing. For instance, I want to go the definition of Lisp_Package (in an obsure branch having a struct Lisp_Package), while point is somewhere. C-u M-. offers some completions, but Lisp_Package is not among them. Not using a completion and entering Lisp_Package works. Feature request: Could the completions be made to contain all workspace symbols? Lsp-mode has something doing that, and I found it quite useful with Helm. C-M-. Lisp_Package RET works fine, but entering a word list as advertised in the prompt, say "Li Pa", does not. Question: Bug or limitation? 2. 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? 3. In C mode, Xref works using Eglot, in ELisp mode it uses something else (I have no tags tables). Both work really well, but I apparently have to be in an ELisp buffer to use one and in a C buffer to use the other. Feature request: Is it possible to use more than one backend at the same time? So that I could C-M-. to find an ELisp function while being in a C file? I couldn't find something like that mentioned in the docs, so I guess it's not yet possible.