GNU bug report logs - #21391
24.5; `thing-at-point' returns error when called with arguments 'number t

Previous Next

Package: emacs;

Reported by: Tino Calancha <f92capac <at> gmail.com>

Date: Tue, 1 Sep 2015 01:57:01 UTC

Severity: minor

Found in version 24.5

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

Bug is archived. No further changes may be made.

Full log


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

From: Drew Adams <drew.adams <at> oracle.com>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>,
 21391 <at> debbugs.gnu.org
Subject: RE: bug#21391: 24.5; `thing-at-point' returns error when called with
 arguments 'number t)
Date: Fri, 4 Nov 2016 12:27:23 -0700 (PDT)
> > Tino is right.  The mistake behind the handling of optional arg
> > NO-PROPERTIES (which was added in Emacs 24.4) is to assume that
> > `thing-at-point' returns a string.  This is a common
> > misconception.  It can return anything that Emacs Lisp can
> > return.
> 
> Is there a need to pick symbols from a buffer as symbols?
> Don't know. My use-case is editing and strings are the suitable
> format.

Of course there is.  And not just symbols, but numbers, lists...

People too often misunderstand thing-at-point as being only
something to grab text at point to serve as a default value
for reading input.  There are any number of reasons to determine
whether there is a thing of a given type at point, and to
retrieve it if so.




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

Previous Next


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