From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65631: Xref updates stack in case of error Date: Wed, 30 Aug 2023 20:01:02 +0300 Message-ID: <83r0nkfos1.fsf@gnu.org> References: <864jkg4h0i.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27171"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65631@debbugs.gnu.org, dmitry@gutov.dev To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 30 19:02:04 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 1qbOZv-0006r0-Va for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Aug 2023 19:02:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbOZp-00056o-2t; Wed, 30 Aug 2023 13:01: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 1qbOZm-0004w3-OQ for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 13:01:55 -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 1qbOZm-0006Q3-Gd for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 13:01:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qbOZu-00088K-4Z for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2023 13:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Aug 2023 17:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65631 X-GNU-PR-Package: emacs Original-Received: via spool by 65631-submit@debbugs.gnu.org id=B65631.169341490231234 (code B ref 65631); Wed, 30 Aug 2023 17:02:02 +0000 Original-Received: (at 65631) by debbugs.gnu.org; 30 Aug 2023 17:01:42 +0000 Original-Received: from localhost ([127.0.0.1]:53894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbOZZ-00087h-JL for submit@debbugs.gnu.org; Wed, 30 Aug 2023 13:01:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbOZX-00087U-1k for 65631@debbugs.gnu.org; Wed, 30 Aug 2023 13:01:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbOZK-0006HU-1U; Wed, 30 Aug 2023 13:01:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=C9DslcZro0hrfAt4r9rOfuAZSjEsBxK6eUEfIzq0z00=; b=Kj0wAIHu0lJw eSaYFAtELtq674LEAKrk6c6IBazEgMA1PhVaclZFgGP7t26tOH3e9suiaUTby2g5nf3/6sasec+j9 JzOaOrTj1d/vqB08jiQQLrtIm7q96gSVAS9yhANXpoh5lBAkE/RrU2tP/1R0Y5kZo1FqDVkCwqKjg 341HXFb/OMEkSnUScPlNMVq7NdUCz9UzMV8zL83I/n7Ei6vCvFRm3Tirv/pPPbFPCxHv66XqAPnPP oYG1NaxcJmGPsDFMWBGH8X0bDA/yYLOQ/g8yOtNd1UEwSshROJtX6eVdv+v/0bZpiZmMagvzFvoup uXsceVdh4rO3FUewQSBDsQ==; In-Reply-To: <864jkg4h0i.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 30 Aug 2023 19:44:13 +0300) 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:268736 Archived-At: > Cc: dmitry gutov > From: Juri Linkov > Date: Wed, 30 Aug 2023 19:44:13 +0300 > > X-Debbugs-CC: Dmitry Gutov > > 0. emacs -Q > 1. move point to any word > 2. type 'M-.' (xref-find-definitions) > 3. an error is displayed correctly "No definitions found for: This" > > But the problem is that an unrecognized word is added to the xref stack. > So the context menu shows "Go Back", and 'M-,' (xref-go-back) goes back > to that word. FWIW, I'm not sure this is necessarily a bug. It looks like a bug in your case, because you deliberately tricked Xref into using a word that is definitely not a program symbol. But that is not the case in a more reasonable situation, where point is on a symbol, but for some reason the symbol's definition is not found, e.g., because the TAGS table needs to be regenerated.