all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: npostavs@users.sourceforge.net,
	"Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: Stephen Berman <stephen.berman@gmx.net>, 24969@debbugs.gnu.org
Subject: bug#24969: 26.0.50; number-at-point
Date: Sun, 20 Nov 2016 08:19:28 -0800 (PST)	[thread overview]
Message-ID: <f3a4ffe3-a283-444f-a6fc-48d2bca507ca@default> (raw)
In-Reply-To: <87twb2jkzs.fsf@users.sourceforge.net>

> tags 24969 unreproducible
> quit

Dunno what this is all about, why some of you are seeing
a number returned (or printed in a message), or why any
of you would expect that to be the case.

In Emacs 25.1 (emacs -Q), `number-at-point' at either
the `-' or the `1' returns nil, for me.  And I do not
see why it should return a number.

`number-at-point' is defined using `form-at-point' with
THING `sexp' and predicate `numberp'.  The sexp picked
up at point is `foo-1', and that fails `numberp'.

What am I missing?  Why should this rightfully return
a number?  I'm guessing that you are all using a more
recent version of `number-at-point' than what is in
Emacs 25.1 (?).  But to me the Emacs 25.1 behavior I
see (i.e., returning nil) is correct.

Did someone change the meaning of `number-at-point'
so that it now picks up a numeral that is not isolated?
If so, why would that be considered proper behavior?
At the very least it is not backward-compatible behavior.

(Hoping I'm just misunderstanding something here.)





  reply	other threads:[~2016-11-20 16:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-20 12:47 bug#24969: 26.0.50; number-at-point Andreas Röhler
2016-11-20 12:53 ` Stephen Berman
2016-11-20 13:53   ` Andreas Röhler
2016-11-20 14:15     ` npostavs
2016-11-20 16:19       ` Drew Adams [this message]
2016-11-20 16:35         ` Noam Postavsky
2016-11-20 16:58           ` Drew Adams
2016-11-20 19:26             ` Andreas Röhler
2016-11-20 21:28               ` Drew Adams
2016-11-21  6:48                 ` Andreas Röhler
2016-11-21 14:22                   ` Drew Adams
2016-11-21 13:09         ` Tino Calancha
2016-11-21 23:07           ` Drew Adams
2016-11-22  8:45             ` Andreas Röhler
2021-08-10 16:18 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f3a4ffe3-a283-444f-a6fc-48d2bca507ca@default \
    --to=drew.adams@oracle.com \
    --cc=24969@debbugs.gnu.org \
    --cc=andreas.roehler@easy-emacs.de \
    --cc=npostavs@users.sourceforge.net \
    --cc=stephen.berman@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.