From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: find-tag-default Date: Fri, 28 May 2004 21:44:35 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1085810677 2966 80.91.224.253 (29 May 2004 06:04:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 May 2004 06:04:37 +0000 (UTC) Cc: juri@jurta.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 29 08:04:32 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 1BTwxM-0001LA-00 for ; Sat, 29 May 2004 08:04:32 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BTwxM-0004he-00 for ; Sat, 29 May 2004 08:04:32 +0200 Original-Received: from [127.0.0.1] (helo=mailman.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BTwxQ-0001NR-Rj for emacs-devel@quimby.gnus.org; Sat, 29 May 2004 02:04:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BTwwY-0000v7-9U for emacs-devel@gnu.org; Sat, 29 May 2004 02:03:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BTwwW-0000sk-2Y for emacs-devel@gnu.org; Sat, 29 May 2004 02:03:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BTwwV-0000sF-N6 for emacs-devel@gnu.org; Sat, 29 May 2004 02:03:39 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BTwvy-0001Ks-QQ for emacs-devel@gnu.org; Sat, 29 May 2004 02:03:06 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BTstn-0004jr-0Y; Fri, 28 May 2004 21:44:35 -0400 Original-To: "Drew Adams" In-reply-to: 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:24143 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24143 Library thingatpt+.el provides additions and enhancements to thingatpt.el: 1) An optional syntax-table argument is used to determine the bounds. When have you found that useful? 2) New functions (e.g. symbol-nearest-point) don't require point to be on the name you want. Here's how "nearest" is defined: Some kind of extension in this direction could be useful, I guess. However, I think this looks too far away from point: The nearest symbol on the same line is returned, if there is any. Between two symbols equidistant from point on the same line, the leftmost is considered nearer. Otherwise, neighboring lines are tried in sequence: previous, next, 2nd previous, 2nd next, 3rd previous, 3rd next, etc. This means that between two symbols equidistant from point in lines above and below it, the symbol in the line above point (previous Nth) is considered nearer to it. I think it would be a mistake to use a symbol very far away from point. The user would think, "Where in the world did that come from?" It's better to say "there's no default" than grasp at straws to find one. So I would recommend a new function along these lines but with some limits.