(thing-at-point 'list) return nil if no list at point
commit76e297c15f6312a83599aab216be0396e9aac5c5
authorTino Calancha <tino.calancha@gmail.com>
Thu, 3 Nov 2016 11:33:19 +0000 (3 20:33 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Thu, 3 Nov 2016 11:33:19 +0000 (3 20:33 +0900)
tree724d43aa7b7a404f728d51d66dff554550dc93ff
parent76735c116d3d49f0e1ba84ccf657729e91cb1ad0
(thing-at-point 'list) return nil if no list at point

* lisp/thingatpt.el (thing-at-point-bounds-of-list-at-point):
Check first if we are at the beginning of a top-level sexp (Bug#24627).
If point is inside a comment or string, look for a list out of the
comment/string.
Escape '[' in doc string.
* test/lisp/thingatpt-tests.el (thing-at-point-bug24627): Update
expected test result as pass.
lisp/thingatpt.el
test/lisp/thingatpt-tests.el