From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71068: 30.0.50; Incorrect xref positions for eglot-execute Date: Sun, 19 May 2024 17:55:44 +0200 Message-ID: Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16163"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 71068@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 19 17:56:34 2024 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 1s8itm-0003zD-If for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 May 2024 17:56:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8itG-0002Vi-KW; Sun, 19 May 2024 11:56:02 -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 1s8itC-0002Uc-SI for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 11:55:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s8itC-0007KU-JU for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 11:55:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8itG-0002vB-EN for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 11:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 May 2024 15:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71068 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171613415911217 (code B ref -1); Sun, 19 May 2024 15:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 May 2024 15:55:59 +0000 Original-Received: from localhost ([127.0.0.1]:36807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8itD-0002ur-GT for submit@debbugs.gnu.org; Sun, 19 May 2024 11:55:59 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8itA-0002ul-Oe for submit@debbugs.gnu.org; Sun, 19 May 2024 11:55:57 -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 1s8it6-0002Sx-5w for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 11:55:52 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8it4-00077e-Or for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 11:55:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1716134146; bh=BNxAyu0NM335ktXrydEh3Dp3sQiICjUq1l2dGRIprD4=; h=From:To:Subject:Date:From; b=fWn/8k5L16k8GNoTx9gnZmSLAEJc6YR5BrTbaHu37QxrdEkCZgjHb75rvTscGpbly 19If7cx0NrimRpivyIDV0eHeyp7SIlpcwUISqS9+TfvS3EGqLzTZQax69g86G0GUfp hjKgG05urlpnTWW3ssuK/2MQ+GHHwCXLCIWEEgbht+Dy/RjhNUfyeKhfOBD4wKnJ/S 8x2Q4cby2+z1K7X2huKP4x+CHQv5S4v/Peh5nDHiMmRbCo5J+qjEPPO/h7fHL9AIH1 VK5COrI2c2pgEnviD/NJCDgR/nRhrN25kBVUjQfqlD3Yh0k6Xfxc/GQt5k/8zy345S feiElQ5Ai6ZpA== X-Hashcash: 1:20:240519:bug-gnu-emacs@gnu.org::o2isrHEkfNKDF8+X:8W/G Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:285440 Archived-At: f Using xref to find the definition of eglot-execute seems to yield imprecise definition locations: 1. emacs -Q 2. (require 'eglot) 3. M-. eglot-execute RET This produces an *xref* buffer that lists two definitions: --8<---------------cut here---------------start------------->8--- .../lisp/progmodes/eglot.el (cl-defgeneric eglot-execute) (cl-defmethod eglot-execute (server action)) --8<---------------cut here---------------end--------------->8--- Following the first definition leads to the definition of eglot-execute-command (which is different from eglot-execute, although the former is defined right above the latter), while the second definition leads to the top of the file.