tags:

views:

56

answers:

1

I sometimes use (number-at-point), (string-at-point), (sexp-at-point) and I had a need for:

(list-at-point)

I want to be able to grab some text like:

a b c d

and use list-at-point to grab it as an elisp list, and then do some processing on it.

But I can't seem to get list-at-point to return anything but nil.

I'm using Emacs on windows, v22.3.1

+2  A: 

It appears you've found a bug, None of the functions that depend on form-at-point seem to work for me, which the ones that depend on thing-at-point do. Have a look at the file thngatpt.el in the elisp sources.

The function has sufficient hair that I can't debug it at this hour, but it's clearly not doing what it advertises. Googling reveals other complaints.

You might see if replacing it with thingatpt+.el is better.

Charlie Martin
I think you're right, I've filed a bug report.
justinhj
yeah, I looked at the code a little bit, but there's enough funcall magic going on it'll require some thought.
Charlie Martin
Yeah it is a bug. I reported it and it's been fixed.
justinhj