GNU bug report logs - #24969
26.0.50; number-at-point

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Sun, 20 Nov 2016 12:40:02 UTC

Severity: minor

Tags: unreproducible

Found in version 26.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: npostavs <at> users.sourceforge.net
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Stephen Berman <stephen.berman <at> gmx.net>, 24969 <at> debbugs.gnu.org
Subject: Re: bug#24969: 26.0.50; number-at-point
Date: Sun, 20 Nov 2016 09:15:19 -0500
tags 24969 unreproducible
quit

Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> On 20.11.2016 13:53, Stephen Berman wrote:
>> On Sun, 20 Nov 2016 13:47:50 +0100 Andreas Röhler <andreas.roehler <at> easy-emacs.de> wrote:
>>
>>> After evaluating show-number in buffer of contents below, it should jump to
>>> char "1" and return them, but returns nil.
>>>
>>> ;;;
>>>
>>> foo-1
>>>
>>> (defun show-number ()
>>>    (interactive)
>>>    (goto-char 5)
>>>    (message "%s" (number-at-point)))
>>>
>>> ;;;
>> When I try your recipe, point jumps to the - sign
> Seems there is a leading whitespace.
>
>
>>   and the echo area
>> displays -1.
>
> Here with that start from minus-sign equally nil is returned.
>
> Thanks

I get -1 here too.

GNU Emacs 26.0.50.15 (x86_64-unknown-linux-gnu, X toolkit) of 2016-11-19




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

Previous Next


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