From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#38797: 27.0.50; Feature request: provide the opposite of xref-pop-marker-stack Date: Mon, 25 Oct 2021 22:38:20 +0300 Message-ID: <53ebfec5-377f-24df-0acb-847b3891dc72@yandex.ru> References: <06080F99-49F3-4936-A39A-D135F5ECCEE2@acm.org> <0c88bcef-f07d-5a38-fa7d-b0ddd048cb48@yandex.ru> <072CF8C3-2ADC-4610-A7E1-94C795A22618@acm.org> <87h7d5xcf6.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37187"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: yyoncho , 38797@debbugs.gnu.org To: Juri Linkov , Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 25 22:34:43 2021 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 1mf6g7-0009Wc-7o for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 22:34:43 +0200 Original-Received: from localhost ([::1]:39096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mf6g5-0004cY-PU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 16:34:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf5oE-0005hi-25 for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 15:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mf5oD-0001iW-O5 for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 15:39:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mf5oD-0000L6-Kv for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 15:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Oct 2021 19:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 38797-submit@debbugs.gnu.org id=B38797.16351907111265 (code B ref 38797); Mon, 25 Oct 2021 19:39:01 +0000 Original-Received: (at 38797) by debbugs.gnu.org; 25 Oct 2021 19:38:31 +0000 Original-Received: from localhost ([127.0.0.1]:44346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf5ni-0000KL-Md for submit@debbugs.gnu.org; Mon, 25 Oct 2021 15:38:30 -0400 Original-Received: from mail-lf1-f41.google.com ([209.85.167.41]:42947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mf5ng-0000K5-Kx for 38797@debbugs.gnu.org; Mon, 25 Oct 2021 15:38:28 -0400 Original-Received: by mail-lf1-f41.google.com with SMTP id bi35so7290447lfb.9 for <38797@debbugs.gnu.org>; Mon, 25 Oct 2021 12:38:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Oxg4rApKjVnKRMkf4/3EIqqZlimuQKRN0z9qa8WeIjE=; b=CtKgmVYGxm0rfMSd/spPyoA6e0tV/xRZw4+J9o2jE5xw5EdZNTjJ/MpUjXra8qSQHv KjqRYy+nx66cgt6FU2ZZABLzJS0JNqLy9K06yaYdZ18hmHEF9NQLE1FoCbLtCTuJeZ+D WTdmlCJulvzw9TeqVO7/G1nb+UHkpos/ePuTNB0IgDVSl43IHaEfvC96B4bo0+t6BnUc yWcEGFavDq9lIQ8Q9n2V4+3XsHs+c2KIH93+OxfPF+QsMowrE5Qltd+D2Lpugh8EVh5B g4w0z5stZucvVgncYF1W3pdp2NeS8wnEAZAgpTI8G3COKE4ImO6FDNyuFzjnoS0dec1v A9Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Oxg4rApKjVnKRMkf4/3EIqqZlimuQKRN0z9qa8WeIjE=; b=oqO1USsjXyThFOk9yPfeSAsTdRR8w5p0Huu/+lQxzQgsZoneLHzD5Qd47Ir/Hd8B0D 1xULrQpVAUli97/nMI5tVyO85pi510rT04jYRZuLHbuxz4BtsA2+VFqyxGTWOkxjjwkv C2A96W9cRiF9rja/SFojex7C8UuCBF57W/gJh/s7eiuU65IQhEtb33MC39+w10BfFwyj XDhF13UnVPcRH0BMnMupHu+WzT+SXtDBGBEAfy4xg6ulCmjtCP2fzEm5dED5dMbkR02N oe5yU6giRx7zt4mjvxkSksnEwEuqgQHvi6/niN/fnmZfYUu8SMak8//RZjxeIKV7DkyO rinQ== X-Gm-Message-State: AOAM5324qONUzvTKM2FnGkEga3iw6OVASZeTOlPRpMmz39f3cgGEUMKG HYHHpFR1XSavFCyBzQia9mCcrsb3olg= X-Google-Smtp-Source: ABdhPJzj37hgS5miv1qvScHDB31xNmdT4veJ9hGn1JyB9xn/FFX9eEpNVds7hKOsJpdYY1oukZ5nng== X-Received: by 2002:a05:6512:443:: with SMTP id y3mr1425275lfk.112.1635190702396; Mon, 25 Oct 2021 12:38:22 -0700 (PDT) Original-Received: from [192.168.0.103] ([5.18.248.29]) by smtp.googlemail.com with ESMTPSA id g10sm1724264lfu.103.2021.10.25.12.38.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Oct 2021 12:38:21 -0700 (PDT) In-Reply-To: <87h7d5xcf6.fsf@mail.linkov.net> Content-Language: en-US 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" Xref: news.gmane.io gmane.emacs.bugs:218343 Archived-At: On 25.10.2021 20:05, Juri Linkov wrote: >> I favour (lightly) "Go Back" / "Go Forward" because they make sense in >> context with the other Xref operations in that separator-delimited group of >> entries in the menu, and because it's a wording often used for these >> operations elsewhere such as in web browsers and IDEs (though often it's >> just "Back" and "Forward"). >> >> "Xref {Back,Forward}" or "{Back,Forward} Xref" would also do and displays >> the link to Xref up front, but the English is decidedly less natural. > > With such a test case: > > 0. emacs -Q Seems like step 0.5 is missing: enable context-menu-mode. > 1. click mouse-3 on any word in *scratch*, and select from the context menu > "Find Definition". It should fail with the error > "No definitions found for: This". This is correct. > 2. now click mouse-3 at the end of *scratch*, not on a word. > > The menu contains the item "Back Definition". (BTW, why if the search failed?) > > This menu item is too ambiguous. Renaming it to "Go Back" or "Go Forward" > doesn't make the menu item clearer. Only adding a word "Xref" somewhere > will disambiguate it. Maybe then "Go Back in Xref" or "Go Back with Xref"? > We need more opinions. Go Back and Go Forward look okay to me. Not sure whether adding "Xref " would be an improvement: the Xref locations stack is an intended replacement for find-tag-marker-ring, which is supposedly used by all kinds of code. So the location to which we "Go Back" might as well have been tagged by a command which otherwise has to relation to Xref