]> git.eshelyaron.com Git - emacs.git/commit
Make `symbol-at-point' work in buffers with no symbols
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 20 Jan 2021 03:44:18 +0000 (04:44 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 20 Jan 2021 03:44:18 +0000 (04:44 +0100)
commit40a5df81434ce02fba01779256b50976fb74da4f
tree706991cdbf784b269a206df7202cf6bf5b0503db
parent3bbec2eb2b2a48a0eaac8e83c27313bfbe9d420e
Make `symbol-at-point' work in buffers with no symbols

* lisp/thingatpt.el (thing-at-point--end-of-symbol): New function
(bug#14234).
(symbol): Use it instead of `forward-symbol', because the latter
will move to the end of the buffer even if there is no symbol
there.  Instead error out like `forward-sexp' and friends.
lisp/thingatpt.el
test/lisp/thingatpt-tests.el