From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Raffaele Ricciardi Newsgroups: gmane.emacs.help Subject: Re: thing-at-point: inconsistent behaviour? Date: Wed, 15 Aug 2012 20:00:16 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345063173 5628 80.91.229.3 (15 Aug 2012 20:39:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2012 20:39:33 +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 21:05:15 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 1T1iu3-0005H4-6w for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 21:05:15 +0200 Original-Received: from localhost ([::1]:35275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1iu1-0006SN-Qx for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 15:05:13 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-X-Trace: individual.net eGfAyIKPpytTIGfYDrnhrwovQtc0FunFGEHEuAYmXmWfUHPh1zNcafHuI+9WLhdS5y Cancel-Lock: sha1:4UB0//vzikCBPKwyJNlMCNnbc5c= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: Original-Xref: usenet.stanford.edu gnu.emacs.help:193987 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:86356 On 08/15/2012 07:34 PM, Barry Margolin wrote: > 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? I stand corrected after having consulted a dictionary. Then it is (thing-at-point 'list) that is misbehaving. > >> >> 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. Aren't lists sexps as well?