[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
thing-at-point: inconsistent behaviour?
From: |
Raffaele Ricciardi |
Subject: |
thing-at-point: inconsistent behaviour? |
Date: |
Wed, 15 Aug 2012 19:08:50 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
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):
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.
- thing-at-point: inconsistent behaviour?,
Raffaele Ricciardi <=
- Re: thing-at-point: inconsistent behaviour?, Barry Margolin, 2012/08/15
- RE: thing-at-point: inconsistent behaviour?, Drew Adams, 2012/08/15
- Re: thing-at-point: inconsistent behaviour?, Raffaele Ricciardi, 2012/08/15
- Re: thing-at-point: inconsistent behaviour?, Andreas Röhler, 2012/08/16
- Message not available
- Re: thing-at-point: inconsistent behaviour?, Barry Margolin, 2012/08/16
- Re: thing-at-point: inconsistent behaviour?, Andreas Röhler, 2012/08/16
- Message not available
- Re: thing-at-point: inconsistent behaviour?, Raffaele Ricciardi, 2012/08/16
- Re: thing-at-point: inconsistent behaviour?, Barry Margolin, 2012/08/16
- RE: thing-at-point: inconsistent behaviour?, Drew Adams, 2012/08/16
- Message not available
- Re: thing-at-point: inconsistent behaviour?, Barry Margolin, 2012/08/16