|
From: | Andreas Röhler |
Subject: | bug#24969: 26.0.50; number-at-point |
Date: | Sun, 20 Nov 2016 14:53:50 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
On 20.11.2016 13:53, Stephen Berman wrote:
On Sun, 20 Nov 2016 13:47:50 +0100 Andreas Röhler <andreas.roehler@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
[Prev in Thread] | Current Thread | [Next in Thread] |