GNU bug report logs - #14234
24.3; symbol-at-point fails in (very) narrowed buffers

Previous Next

Package: emacs;

Reported by: Vitalie Spinu <spinuvit <at> gmail.com>

Date: Sat, 20 Apr 2013 14:49:01 UTC

Severity: minor

Tags: fixed

Found in version 24.3

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 14234 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Vitalie Spinu <spinuvit <at> gmail.com>
Cc: 14234 <at> debbugs.gnu.org
Subject: Re: bug#14234: 24.3; symbol-at-point fails in (very) narrowed buffers
Date: Wed, 20 Jan 2021 04:45:27 +0100
Vitalie Spinu <spinuvit <at> 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




This bug report was last modified 4 years and 126 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.