Subject: Re: bug#24969: 26.0.50; number-at-point

From: [email-masked]
Date: Sun, 20 Nov 2016 09:15:19 -0500

tags 24969 unreproducible
quit

Andreas Röhler <[email-masked]> writes:

> On 20.11.2016 13:53, Stephen Berman wrote:
>> On Sun, 20 Nov 2016 13:47:50 +0100 Andreas Röhler <[email-masked]> 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