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


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 24969 <at> debbugs.gnu.org
Subject: bug#24969: 26.0.50; number-at-point
Date: Tue, 10 Aug 2021 18:18:12 +0200
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> 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)))

This has returned -1 since Emacs 26.1 (it used to return nil), and I
think -1 is fine here (since we've asked for a number, and that's a
kinda numberish thing).  (I also see the logic in returning nil in Lisp
buffers, but number-at-point is a DWIM-ish command.)

So I think this works as it's supposed, and I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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.