From unknown Sat Aug 09 13:00:56 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66683 <66683@debbugs.gnu.org> To: bug#66683 <66683@debbugs.gnu.org> Subject: Status: 30.0.50; xref-find-references returns duplicates Reply-To: bug#66683 <66683@debbugs.gnu.org> Date: Sat, 09 Aug 2025 20:00:56 +0000 retitle 66683 30.0.50; xref-find-references returns duplicates reassign 66683 emacs submitter 66683 Petteri Hintsanen severity 66683 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 22 11:30:49 2023 Received: (at submit) by debbugs.gnu.org; 22 Oct 2023 15:30:49 +0000 Received: from localhost ([127.0.0.1]:47909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quaPh-0007RB-A8 for submit@debbugs.gnu.org; Sun, 22 Oct 2023 11:30:49 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quaPd-0007Qt-5S for submit@debbugs.gnu.org; Sun, 22 Oct 2023 11:30:48 -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 ) id 1quaP4-0005WC-UO for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2023 11:30:10 -0400 Received: from sypressi2.dnainternet.net ([83.102.40.154]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quaP1-0004i8-Tb for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2023 11:30:10 -0400 Received: from localhost (localhost [127.0.0.1]) by sypressi2.dnainternet.net (Postfix) with ESMTP id 5CB8E11494; Sun, 22 Oct 2023 18:30:03 +0300 (EEST) X-Virus-Scanned: DNA Internet at dnainternet.net X-Spam-Flag: NO X-Spam-Score: 0.653 X-Spam-Level: X-Spam-Status: No, score=0.653 tagged_above=-9999 required=6 tests=[SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from sypressi2.dnainternet.net ([83.102.40.154]) by localhost (sypressi2.dnainternet.net [127.0.0.1]) (DNA Internet, port 10041) with ESMTP id jafZa3bAjuyy; Sun, 22 Oct 2023 18:30:02 +0300 (EEST) Received: from omenapuu2.dnainternet.net (omenapuu2.dnainternet.net [83.102.40.54]) by sypressi2.dnainternet.net (Postfix) with ESMTP id 2DF281129C; Sun, 22 Oct 2023 18:30:02 +0300 (EEST) Received: from romeo (62-78-178-196.bb.dnainternet.fi [62.78.178.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by omenapuu2.dnainternet.net (Postfix) with ESMTPS id CD28E221; Sun, 22 Oct 2023 18:29:59 +0300 (EEST) From: Petteri Hintsanen To: bug-gnu-emacs@gnu.org Subject: 30.0.50; xref-find-references returns duplicates Date: Sun, 22 Oct 2023 18:29:58 +0300 Message-ID: <87h6mioetl.fsf@iki.fi> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: neutral client-ip=83.102.40.154; envelope-from=petterih@iki.fi; helo=sypressi2.dnainternet.net X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) [This is a bug report from an old issue discussed in help-gnu-emacs@gnu.org (dated 19 Dec 2022, Message-ID <7ac4ca06-cbbb-1c8d-0f59-2ccd5d3232f2@iki.fi>). Dmitry Gutov asked me to file a bug, which I unfortunately forgot to do that time. Hence filing now.] I discovered a somewhat peculiar case where xref-find-references returns duplicate references for elisp symbols. Recipe: 1. Create a file ~/foo/bar/bar.el with contents: (defun bar-f ()) (defun bar-g () (bar-f)) (provide 'bar) 2. Create a git repo in ~/foo/bar and commit bar.el. This is just to set up a project that Emacs can recognize. 3. Start emacs -Q and eval (add-to-list 'load-path "~/foo") (add-to-list 'load-path "~/foo/bar") (require 'bar) 4. C-x C-f ~/foo/bar/bar.el 5. M-x xref-find-references RET bar-f RET On my machine I get bar.el 1: (defun bar-f ()) 4: (bar-f)) 1: (defun bar-f ()) 4: (bar-f)) i.e. references are duplicated. The issue seems to be in load-path: if I remove (add-to-list 'load-path "~/foo") from step (3) above, then I don't see any duplicates. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.33, cairo version 1.16.0) of 2023-10-22 built on romeo Repository revision: ae337884107c4d5f66aaceef0e8b548565317412 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK2 ZLIB Important settings: value of $LC_MESSAGES: en_US.UTF-8 value of $LANG: fi_FI.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: display-fill-column-indicator-mode: t bug-reference-prog-mode: t jinx-mode: t winner-mode: t savehist-mode: t minibuffer-electric-default-mode: t display-time-mode: t emms-playing-time-display-mode: t emms-playing-time-mode: t desktop-save-mode: t cwm-mode: t windmove-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t minibuffer-regexp-mode: t column-number-mode: t line-number-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t hs-minor-mode: t Load-path shadows: /home/phintsan/.emacs.d/elpa/transient-0.4.3/transient hides /home/phintsan/src/emacs/lisp/transient Features: (shadow mail-extr emacsbug message yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils hideshow display-fill-column-indicator bug-reference jinx compat ph-simple-theme rx winner ring savehist minibuf-eldef time emms-mpris pcase dbus emms-librefm-stream xml emms-librefm-scrobbler emms-playlist-limit emms-i18n emms-history emms-score emms-stream-info emms-metaplaylist-mode emms-bookmarks emms-cue emms-mode-line-icon emms-browser sort emms-volume emms-volume-sndioctl emms-volume-mixerctl emms-volume-pulse emms-volume-amixer emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd tq emms-lyrics emms-url time-date emms-streams emms-show-all emms-tag-editor format-spec emms-tag-tracktag emms-mark emms-mode-line emms-cache emms-info-native emms-info-native-spc emms-info-native-mp3 emms-info-native-ogg emms-info-native-opus emms-info-native-flac emms-info-native-vorbis bindat emms-info-exiftool emms-info-tinytag emms-info-metaflac emms-info-opusinfo emms-info-ogginfo emms-info-mp3info emms-playlist-mode emms-player-vlc emms-player-mpv emms-playing-time emms-info emms-later-do emms-player-mplayer emms-player-simple emms-source-playlist emms-source-file thingatpt locate dired dired-loaddefs emms-setup emms emms-compat desktop frameset cwm-mode windmove edmacro kmacro cl-extra help-mode use-package-bind-key bind-key easy-mmode finder-inf use-package-core cus-edit pp cus-load icons wid-edit ack-autoloads jinx-autoloads perl-doc-autoloads transient-autoloads with-editor-autoloads info compat-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process emacs) Memory information: ((conses 16 274554 22405) (symbols 48 13707 0) (strings 32 99822 3656) (string-bytes 1 2414869) (vectors 16 29913) (vector-slots 8 1123232 231495) (floats 8 86 55) (intervals 56 853 0) (buffers 992 10)) From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 15:12:38 2023 Received: (at 66683) by debbugs.gnu.org; 23 Oct 2023 19:12:38 +0000 Received: from localhost ([127.0.0.1]:51706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv0Lr-0001Ww-NX for submit@debbugs.gnu.org; Mon, 23 Oct 2023 15:12:38 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:47943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv0Ll-0001Wc-U6 for 66683@debbugs.gnu.org; Mon, 23 Oct 2023 15:12:33 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0DA1E3200918; Mon, 23 Oct 2023 15:11:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 23 Oct 2023 15:11:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1698088313; x=1698174713; bh=WrltwpDq41TDCsSwpBIlAoBO3GPylLU0Gut 0ViUeU+M=; b=USSPtQ09CU+wvvmJYDPkTUUkbVgIaZqHhiO5Gop2sS052lEGtxV +xw/eRP9AkImDzSNx0AKwm20jaBdXoDvYQMtpbBmEOKV0SOiv7VV47g/XKgAA8wN p490CdxKqLw4OR0wKEbFXKSRTjt+xy7plrjl5yU6SaOK8kqdTJbTj5Y4DA8cDUNp qZhhygELIyXm1KUdMBrSrJAVbB8xDhl2d1vtLqRdX/benxX3qxNZdPrMGcwFhcNk c/JayA9kEXGgS+jC2uk2uJ+pUyy3lKopmSNE0ZyLENeov9qvJQyg9a2yQGalsNUe hGRTp8tHjw4mtRnjew3+BH5TjaGoy6TIkcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1698088313; x= 1698174713; bh=WrltwpDq41TDCsSwpBIlAoBO3GPylLU0Gut0ViUeU+M=; b=r luokBiX06Mg4m2aMIhz+6CkYPHWqB7jroJTW3WSFlJP8uLUeFUdUoh4/mgchmRge E4bA2LOHTA72pcfOUhblOdErdFI9cuJsVnM5nJ4p58KhA+w/1Hw+XpNv86ldfFaN PwtKWyLimYGCgE/+0kd185Yj3IitHBu7TTf1B9JEdl4TSvndZeUeC44hPUSgl2jA 0Zh6DeBhAkxprD88FvrfijDAy4hIk2TU6o2Z0K3pBJmecNXl/S7j7/VI2My3tM8p mPgCQegtB2Jpx5p7l+w6cwK0bfzqtiQeqOtNGuOeKoR2EgF/Toq9/f0GhgBCgiyR WIS0eEn14ND9RZETycZ5Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkeeigddufedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeghedthedujeeiteeutddtjeekheejteeukeehffdutdejuedvfeevueeviedu udenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Oct 2023 15:11:52 -0400 (EDT) Message-ID: Date: Mon, 23 Oct 2023 22:11:51 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: bug#66683: 30.0.50; xref-find-references returns duplicates Content-Language: en-US To: Petteri Hintsanen , 66683@debbugs.gnu.org References: <87h6mioetl.fsf@iki.fi> From: Dmitry Gutov In-Reply-To: <87h6mioetl.fsf@iki.fi> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 66683 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) On 22/10/2023 18:29, Petteri Hintsanen wrote: > [This is a bug report from an old issue discussed in > help-gnu-emacs@gnu.org (dated 19 Dec 2022, Message-ID > <7ac4ca06-cbbb-1c8d-0f59-2ccd5d3232f2@iki.fi>). Dmitry Gutov asked me > to file a bug, which I unfortunately forgot to do that time. Hence > filing now.] > > I discovered a somewhat peculiar case where xref-find-references returns > duplicate references for elisp symbols. > > Recipe: > > 1. Create a file ~/foo/bar/bar.el with contents: > > (defun bar-f ()) > > (defun bar-g () > (bar-f)) > > (provide 'bar) > > 2. Create a git repo in ~/foo/bar and commit bar.el. This is just to > set up a project that Emacs can recognize. > > 3. Start emacs -Q and eval > > (add-to-list 'load-path "~/foo") > (add-to-list 'load-path "~/foo/bar") > (require 'bar) > > 4. C-x C-f ~/foo/bar/bar.el > > 5. M-x xref-find-references RET bar-f RET > > On my machine I get > > bar.el > 1: (defun bar-f ()) > 4: (bar-f)) > 1: (defun bar-f ()) > 4: (bar-f)) > > i.e. references are duplicated. The issue seems to be in load-path: if > I remove (add-to-list 'load-path "~/foo") from step (3) above, then I > don't see any duplicates. Hi! Thanks for the report and the reminder. Could you try this little patch below? diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index fd788ec8f32..81618428bf3 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -281,9 +281,10 @@ xref-backend-references (xref-references-in-directory identifier dir) (message "Searching %s... done" dir))) (let ((pr (project-current t))) - (cons - (xref--project-root pr) - (project-external-roots pr))))) + (project-combine-directories + (cons + (xref--project-root pr) + (project-external-roots pr)))))) (cl-defgeneric xref-backend-apropos (backend pattern) "Find all symbols that match PATTERN string. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 16:03:03 2023 Received: (at 66683) by debbugs.gnu.org; 23 Oct 2023 20:03:03 +0000 Received: from localhost ([127.0.0.1]:51884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv18h-0005ca-DZ for submit@debbugs.gnu.org; Mon, 23 Oct 2023 16:03:03 -0400 Received: from sirokuusama2.dnainternet.net ([83.102.40.153]:41118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv18e-0005bo-15 for 66683@debbugs.gnu.org; Mon, 23 Oct 2023 16:03:03 -0400 Received: from localhost (localhost [127.0.0.1]) by sirokuusama2.dnainternet.net (Postfix) with ESMTP id 420E111665; Mon, 23 Oct 2023 23:02:24 +0300 (EEST) X-Virus-Scanned: DNA Internet at dnainternet.net X-Spam-Flag: NO X-Spam-Score: 0.653 X-Spam-Level: X-Spam-Status: No, score=0.653 tagged_above=-9999 required=6 tests=[SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from sirokuusama2.dnainternet.net ([83.102.40.153]) by localhost (sirokuusama2.dnainternet.net [127.0.0.1]) (DNA Internet, port 10041) with ESMTP id cpsqmiGhSjg6; Mon, 23 Oct 2023 23:02:24 +0300 (EEST) Received: from luumupuu2.dnainternet.net (luumupuu2.dnainternet.net [83.102.40.55]) by sirokuusama2.dnainternet.net (Postfix) with ESMTP id 11ED711643; Mon, 23 Oct 2023 23:02:24 +0300 (EEST) Received: from romeo (62-78-178-196.bb.dnainternet.fi [62.78.178.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by luumupuu2.dnainternet.net (Postfix) with ESMTPS id B12E12C78; Mon, 23 Oct 2023 23:02:21 +0300 (EEST) From: Petteri Hintsanen To: Dmitry Gutov Subject: Re: bug#66683: 30.0.50; xref-find-references returns duplicates In-Reply-To: (Dmitry Gutov's message of "Mon, 23 Oct 2023 22:11:51 +0300") References: <87h6mioetl.fsf@iki.fi> Date: Mon, 23 Oct 2023 23:02:21 +0300 Message-ID: <87y1ftksz6.fsf@iki.fi> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 66683 Cc: 66683@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dmitry Gutov writes: > Could you try this little patch below? Happy to report it fixes the issue: both the toy example in the recipe and my original problem. Thanks for your time, Petteri From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 16:55:27 2023 Received: (at 66683-done) by debbugs.gnu.org; 23 Oct 2023 20:55:27 +0000 Received: from localhost ([127.0.0.1]:52002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv1xP-0001NJ-5S for submit@debbugs.gnu.org; Mon, 23 Oct 2023 16:55:27 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:33765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv1xN-0001N6-4Z for 66683-done@debbugs.gnu.org; Mon, 23 Oct 2023 16:55:26 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 9ABEC3200D0F; Mon, 23 Oct 2023 16:54:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 23 Oct 2023 16:54:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1698094489; x=1698180889; bh=ExYnJAYo6ofwqQAkdiulp9np5Eq/W+O2Oaq 5U3rz42c=; b=Uta08lugJs3KsdHMshIKGxgqGKm6u/4I4yj5iuW6omJHh3FQLI4 p9pCHfqhosEyWHq95rjTreKE1ccGFIr5HKOvoAl7IoN3NF7quf4reeTIHm8ca08t NzV3zXkmqBrgIOTI22geBKXVL4ffHlBuCd+7D5wAj+SvzJkGQcdqy0SFqhN83TC/ kOq1fNKt3g71fIdxYSp2Gv+aMQFN+O0MyQlCmHTZYvkFnHhnBl00I/b9GWIKGIHq 8t3TWHzlaxcJHTbjMmGN24WXNxl9jB5Cx3tRtC1znEKnPMw887+w2ax3PmxzW8PG KBoke4R0P+N7VAVCGCJY7ggfLiqd++pohfg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1698094489; x=1698180889; bh=ExYnJAYo6ofwqQAkdiulp9np5Eq/W+O2Oaq 5U3rz42c=; b=Bw/+c225rPg3wwXCW4ZeUZWYu2omcQjF+rreCWBGqbmuZzSXina x1FLbxbympBMpcKWtPC72iN/VpLrggheB02lDeddhl8sbi3dZPME/gBfmZDP5tpn kUf+lWzeykIwbRQ33gceq+Kbx5SEykroLBEVaV63EKCd2IqnWXvZWGxlGRm8uFbj p+FfxTuhw8MgihP23IXXC/WWfSe6iYzwVQjgwacu1kzP980SkH0R1Dl8fKj3wVcx y8PpkAVdClHTVOIPdfti1LHL4zcJMAiQNfkYk/mA3VrNsLj/b8HTBwlAPVcE/eG6 Z7Ps+gDg5XdlqTiFghae6OVP6/65ABRL4cg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkeeigdduheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Oct 2023 16:54:48 -0400 (EDT) Message-ID: <322e2672-6f55-4bba-8f46-02e78a9ccedb@gutov.dev> Date: Mon, 23 Oct 2023 23:54:46 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: bug#66683: 30.0.50; xref-find-references returns duplicates Content-Language: en-US To: Petteri Hintsanen References: <87h6mioetl.fsf@iki.fi> <87y1ftksz6.fsf@iki.fi> From: Dmitry Gutov In-Reply-To: <87y1ftksz6.fsf@iki.fi> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 66683-done Cc: 66683-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) Version: 30.1 On 23/10/2023 23:02, Petteri Hintsanen wrote: > Dmitry Gutov writes: > >> Could you try this little patch below? > Happy to report it fixes the issue: both the toy example in the recipe > and my original problem. > > Thanks for your time, Thanks for checking! Now pushed to master for the next Emacs release. But the next version of Xref on GNU ELPA will also include it the fix (will probably tag it in 1-2 weeks). From unknown Sat Aug 09 13:00:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 21 Nov 2023 12:24:15 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator