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

From: Andreas Röhler <[email-masked]>
Date: Sun, 20 Nov 2016 14:53:50 +0100

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