From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.bugs Subject: bug#22692: docstring for xref-find-definitions Date: Sat, 20 Feb 2016 19:42:57 -0800 Message-ID: <2270.1456026177@allegro.localdomain> References: <20283.1455584523@allegro.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: ger.gmane.org 1456026200 18385 80.91.229.3 (21 Feb 2016 03:43:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Feb 2016 03:43:20 +0000 (UTC) Cc: 22692@debbugs.gnu.org, Juri Linkov To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 21 04:43:09 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aXKvM-0001xD-Dp for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Feb 2016 04:43:08 +0100 Original-Received: from localhost ([::1]:37657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXKvL-0005Y2-8X for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Feb 2016 22:43:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXKvI-0005WM-1z for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 22:43:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXKvG-0007Rx-3c for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 22:43:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXKvG-0007Rr-0G for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 22:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXKvF-0002gH-MP for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 22:43:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Feb 2016 03:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22692 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22692-submit@debbugs.gnu.org id=B22692.145602618110299 (code B ref 22692); Sun, 21 Feb 2016 03:43:01 +0000 Original-Received: (at 22692) by debbugs.gnu.org; 21 Feb 2016 03:43:01 +0000 Original-Received: from localhost ([127.0.0.1]:35713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXKvE-0002g2-SZ for submit@debbugs.gnu.org; Sat, 20 Feb 2016 22:43:01 -0500 Original-Received: from shell1.rawbw.com ([198.144.192.42]:62164 ident=root) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXKvD-0002fv-Lf for 22692@debbugs.gnu.org; Sat, 20 Feb 2016 22:43:00 -0500 Original-Received: from allegro.localdomain (m208-249.dsl.rawbw.com [198.144.208.249]) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTP id u1L3gv6B072295; Sat, 20 Feb 2016 19:42:58 -0800 (PST) (envelope-from m.kupfer@acm.org) X-Authentication-Warning: shell1.rawbw.com: Host m208-249.dsl.rawbw.com [198.144.208.249] claimed to be allegro.localdomain In-Reply-To: Your message of "Sat, 20 Feb 2016 03:24:18 +0200." <56C7C042.2010907@yandex.ru> X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 25.0.91 Content-ID: <2269.1456026177.1@allegro.localdomain> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113391 Archived-At: Dmitry Gutov wrote: > On 02/19/2016 05:34 PM, Eli Zaretskii wrote: > > If find-tag-default-function is also used by xref-find-references, > > then it won't be TRT to reject constants up front. A request to find > > all the places where a certain constant is used is a valid use case. > > It is indeed unlikely to have such a request for the constant 1, but > > think about constants like 3.14159 or 3.0e+8. > > That's a valid argument. Agreed. I suppose find-tag-default-function could be enhanced to take an optional flag that says whether the request is for finding references or for finding the definition. Though I'm not sure the additional complexity is worth it. And it would certainly not be part of addressing this bug. mike