all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* thing-at-point: inconsistent behaviour?
@ 2012-08-15 18:08 Raffaele Ricciardi
  2012-08-15 18:34 ` Barry Margolin
  0 siblings, 1 reply; 14+ messages in thread
From: Raffaele Ricciardi @ 2012-08-15 18:08 UTC (permalink / raw)
  To: help-gnu-emacs

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.


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-08-20  0:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-15 18:08 thing-at-point: inconsistent behaviour? Raffaele Ricciardi
2012-08-15 18:34 ` Barry Margolin
2012-08-15 18:44   ` Drew Adams
2012-08-15 19:00   ` Raffaele Ricciardi
2012-08-16 11:52     ` Andreas Röhler
     [not found]     ` <mailman.7107.1345117968.855.help-gnu-emacs@gnu.org>
2012-08-16 15:48       ` Barry Margolin
2012-08-16 16:24         ` Andreas Röhler
     [not found]         ` <mailman.7114.1345134264.855.help-gnu-emacs@gnu.org>
2012-08-16 17:12           ` Raffaele Ricciardi
2012-08-16 23:19             ` Barry Margolin
2012-08-17  0:46             ` Drew Adams
     [not found]             ` <mailman.7128.1345164390.855.help-gnu-emacs@gnu.org>
2012-08-17  1:46               ` Barry Margolin
2012-08-17  4:38                 ` Drew Adams
     [not found]                 ` <mailman.7135.1345178331.855.help-gnu-emacs@gnu.org>
2012-08-17  9:23                   ` Raffaele Ricciardi
2012-08-20  0:15                     ` Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.