From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Mon, 15 Dec 2014 22:57:34 +0100 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 1418680686 8796 80.91.229.3 (15 Dec 2014 21:58:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2014 21:58:06 +0000 (UTC) Cc: 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:57:59 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 1Y0deQ-0000Hj-V2 for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2014 22:57:59 +0100 Original-Received: from localhost ([::1]:42063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0deQ-0004xq-HG for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2014 16:57:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0deE-0004xi-OZ for emacs-devel@gnu.org; Mon, 15 Dec 2014 16:57:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0de5-00020P-Nt for emacs-devel@gnu.org; Mon, 15 Dec 2014 16:57:46 -0500 Original-Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:34367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0de5-00020F-IH for emacs-devel@gnu.org; Mon, 15 Dec 2014 16:57:37 -0500 Original-Received: by mail-wi0-f178.google.com with SMTP id em10so10545551wid.5 for ; Mon, 15 Dec 2014 13:57:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=zzMKrBmMYTrM6wBR/697M/LyrPlZLDaJlFrlFKvX9Dw=; b=pAheEFCfPG0ic+35C56y56xSmqoFN/1HmQXNQoNdOU0+ljv7Obi6BRtegX+xaO1c0e NC3qoA/BroajN0eVBn9zjMV9IzJ1JdlmH+XT+3CLIwGHOXlW8GxhJa2VMshyEApEF3EJ co0wENSo9ccn2c+hZ1vh3WTptgHuEBk3Z2d6CZ+hRibBQky9xLVxLNQtHcT+0ulVoSgr 4dVO3A1xyHpd65V2/vVWKh3/i78QDq2/PHBWoKr8r56Tsu7eraFDb60pzg82v7uqbB4+ chWwJG7kYfgVVX3yFBd2pSpiH2dogL5QIb6LidUfCGWh78Rk1sRSZ2HWhDvOikpMYNYZ dKkg== X-Received: by 10.194.80.193 with SMTP id t1mr55416920wjx.8.1418680656512; Mon, 15 Dec 2014 13:57:36 -0800 (PST) Original-Received: from ix ([212.46.172.140]) by mx.google.com with ESMTPSA id kn5sm14513334wjb.48.2014.12.15.13.57.35 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 15 Dec 2014 13:57:35 -0800 (PST) Original-Received: from helmut by ix with local (Exim 4.80) (envelope-from ) id 1Y0de2-0001Yy-VO; Mon, 15 Dec 2014 22:57:35 +0100 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: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::232 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:180182 Archived-At: On Mon, Dec 15 2014, Dmitry Gutov wrote: > Helmut Eller writes: > >> A identifier representation like >> >> (list (thing-at-point 'line) (current-buffer) (point)) >> >> doesn't cost anything and would go a long way to give a better error >> message. If thing-at-point returns nil or an empty line then >> identifier-at-point should just return nil. > > Bearing in mind the example I mentioned in the previous email, maybe we > can add an optional argument to the xref-identifier-at-point-function. You could also further restrict the identifier type: allow only strings. Tell users that they can put text properties on the string if they need more structured data. Helmut