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 #11 received at 24969 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: 24969 <at> debbugs.gnu.org
Subject: Re: bug#24969: 26.0.50; number-at-point
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 <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





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.