From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: thing-at-point: inconsistent behaviour? Date: Wed, 15 Aug 2012 14:34:36 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1345055717 17536 80.91.229.3 (15 Aug 2012 18:35:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2012 18:35:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 15 20:35:17 2012 Return-path: Envelope-to: geh-help-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 1T1iR0-00024I-2l for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 20:35:14 +0200 Original-Received: from localhost ([::1]:48810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1iQy-0004x6-2j for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 14:35:12 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Injection-Info: barmar.motzarella.org; posting-host="78fb7125a45724f15e21604c94a7d968"; logging-data="12457"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ew2NpKd2Xeo6grU0IYue6" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:mL9H4MJSVJ0ZJkgbpsRK79+TY5Q= Original-Xref: usenet.stanford.edu gnu.emacs.help:193985 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86353 Archived-At: In article , Raffaele Ricciardi wrote: > Hello there, > > the documentation of `thing-at-point' states that such function returns "the > thing around or next to point". This is not the case with either > (thing-at-point > 'symbol) or (thing-at-point 'sexp), for they both may return the thing > before > point. Try it with the following snippet (! symbolizes the point): Doesn't "next to" include both immediately before and immediately after? > > A! > (A)! > > On the contrary, (bounds-of-thing-at-point 'list) returns nil as > expected in this > snippet: > > (A)! > > Is this inconsistent behaviour or am I missing something? > > Tested on GNU Emacs 24.1 started with "emacs -Q". > > Thank you. I think this is a problem with the thing-at-point handler for 'list. It's doing some weird stuff, that I think is intended to distinguide lists from sexps. I guess it's only supposed to match lists embedded in code, not the list that represents a toplevel expression. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***