summaryrefslogtreecommitdiff
path: root/test/lisp/thingatpt-tests.el
diff options
context:
space:
mode:
authorTino Calancha <tino.calancha@gmail.com>2016-11-03 20:33:19 +0900
committerTino Calancha <tino.calancha@gmail.com>2016-11-03 20:33:19 +0900
commit76e297c15f6312a83599aab216be0396e9aac5c5 (patch)
tree724d43aa7b7a404f728d51d66dff554550dc93ff /test/lisp/thingatpt-tests.el
parent76735c116d3d49f0e1ba84ccf657729e91cb1ad0 (diff)
downloademacs-76e297c15f6312a83599aab216be0396e9aac5c5.tar.gz
(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.
Diffstat (limited to 'test/lisp/thingatpt-tests.el')
-rw-r--r--test/lisp/thingatpt-tests.el1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/lisp/thingatpt-tests.el b/test/lisp/thingatpt-tests.el
index 71d2c88d84b..9d72db40162 100644
--- a/test/lisp/thingatpt-tests.el
+++ b/test/lisp/thingatpt-tests.el
@@ -88,7 +88,6 @@ position to retrieve THING.")
;; `thing-at-point-bounds-of-list-at-point'.
(ert-deftest thing-at-point-bug24627 ()
"Test for http://debbugs.gnu.org/24627 ."
- :expected-result :failed
(let ((string-result '(("(a \"b\" c)" . (a "b" c))
(";(a \"b\" c)")
("(a \"b\" c\n)" . (a "b" c))