From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Mon, 15 Dec 2014 16:13:16 -0500 Message-ID: References: <20141102151524.0d9c665c@forcix> <85tx1amnyg.fsf@stephe-leake.org> <85egsem1u2.fsf@stephe-leake.org> <867fy0or7p.fsf@yandex.ru> <86ppbqn841.fsf@yandex.ru> <86mw6o3k28.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418678035 31788 80.91.229.3 (15 Dec 2014 21:13:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2014 21:13:55 +0000 (UTC) Cc: Helmut Eller , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 15 22:13:48 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Y0cxf-0004wt-3E for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2014 22:13:47 +0100 Original-Received: from localhost ([::1]:41914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0cxe-0003s4-KU for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2014 16:13:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0cxK-0003p4-QY for emacs-devel@gnu.org; Mon, 15 Dec 2014 16:13:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0cxD-0005T8-CV for emacs-devel@gnu.org; Mon, 15 Dec 2014 16:13:26 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:29648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0cxD-0005Sq-8P for emacs-devel@gnu.org; Mon, 15 Dec 2014 16:13:19 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjwPAOwQflTO+ILA/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBJy8jBQsLDiYSFBgNJIhKCdZZAQEBAQYBAQEBHpBvB4RIBYsBpC6BeIQZIYJ3AQEB X-IPAS-Result: AjwPAOwQflTO+ILA/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBJy8jBQsLDiYSFBgNJIhKCdZZAQEBAQYBAQEBHpBvB4RIBYsBpC6BeIQZIYJ3AQEB X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="102585847" Original-Received: from 206-248-130-192.dsl.teksavvy.com (HELO pastel.home) ([206.248.130.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 15 Dec 2014 16:13:17 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id EF8B81758; Mon, 15 Dec 2014 16:13:16 -0500 (EST) In-Reply-To: <86mw6o3k28.fsf@yandex.ru> (Dmitry Gutov's message of "Mon, 15 Dec 2014 19:21:51 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:180179 Archived-At: > When it's t, the function would return an approximate string (basically > symbol at point, but maybe with minor syntax adjustments), and that > value would be used both in the error message (when we can't find > anything), and as initial input for identifier completion, from > xref-identifier-completion-table. I don't care about which values are really allowed as identifiers. I just the docstring to say clearly that non-strings can be used. And I'd like to get rid of the "identifier->string" method because I think it's over-engineering (it's only used to give very-slightly-prettier error messages). Stefan