From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 19:26:51 2021 Received: (at submit) by debbugs.gnu.org; 15 Jul 2021 23:26:51 +0000 Received: from localhost ([127.0.0.1]:50042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4Akk-0000nB-It for submit@debbugs.gnu.org; Thu, 15 Jul 2021 19:26:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:43592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4AjV-0000lA-L4 for submit@debbugs.gnu.org; Thu, 15 Jul 2021 19:25:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4AjU-0007hb-Qi for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 19:25:33 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:56079) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4AjS-00071c-Jj for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 19:25:32 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 812D53200957 for ; Thu, 15 Jul 2021 19:25:27 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute5.internal (MEProxy); Thu, 15 Jul 2021 19:25:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remcycles.net; h=mime-version:message-id:date:from:to:subject:content-type; s= fm2; bh=hJEkiECAaCDmawMOwnSyjWE1wXqTckPFW1eLL19qtlE=; b=Hz3jzBty 55ctUK7vtTOmJeV/smadEKwPdHXNsCJ8V8+W6P5ttDgxpnQYtKI3KV47OxkeikVO FviSgnCm2NA627MlAYPdYzUvH8eLDMgj0GO206LtpR+lmNqqRstNPUboQRgYllT6 9xwIxcRivvhIm6wCm5KHJHGDKabH22IG2oFeTwXOVwT5nWfhg9uoQIBNa5o/9GsI WRMyWuTRrYLigcsOJ2muGqSnqmBSrfHbhksN+hH/fWQx0gT5EmyCxpdZ3VTxO2zT yGi3+to7rBSh4BYm6GU1DdBadI/WOXLxELrIy3aWDfPydpgcpvh9dNZd7JTW/Y0h PmZ4FFXlCmpe4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=hJEkiECAaCDmawMOwnSyjWE1wXqTc kPFW1eLL19qtlE=; b=vlFrvdgincW2TTcugFKpTHekCyHysL8oZx9bF6hcc2j/4 1WraRcbXv4j40lb3nnZcRqcDR0Fjtn3pHcBy0P8MDUCmsm5XaOAXnHqGr10y52qU 0TLhyXM4T56ZoJ2Hl9jzIPUkmyeNMP73RV2jHZAl75OLfGqvUJBrAjng6mwWIsdY YZLpTYX+4fYEyd/zQtIu/TcNiR2LwLJzcsS7Bzu7IjC2OBi4Y7K+ZA+8CH7RvEcY z5+YZ7JDZuG9rWx7sc3MDFTIGX6O0sa4W3IZ/IomtWaXiv7x+xBZsjApZVUqcZR2 s21whgLkoGCEo1ePHxilMlEvRje7Ub6dAAFmekEsw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomhepfdftvghmihhnghhtohhnucfhuhhrmhgrnhdfuceorhgvmhhinhhg thhonhesrhgvmhgthigtlhgvshdrnhgvtheqnecuggftrfgrthhtvghrnheptefhtefgue ehgeejtdfgtdeftdeguefggefhteejheekhfeugeefheduveevvedunecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhgvmhhinhhgthhonhesrh gvmhgthigtlhgvshdrnhgvth X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id B9A49FA0AA4; Thu, 15 Jul 2021 19:25:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-533-gf73e617b8a-fm-20210712.002-gf73e617b Mime-Version: 1.0 Message-Id: <19d9f54a-256a-4d62-8a62-2bf009e5332c@www.fastmail.com> Date: Thu, 15 Jul 2021 16:23:56 -0700 From: "Remington Furman" To: bug-gnu-emacs@gnu.org Subject: 28.0.50; (number-at-point) doesn't work with hex prefixes Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.19; envelope-from=remington@remcycles.net; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 15 Jul 2021 19:26:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) This is related to bug#37458 (which built on bug#8634). (number-at-point) returns 0 when the point is at the beginning of "0x100" and returns 100 (decimal) when the point is at the end of "0x100". I expect it to return 256 in either location. (number-at-point) works as expected and returns 256 when the point is at the "#" of "#x100". It returns nil when the point is on "x", and 100 elsewhere. The following works as expected (though I don't suggest it's the best possible implementation): (defun number-at-point () "Return the number at point, or nil if none is found. Decimal numbers like \"14\" or \"-14.5\", as well as hex numbers like \"0xBEEF09\" or \"#xBEEF09\", are recognized." (cond ((thing-at-point-looking-at "\\(0x\\|#x\\)\\([a-fA-F0-9]+\\)" 500) (string-to-number (buffer-substring (match-beginning 2) (match-end 2)) 16)) ((thing-at-point-looking-at "-?[0-9]+\\.?[0-9]*" 500) (string-to-number (buffer-substring (match-beginning 0) (match-end 0)))))) It requires two calls to (thing-at-point-looking-at) for the common case of decimal numbers, which is unfortunate. I also tried re-ordering the capture groups around the alternation in the regular expression to look for hexadecimal numbers first, but that doesn't fully work. The following version works with the point anywhere in "0x100", but still only works when the point is at the beginning of "#x100". (defun number-at-point () "Return the number at point, or nil if none is found. Decimal numbers like \"14\" or \"-14.5\", as well as hex numbers like \"0xBEEF09\" or \"#xBEEF09\", are recognized." (when (thing-at-point-looking-at "\\(0x\\|#x\\)\\([a-fA-F0-9]+\\)\\|\\(-?[0-9]+\\.?[0-9]*\\)" 500) (if (match-beginning 1) (string-to-number (buffer-substring (match-beginning 2) (match-end 2)) 16) (string-to-number (buffer-substring (match-beginning 3) (match-end 3)))))) I haven't sorted out exactly why the alternation group confuses (thing-at-point-looking-at), but I think it's because it searches forward and backwards so the decimal group will match a portion of a hexadecimal number. In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-07-13 built on ubuntu Repository revision: dd34bef7d3769a8574bcee2c1e91e8445129af75 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Ubuntu 20.04.2 LTS Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils thingatpt cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 51475 8072) (symbols 48 6629 1) (strings 32 18446 1983) (string-bytes 1 606685) (vectors 16 13324) (vector-slots 8 175896 10382) (floats 8 22 49) (intervals 56 195 0) (buffers 992 10)) From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 16 05:48:33 2021 Received: (at 49588) by debbugs.gnu.org; 16 Jul 2021 09:48:33 +0000 Received: from localhost ([127.0.0.1]:50505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4KSP-0000y3-B9 for submit@debbugs.gnu.org; Fri, 16 Jul 2021 05:48:33 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4KSK-0000xb-Lz for 49588@debbugs.gnu.org; Fri, 16 Jul 2021 05:48:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HAWknua8b1qk4XyJvkeRU6CJU42fjzo5In+kaHQFpiE=; b=rxc1usrNEBdkRPTZYVbHY8hKYs b2x/lQh3CBAUVlxSk3qD1l+d7ghJO14qBRdT0sWj770+IM/GfIvMIYvdXv+7cDgjbeLvuP7+BM5e6 MVkG5+hWP7WKf1TY/ErOggL6BjMvJ6CcXuTlQCWKWKVdjsMjDLzsMNYAc5J+rksGeI/c=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4KSB-0002lY-HN; Fri, 16 Jul 2021 11:48:22 +0200 From: Lars Ingebrigtsen To: "Remington Furman" Subject: Re: bug#49588: 28.0.50; (number-at-point) doesn't work with hex prefixes References: <19d9f54a-256a-4d62-8a62-2bf009e5332c@www.fastmail.com> X-Now-Playing: Squarepusher's _Be Up A Hello_: "Detroit People Mover" Date: Fri, 16 Jul 2021 11:48:19 +0200 In-Reply-To: <19d9f54a-256a-4d62-8a62-2bf009e5332c@www.fastmail.com> (Remington Furman's message of "Thu, 15 Jul 2021 16:23:56 -0700") Message-ID: <87eebyd1y4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Remington Furman" writes: > (number-at-point) works as expected and returns 256 when the point is at > the "#" of "#x100". It returns nil when the point is on "x", and 100 > elsewhere. > > The following works as expected (thou [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49588 Cc: 49588@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "Remington Furman" writes: > (number-at-point) works as expected and returns 256 when the point is at > the "#" of "#x100". It returns nil when the point is on "x", and 100 > elsewhere. > > The following works as expected (though I don't suggest it's the best > possible implementation): Thanks; I think that implementation makes sense, so I've added it to Emacs 28 (with some test cases). This change was small enough to apply without assigning copyright to the FSF, but for future patches you want to submit, it might make sense to get the paperwork started now, so that subsequent patches can be applied speedily. Would you be willing to sign such paperwork? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 16 05:48:36 2021 Received: (at control) by debbugs.gnu.org; 16 Jul 2021 09:48:36 +0000 Received: from localhost ([127.0.0.1]:50507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4KSR-0000yE-ID for submit@debbugs.gnu.org; Fri, 16 Jul 2021 05:48:35 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4KSO-0000xj-Vb for control@debbugs.gnu.org; Fri, 16 Jul 2021 05:48:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gDqnKY/yDiuEENLGVFPgDf6wRBKYWzI9UjHD+OsPDig=; b=QbIw8XeRrZrXcvhJmXv0IgcWDe H8g80HfdSG0nKRe8Ao4cs/dM/RbcpMQ1oz2yLTFFOKGUGmVIjXYo/YzFRxg75kNIVm21IOgj+vcRg rU68LW/o5bQ9hW9b/qjO6oW3hC4boWSS0QRzizCmSU9YukrRZhxW8Bf9UGlw+031zZEY=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4KSH-0002lf-C2 for control@debbugs.gnu.org; Fri, 16 Jul 2021 11:48:27 +0200 Date: Fri, 16 Jul 2021 11:48:24 +0200 Message-Id: <87czrid1xz.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #49588 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 49588 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 49588 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 16 16:25:17 2021 Received: (at 49588) by debbugs.gnu.org; 16 Jul 2021 20:25:17 +0000 Received: from localhost ([127.0.0.1]:52388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4UOb-0005Ug-1N for submit@debbugs.gnu.org; Fri, 16 Jul 2021 16:25:17 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:41889) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4UOZ-0005UK-3g for 49588@debbugs.gnu.org; Fri, 16 Jul 2021 16:25:15 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 776C13200928; Fri, 16 Jul 2021 16:25:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 16 Jul 2021 16:25:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remcycles.net; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=8 R8DPpwKmmDvlIwmGtYQtdBdKC1+WEPpbReZxP/Ocug=; b=jc42x2DVXP37jz5bv qxV6kMPV9YOVv0Dir3rGfVoLRIEy8z7HHdwtHXjzwaw7OKMkCN/9z+OeTqtBgRpf pYZ/491ncbfmYTsHppxdJjudM0Zd8z7LxUJFodR0w5E95txiwNbiiHWcP2jnazGt ESpD9/KC9Js/Yk/ux+uR003E7MXD+SP/ViVcbg+AmoNF9Vq8xhV7OtBqPAO1lawI uglci4rmoyBKuZkZJZCIO2G+icE+12KkO0uCGLp0plCwNLOMtRXOvDjZ13KrCNoR k43WqZS0F+p6KljTSU6e2gPwM5HpEqR5eDR/MAwTrjbFiKdH9OqsnUyHn6BCZlmI q3yIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=8R8DPpwKmmDvlIwmGtYQtdBdKC1+WEPpbReZxP/Oc ug=; b=X3qBQHs8HhZqC3dnT7JJXo7RLkj48U16jFwMbTqZvJoq4L80gRbki2kkO 9InFLUya60DIf1LEnP0yL2DlBGXJNxMzGngKefwnLr3ok3HtOVJB1lObdgMd+nxv 8tMAj/auE5NNjoQseONSXaF4LvfHUF+SilBqqQUuce3xQWr1ayGP49A2fbWAbdCn ZxcT40LNcK7DH+zYQHiOifYhUaQvb7C5wNYPoL4WK5rW2DeDbNU2tMm36clWHGiK LRz8Axu0phMUqmFGHz2daCvttSSsdIfWtLkCc8w2XKslDpcIHlKfx1QcxrfOfARO LVcgVcH3+Wu9dhfzip8wh04/yQ1Xg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefgdduvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgvmhhi nhhgthhonhcuhfhurhhmrghnuceorhgvmhhinhhgthhonhesrhgvmhgthigtlhgvshdrnh gvtheqnecuggftrfgrthhtvghrnhepfffhjeetteeijefggedvtdejgfejkeehfedvheff hfduuedvkeekvefgtedvkeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprhgvmhhinhhgthhonhesrhgvmhgthigtlhgvshdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 16 Jul 2021 16:25:06 -0400 (EDT) Subject: Re: bug#49588: 28.0.50; (number-at-point) doesn't work with hex prefixes To: Lars Ingebrigtsen References: <19d9f54a-256a-4d62-8a62-2bf009e5332c@www.fastmail.com> <87eebyd1y4.fsf@gnus.org> From: Remington Furman Message-ID: Date: Fri, 16 Jul 2021 13:25:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <87eebyd1y4.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49588 Cc: 49588@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Thank you, Lars. Yes, I would be happy to sign that paperwork.  Where can I find it? Lars Ingebrigtsen wrote: > "Remington Furman" writes: > >> (number-at-point) works as expected and returns 256 when the point is at >> the "#" of "#x100". It returns nil when the point is on "x", and 100 >> elsewhere. >> >> The following works as expected (though I don't suggest it's the best >> possible implementation): > Thanks; I think that implementation makes sense, so I've added it to > Emacs 28 (with some test cases). > > This change was small enough to apply without assigning copyright to the > FSF, but for future patches you want to submit, it might make sense to > get the paperwork started now, so that subsequent patches can be applied > speedily. Would you be willing to sign such paperwork? > From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 17 10:07:01 2021 Received: (at 49588) by debbugs.gnu.org; 17 Jul 2021 14:07:01 +0000 Received: from localhost ([127.0.0.1]:54410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4ky5-0001jy-L2 for submit@debbugs.gnu.org; Sat, 17 Jul 2021 10:07:01 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4ky3-0001jn-Dy for 49588@debbugs.gnu.org; Sat, 17 Jul 2021 10:07:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zI2nYLgXxbOYYS6ur/p4pRaDTZ2MR2Yqf80AwMBvOkg=; b=LCGdfE2W7C/RU9F4amGrw5XDLy zk/rl1S8pi2ub0tZ77J09m1adPGBzjr/MHv2cgQ02olfpDSRo8fXEL+89ERNCmShWxGUKGBzebxUt 7LZbYjaPWSNulzugOo+6MLq7d8eEYivy3kEOuURMVSKnmyPnSt3aKdquFy9BF81xOaJU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4kxv-0007om-GL; Sat, 17 Jul 2021 16:06:53 +0200 From: Lars Ingebrigtsen To: Remington Furman Subject: Re: bug#49588: 28.0.50; (number-at-point) doesn't work with hex prefixes References: <19d9f54a-256a-4d62-8a62-2bf009e5332c@www.fastmail.com> <87eebyd1y4.fsf@gnus.org> X-Now-Playing: SOPHIE's _OIL OF EVERY PEARL'S UN-INSIDES_: "Whole New World-Pretend World" Date: Sat, 17 Jul 2021 16:06:51 +0200 In-Reply-To: (Remington Furman's message of "Fri, 16 Jul 2021 13:25:05 -0700") Message-ID: <87r1fx591g.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Remington Furman writes: > Yes, I would be happy to sign that paperwork.  Where can I find it? Great; here's the form to get started: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49588 Cc: 49588@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Remington Furman writes: > Yes, I would be happy to sign that paperwork.=C2=A0 Where can I find it? Great; here's the form to get started: Please email the following information to assign@gnu.org, and we will send you the assignment form for your past and future changes. Please use your full legal name (in ASCII characters) as the subject line of the message. ---------------------------------------------------------------------- REQUEST: SEND FORM FOR PAST AND FUTURE CHANGES [What is the name of the program or package you're contributing to?] Emacs [Did you copy any files or text written by someone else in these changes? Even if that material is free software, we need to know about it.] [Do you have an employer who might have a basis to claim to own your changes? Do you attend a school which might make such a claim?] [For the copyright registration, what country are you a citizen of?] [What year were you born?] [Please write your email address here.] [Please write your postal address here.] [Which files have you changed so far, and which new files have you written so far?] From unknown Tue Jun 17 01:39:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 15 Aug 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator