From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#24969: 26.0.50; number-at-point Date: Sun, 20 Nov 2016 13:28:46 -0800 (PST) Message-ID: <4b460e35-7e65-4224-a52b-083f87b24c70@default> References: <87fumm9uti.fsf@gmx.net> <2b644637-6ade-b00f-aa35-07c390fc92c7@easy-emacs.de> <87twb2jkzs.fsf@users.sourceforge.net> <70732268-f26e-8639-335b-0c58689b2a9d@easy-emacs.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1479677410 30641 195.159.176.226 (20 Nov 2016 21:30:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2016 21:30:10 +0000 (UTC) Cc: Stephen Berman , 24969@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= , Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 20 22:30:05 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8Zgb-0006pw-2F for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Nov 2016 22:30:05 +0100 Original-Received: from localhost ([::1]:46285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8Zge-0004a8-CT for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Nov 2016 16:30:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8Zfd-00043i-R5 for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 16:29:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8Zfa-0000LF-Ly for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 16:29:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49284) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c8Zfa-0000LB-Ir for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 16:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c8Zfa-0007A5-CI for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 16:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Nov 2016 21:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24969 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 24969-submit@debbugs.gnu.org id=B24969.147967733927521 (code B ref 24969); Sun, 20 Nov 2016 21:29:02 +0000 Original-Received: (at 24969) by debbugs.gnu.org; 20 Nov 2016 21:28:59 +0000 Original-Received: from localhost ([127.0.0.1]:36450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8ZfX-00079p-LS for submit@debbugs.gnu.org; Sun, 20 Nov 2016 16:28:59 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:19628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8ZfW-00079b-J1 for 24969@debbugs.gnu.org; Sun, 20 Nov 2016 16:28:59 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uAKLSoAf029281 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 20 Nov 2016 21:28:50 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.13.8/8.14.4) with ESMTP id uAKLSnvM029928 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 20 Nov 2016 21:28:49 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id uAKLSmgl029885; Sun, 20 Nov 2016 21:28:48 GMT In-Reply-To: <70732268-f26e-8639-335b-0c58689b2a9d@easy-emacs.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:125926 Archived-At: > > I guess it depends on what a user would expect of a > > "number-at-point" function. A priori, I don't see why s?he > > would expect a non-nil answer if the numeral is embedded in > > text that does not delimit a numeral (e.g. non whitespace text). > > But maybe it is OK. > > > > Would we expect the same kind of behavior for `sexp-at-point' > > if a sexp were not surrounded by chars that delimit a sexp? > > > > In Lisp, at least, there is no number at point, in `foo-2'. > > That is, the Lisp parser (reader) would never pick up the > > `2' as a number here. > > > > I'm partial to use of thingatpt for Lisp, but I realize that > > it is used in other contexts too. >=20 > In use here for edit-purposes. For example raise all numbers > in a region - makes it easier sometimes to adapt stuff, which > doesn't deserve an own template. But the question is, "What constitutes a numeral?" in the given context. Whatever the context, I would expect some kind of well-defined delimiting. In Lisp I would expect what the Lisp reader would pick up as a number - nothing more. And that would exclude picking up `2' within `foo-2'. > Have a first implementation with ar-add-numbers in > https://github.com/andreas-roehler/werkstatt/blob/master/misc/misc- > utils.el - just re-writing it. There is no `ar-add-numbers' or `add-numbers' in that file (having downloaded it just now). Perhaps you meant `ar-add-to-number-cummulative'? That is undefined, without `ar-bounds-of-number-atpt' (not in the file). Anyway, my point was made above.