GNU bug report logs - #9300
24.0.50; `bounds-of-thing-at-point' does not return nil when just after THING

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sun, 14 Aug 2011 22:39:03 UTC

Severity: minor

Found in version 24.0.50

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Drew Adams <drew.adams <at> oracle.com>, 9300 <at> debbugs.gnu.org
Subject: bug#9300: 24.0.50; `bounds-of-thing-at-point' does not return nil when just after THING
Date: Tue, 23 Feb 2016 03:01:12 +0200
I'm not sure it should be fixed.

Your reasoning seems valid, however by now this behavior is ingrained 
into my expectations of how thing-at-point should behave.

This would be a breaking change. For instance, it will make 
(bounds-of-thing-at-point 'symbol) unsuitable for use in a 
completion-at-point-functions element, to compute the first two values 
of the returned list, because during completion you're most often 
"after" the symbol. And I do use it for that purpose in one third-party 
package.

emacs-eclim also uses it in 
eclim-java-show-documentation-for-current-element. At the very least, 
this will change the existing behavior.




This bug report was last modified 3 years and 30 days ago.

Previous Next


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