From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#8634: 24.0.50; `number-at-point' returns char value for `?' constructs - 1) doc, 2) new fns Date: Sat, 08 Feb 2014 22:45:02 -0800 Message-ID: <87lhxk7pjl.fsf@building.gnus.org> References: <458B95C58F7348C2AA62A340071C6E1C@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391928432 32069 80.91.229.3 (9 Feb 2014 06:47:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Feb 2014 06:47:12 +0000 (UTC) Cc: 8634@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 09 07:47:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WCOAh-0001lX-95 for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Feb 2014 07:47:19 +0100 Original-Received: from localhost ([::1]:49479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCOAg-0000rO-Kn for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Feb 2014 01:47:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCOAZ-0000pw-4S for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 01:47:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCOAQ-0005Fi-SX for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 01:47:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCOAQ-0005Fe-P9 for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 01:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WCOAP-0007N7-Jq for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 01:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Feb 2014 06:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8634-submit@debbugs.gnu.org id=B8634.139192839828286 (code B ref 8634); Sun, 09 Feb 2014 06:47:01 +0000 Original-Received: (at 8634) by debbugs.gnu.org; 9 Feb 2014 06:46:38 +0000 Original-Received: from localhost ([127.0.0.1]:59105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCOA0-0007M6-QF for submit@debbugs.gnu.org; Sun, 09 Feb 2014 01:46:37 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:54755) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCO9y-0007Lw-AX for 8634@debbugs.gnu.org; Sun, 09 Feb 2014 01:46:34 -0500 Original-Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WCO9i-0007LG-IN; Sun, 09 Feb 2014 07:46:18 +0100 In-Reply-To: <458B95C58F7348C2AA62A340071C6E1C@us.oracle.com> (Drew Adams's message of "Sat, 7 May 2011 08:30:22 -0700") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1WCO9i-0007LG-IN MailScanner-NULL-Check: 1392533180.38905@+9MAoAngtRldUHv6q5xWHg X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85071 Archived-At: "Drew Adams" writes: > `number-at-point' is defined like this: > > (defun number-at-point () > "Return the number at point, or nil if none is found." > (form-at-point 'sexp 'numberp)) > > That uses `read-from-string' for the sexp at point, and testing whether the > result is `numberp'. > > That's fine, I guess, but it means that with buffer text such as ?A or ?\A-\^@ > you get a non-nil result: the character value (wholenump) for ?A, which is 65, > and 4194304, respectively. If you are depending on code to find _numerals_ in > text and return their numeric values then this is not what you want. In that > case, you want a function that returns nil when point is not on a numeral. Looks like this is fixed now. Closing. Please reopen if you're still seeing this. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/