From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: find-tag-default Date: Fri, 21 May 2004 11:05:45 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <873c5up8um.fsf@mail.jurta.org> References: <874qqkq1by.fsf@mail.jurta.org> <87n044dc27.fsf@mail.jurta.org> <87pt8z1pv6.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1085129026 9541 80.91.224.253 (21 May 2004 08:43:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 May 2004 08:43:46 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 21 10:43:41 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BR5cz-00072n-00 for ; Fri, 21 May 2004 10:43:41 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BR5cz-0001D4-00 for ; Fri, 21 May 2004 10:43:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BR5DV-0007fJ-On for emacs-devel@quimby.gnus.org; Fri, 21 May 2004 04:17:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BR5Bb-0007N4-L6 for emacs-devel@gnu.org; Fri, 21 May 2004 04:15:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BR5At-0007EB-1v for emacs-devel@gnu.org; Fri, 21 May 2004 04:15:16 -0400 Original-Received: from [66.33.219.19] (helo=spoon.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BR5As-0007Dn-6C; Fri, 21 May 2004 04:14:38 -0400 Original-Received: from mail.jurta.org (80-235-32-21-dsl.mus.estpak.ee [80.235.32.21]) by spoon.dreamhost.com (Postfix) with ESMTP id AFCED13D8C0; Fri, 21 May 2004 01:14:35 -0700 (PDT) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 20 May 2004 21:27:57 -0400") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23809 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23809 Richard Stallman writes: > If identifier-at-point is useful in a number of places, > let's install that and use it. > > Is this function exactly the right thing? The function name is right, but its contents is not too right. Currently there are different methods for obtaining an identifier at point: - `find-tag-default' and `find-tag-default-function' from etags.el - `symbol-at-point' from thingatpt.el - info-look.el which has the most advanced implementation since it defines regular expressions and parsing rules for guessing the default identifier for 20 major modes (and one special function `info-lookup-guess-c-symbol' for C mode). So to create right contents of `identifier-at-point' these packages could be generalized. Anyway, we could install this function now as a general method to get an identifier at point, with the identifier guessing method from etags.el, and improve its contents later. -- Juri Linkov http://www.jurta.org/emacs/