diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-01-20 05:44:16 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-01-20 05:44:16 +0100 |
commit | 8b33b76eb9fbb857bccbe3d223c961c486e4e8f9 (patch) | |
tree | b413c02ccd9a60f6c3a49db6b33c3454bc9727d0 /test | |
parent | c502cdd2b71f396b202e22103cd8aa5b0796fdab (diff) | |
download | emacs-8b33b76eb9fbb857bccbe3d223c961c486e4e8f9.tar.gz |
Revert "Make `symbol-at-point' work in buffers with no symbols"
This reverts commit 40a5df81434ce02fba01779256b50976fb74da4f.
This fails when a point is after a symbol, and there's
nothing else in the buffer.
Diffstat (limited to 'test')
-rw-r--r-- | test/lisp/thingatpt-tests.el | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/lisp/thingatpt-tests.el b/test/lisp/thingatpt-tests.el index b7c315062f9..c43c81af9fd 100644 --- a/test/lisp/thingatpt-tests.el +++ b/test/lisp/thingatpt-tests.el @@ -146,18 +146,4 @@ position to retrieve THING.") (should (thing-at-point-looking-at "2abcd")) (should (equal (match-data) m2))))) -(ert-deftest test-narrow-buffer-symbol () - (with-temp-buffer - (insert "foo bar zot") - (goto-char 5) - (should (equal (symbol-at-point) 'bar))) - (with-temp-buffer - (insert "`[[`(") - (goto-char 2) - (should (equal (symbol-at-point) nil))) - (with-temp-buffer - (insert "aa `[[`(") - (goto-char 4) - (should (equal (symbol-at-point) nil)))) - ;;; thingatpt.el ends here |