[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14234: 24.3; symbol-at-point fails in (very) narrowed buffers
From: |
Lars Ingebrigtsen |
Subject: |
bug#14234: 24.3; symbol-at-point fails in (very) narrowed buffers |
Date: |
Wed, 20 Jan 2021 04:45:27 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Vitalie Spinu <spinuvit@gmail.com> writes:
> If buffer is narrowed to non-symbol text, symbol-at-point returns the
> whole content whatever is that.
>
> To reproduce: Create a new buffer "test.txt" add `[[`( at the beginning
> and run (symbol-at-point). It wrongly gives the whole content. Now put
> "aa `[[`(" and place your cursor at [; symbol-at-point returns nil as
> expected.
>
> This probably has to do with the thing-at-point relying on forward-thing
> and backward-thing which, in this case, return eob and bob respectively.
Yup. This should now be fixed in Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#14234: 24.3; symbol-at-point fails in (very) narrowed buffers,
Lars Ingebrigtsen <=