GNU bug report logs - #8628
24.0.50; `thing-at-point-bounds-of-list-at-point' - no good

Previous Next

Package: emacs;

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

Date: Fri, 6 May 2011 00:31:02 UTC

Severity: wishlist

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Stefan Monnier'" <monnier <at> iro.umontreal.ca>
Cc: 8628 <at> debbugs.gnu.org
Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good
Date: Fri, 13 May 2011 13:06:53 -0700
> > Put point just after the list `(set-buffer-modified-p nil)'.
> > M-: (thing-at-point-bounds-of-list-at-point)
> 
> Nobody should care about 
> thing-at-point-bounds-of-list-at-point because
> it's an internal function.

An internal function that is called by other functions, which _do_ affect what
users see.

See my followup message to the original report.  The point is that
`bounds-of-thing-at-point' does not work well for type `list'.  And the reason
is that we have `thing-at-point-bounds-of-list-at-point' - it just messes things
up.  Get rid of it and you get nothing but improvement.

Just try it.  Do this and the results for (bounds-of-thing-at-point 'list) are
much better:

(put 'list 'bounds-of-thing-at-point nil)

As I said,

> There is no generally no reason to define such
> `thing-at-point-bounds-of...' functions.  The regular
> `bounds-of-thing-at-point' should work, and it does.  







This bug report was last modified 14 years and 14 days ago.

Previous Next


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