Received: (at 64739) by debbugs.gnu.org; 24 Jul 2023 11:25:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 24 07:25:29 2023 Received: from localhost ([127.0.0.1]:41908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qNtgv-0005Cb-4X for submit <at> debbugs.gnu.org; Mon, 24 Jul 2023 07:25:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qNtgt-0005CN-4O for 64739 <at> debbugs.gnu.org; Mon, 24 Jul 2023 07:25:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qNtgm-0001Nn-K1; Mon, 24 Jul 2023 07:25:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GaUBWJclHlXadjD6WRezAcPZInURWidgWoXDqdA4Yg0=; b=E2Lib1FMthsH AVRRyjBOHl8yZmtcwhSD+3byn/HPeOTwMk7HNlAiZIGRmahETmv5ZCEhfB0bTA0r0aPOoMchCRGUB bXOnzG6o6SXNRLk4jnRlpx14Yy94BXHZe71oQ9CXdTIpb9TQCqw+Sv2Mpa+l+L8dAz2iACSOnslr0 Ex/793hpdZGlc00FNB8B3CTImz0tnvyOCP7Pl507yLQ03Xx9BUo3WbUw7tq+RVtwRuGTdCaDpDURK 0M+/J4ZS1Vk5FmL80LNkTsDxIlO5m3jge2LAqLQQTHxWN3tQmOWC/MwlmDAJZwSX2KVglAhI6OjIP JU2qYeN1P5+L3qndi5CNXQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qNtgX-0000eR-BM; Mon, 24 Jul 2023 07:25:18 -0400 Date: Mon, 24 Jul 2023 14:25:48 +0300 Message-Id: <83351dtutf.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Joseph Turner <joseph@HIDDEN>, Stefan Monnier <monnier@HIDDEN> In-Reply-To: <87o7k2xv6h.fsf@HIDDEN> (message from Joseph Turner on Sun, 23 Jul 2023 12:03:50 -0700) Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal numbers References: <87cz0n6qvp.fsf@HIDDEN> <831qh33x46.fsf@HIDDEN> <87o7k54ff6.fsf@HIDDEN> <83tttxzb08.fsf@HIDDEN> <83r0p1zatl.fsf@HIDDEN> <878rb94ahz.fsf@HIDDEN> <83bkg5banh.fsf@HIDDEN> <87pm4j9tzm.fsf@HIDDEN> <83mszn6vjs.fsf@HIDDEN> <87o7k2xv6h.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64739 Cc: 64739 <at> debbugs.gnu.org, winkler@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Joseph Turner <joseph@HIDDEN> > Cc: winkler@HIDDEN, 64739 <at> debbugs.gnu.org > Date: Sun, 23 Jul 2023 12:03:50 -0700 > > > Eli Zaretskii <eliz@HIDDEN> writes: > > > That's probably one idea, yes. (But note that those regexps don't > > support numbers like "1.0e2".) > > I agree that the regexp solution is not ideal. > > > Another idea is to define a special-purpose syntax table and use that > > with forward-word. > > Did you have something like this in mind? More or less. TBH, I didn't think about this too much, so maybe this idea doesn't "hold water". > > Yet another idea is to use 'read', since the Lisp reader already knows > > how to read numbers. > > Sounds interesting! I'm not sure how to approach a solution like that. > How would you let the Lisp reader know where to start and stop reading? Start is easy: 'read' always starts at point. End might give us trouble, but in general 'read' reads one expression, so it should stop at the end of the number, no? Anyway, I was just brain-storming. A real solution will need more thought and more testing. Perhaps Stefan (CC'ed) has some ideas or inputs.
bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.Received: (at 64739) by debbugs.gnu.org; 23 Jul 2023 19:52:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 23 15:52:21 2023 Received: from localhost ([127.0.0.1]:41269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qNf7s-0005b7-QV for submit <at> debbugs.gnu.org; Sun, 23 Jul 2023 15:52:21 -0400 Received: from out-15.mta0.migadu.com ([91.218.175.15]:50545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <joseph@HIDDEN>) id 1qNf7o-0005av-4f for 64739 <at> debbugs.gnu.org; Sun, 23 Jul 2023 15:52:19 -0400 References: <87cz0n6qvp.fsf@HIDDEN> <831qh33x46.fsf@HIDDEN> <87o7k54ff6.fsf@HIDDEN> <83tttxzb08.fsf@HIDDEN> <83r0p1zatl.fsf@HIDDEN> <878rb94ahz.fsf@HIDDEN> <83bkg5banh.fsf@HIDDEN> <87pm4j9tzm.fsf@HIDDEN> <83mszn6vjs.fsf@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1690141934; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dJpVYjORYPwQn5nvuGZpPdJnpxheCCn1YH+xI1CAodM=; b=T0fFkC/4xoYyxrR9npGcI65fx2aCmH2xqysxSlZshvU+36daRhQcuEZd+QVYovrXwpYZGi Nw6Yqz6csOu0qgEES1YLPTPZJgx9he+Xw9h2EBVlOoZyHqS7ZCeOWtTcDtTr09g/fLQJPw tOyp0rQB9InD+Ab45lAHkoU1ACPfH0g= X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN and include these headers. From: Joseph Turner <joseph@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal numbers Date: Sun, 23 Jul 2023 12:03:50 -0700 In-reply-to: <83mszn6vjs.fsf@HIDDEN> Message-ID: <87o7k2xv6h.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64739 Cc: 64739 <at> debbugs.gnu.org, winkler@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Eli Zaretskii <eliz@HIDDEN> writes: >> From: Joseph Turner <joseph@HIDDEN> >> Cc: Roland Winkler <winkler@HIDDEN>, 64739 <at> debbugs.gnu.org >> Date: Sat, 22 Jul 2023 20:36:16 -0700 >> >> > By "its own function" I meant that we implement it in Emacs, not that >> > you implement it in your personal customizations. >> >> I see that the definition of number-at-point includes two magic regexps, >> one matching hex numbers and another matching decimal numbers. Would it >> make sense to move those regexps into defconsts, and then create a new >> function forward-number which uses those new constants? > > That's probably one idea, yes. (But note that those regexps don't > support numbers like "1.0e2".) I agree that the regexp solution is not ideal. > Another idea is to define a special-purpose syntax table and use that > with forward-word. Did you have something like this in mind? (defvar number-syntax-table (let ((st (make-syntax-table))) (modify-syntax-entry ?. "w " st) ;; ?- and ?+ could indicate the sign at the beginning of a number or ;; they could indicate the sign of an exponent like 1.5e-6 (modify-syntax-entry ?- "w " st) (modify-syntax-entry ?+ "w " st) ;; ?# acts as a prefix for integers in bases other than 10. (modify-syntax-entry ?# "w " st) st) "Syntax table used to detect word boundaries for numbers.") (defun forward-number (&optional n) (interactive) (with-syntax-table number-syntax-table (forward-word-strictly n))) (defun backward-number (&optional n) (interactive) (with-syntax-table number-syntax-table (forward-word-strictly n))) ;; We don't need the following two lines, since forward-thing uses ;; intern-soft to get these function names anyway. (put 'number 'forward-op 'forward-number) (put 'number 'beginning-op 'backward-number) What would we use for end-op? Is it necessary? Also I notice that the current implementation of number-at-point fails to recognize the following as a single number: -1.5e+6 Could we do something like: (defun number-at-point (&optional no-properties) (with-syntax-table number-syntax-table (word-at-point no-properties))) (put 'number 'thing-at-point 'number-at-point) I'd appreciate feedback on the syntax table above. It incorrectly recognizes some non-number strings as numbers: a-a+a- #abc#abc > Yet another idea is to use 'read', since the Lisp reader already knows > how to read numbers. Sounds interesting! I'm not sure how to approach a solution like that. How would you let the Lisp reader know where to start and stop reading? Joseph
bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.Received: (at 64739) by debbugs.gnu.org; 23 Jul 2023 05:33:27 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 23 01:33:27 2023 Received: from localhost ([127.0.0.1]:37821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qNRih-000755-5X for submit <at> debbugs.gnu.org; Sun, 23 Jul 2023 01:33:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qNRif-00074t-JS for 64739 <at> debbugs.gnu.org; Sun, 23 Jul 2023 01:33:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qNRia-0005N2-0c; Sun, 23 Jul 2023 01:33:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ELtdUpjw6ebHAg2y5P/+rjfYNSHe0OzYCoFagqclsNg=; b=h9xHEBzUKo7s oyry2slkWl5npQevyDBuXobTLGBaIRzrSDA4JAjio6uL8UJolk5YdLDJbiQhsxUmgrhfv+/eGC3CA NzmLuOsMBzAuWN+wgkZlKDB67yePfHkaVcgUvpYm47Xz9toAVtlJ5NEG1yQa+SwGvJmczi+T8xOPM mWv8HDaJmMh6kmQqQlqGnOzvY+WPUb6aNcqegxMNKLd2s2KhBM/km5/yW5JIxIs1CHKGUS9mysP1d IU6WOrUBmWt8wuFbTZjDS2GPySXlNqifghoLvAwy2mhj82S0ldoJUbnD0b+IErDOZ4GoaAPtBwe+S o9M7FH1ZKHXosz7Hzs9Uug==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qNRiZ-0008Kl-52; Sun, 23 Jul 2023 01:33:19 -0400 Date: Sun, 23 Jul 2023 08:33:59 +0300 Message-Id: <83mszn6vjs.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Joseph Turner <joseph@HIDDEN> In-Reply-To: <87pm4j9tzm.fsf@HIDDEN> (message from Joseph Turner on Sat, 22 Jul 2023 20:36:16 -0700) Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal numbers References: <87cz0n6qvp.fsf@HIDDEN> <831qh33x46.fsf@HIDDEN> <87o7k54ff6.fsf@HIDDEN> <83tttxzb08.fsf@HIDDEN> <83r0p1zatl.fsf@HIDDEN> <878rb94ahz.fsf@HIDDEN> <83bkg5banh.fsf@HIDDEN> <87pm4j9tzm.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64739 Cc: 64739 <at> debbugs.gnu.org, winkler@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Joseph Turner <joseph@HIDDEN> > Cc: Roland Winkler <winkler@HIDDEN>, 64739 <at> debbugs.gnu.org > Date: Sat, 22 Jul 2023 20:36:16 -0700 > > > Eli Zaretskii <eliz@HIDDEN> writes: > > > By "its own function" I meant that we implement it in Emacs, not that > > you implement it in your personal customizations. > > I see that the definition of number-at-point includes two magic regexps, > one matching hex numbers and another matching decimal numbers. Would it > make sense to move those regexps into defconsts, and then create a new > function forward-number which uses those new constants? That's probably one idea, yes. (But note that those regexps don't support numbers like "1.0e2".) Another idea is to define a special-purpose syntax table and use that with forward-word. Yet another idea is to use 'read', since the Lisp reader already knows how to read numbers. And there probably are other ideas as well.
bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.Received: (at 64739) by debbugs.gnu.org; 23 Jul 2023 03:39:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 22 23:39:31 2023 Received: from localhost ([127.0.0.1]:37751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qNPwR-0003z0-N8 for submit <at> debbugs.gnu.org; Sat, 22 Jul 2023 23:39:31 -0400 Received: from out-13.mta1.migadu.com ([95.215.58.13]:53773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <joseph@HIDDEN>) id 1qNPwP-0003ys-5N for 64739 <at> debbugs.gnu.org; Sat, 22 Jul 2023 23:39:30 -0400 References: <87cz0n6qvp.fsf@HIDDEN> <831qh33x46.fsf@HIDDEN> <87o7k54ff6.fsf@HIDDEN> <83tttxzb08.fsf@HIDDEN> <83r0p1zatl.fsf@HIDDEN> <878rb94ahz.fsf@HIDDEN> <83bkg5banh.fsf@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1690083567; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SsmITEOMtAggqwUmnbkT5E+azRsYPPN9KX9nLoNPbBc=; b=kp1b9WBwGaUrhOG/wxzXjZySgmCRFIdUpK6tIzOhzEO2BseDHFqj8Zs6lChca6OIQ0cdmZ pXMvuP/9//50PayxUm7SwhLMud1B/cPXP1LqgpyzS2jVGOwol0PukPvy4Sm6KkdvEXycKL zxddJ6hfYV5ifjndzRyB3DLeqZYx8is= X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN and include these headers. From: Joseph Turner <joseph@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal numbers Date: Sat, 22 Jul 2023 20:36:16 -0700 In-reply-to: <83bkg5banh.fsf@HIDDEN> Message-ID: <87pm4j9tzm.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64739 Cc: 64739 <at> debbugs.gnu.org, Roland Winkler <winkler@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Eli Zaretskii <eliz@HIDDEN> writes: > By "its own function" I meant that we implement it in Emacs, not that > you implement it in your personal customizations. I see that the definition of number-at-point includes two magic regexps, one matching hex numbers and another matching decimal numbers. Would it make sense to move those regexps into defconsts, and then create a new function forward-number which uses those new constants? Joseph
bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.Received: (at 64739) by debbugs.gnu.org; 22 Jul 2023 00:23:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 21 20:23:35 2023 Received: from localhost ([127.0.0.1]:35049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qN0PH-0002VI-2j for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 20:23:35 -0400 Received: from mout.web.de ([212.227.17.12]:38697) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1qN0PC-0002V0-SM for 64739 <at> debbugs.gnu.org; Fri, 21 Jul 2023 20:23:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1689985403; x=1690590203; i=michael_heerdegen@HIDDEN; bh=yubS9s4IehuhjhK+nrJdKe80roRoDhEb3rvIZEoRy/E=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=ugS/xcq2vvf6ICRCJDddZILsjjm8CNdOp/KavyyjDWqs4ZRw/HnT4gq7K1NeSwMqJuwPWCn GOqyllmJ6zuPxN0z9IwUFXEI0tiiVsUYq9q5r63IAiNkTo4M7wI37Efc2KG6eu5OjTGjj23uL gM3sEoL2DQJXMvHF8b5HqbpsA+U3OgEF1FkBWCVP+cEY0PHdJTu4B4Hel7XojSKvaZCsvgAxF n51ase0x7d4MdynURLF2rsHPX14NTIQCfMhIJ6azxuK1q0zBsttHh5boWjL7zNvPCNFiPcz/X Nb1RlmXqyUEMRke1sDLImkfhXWvWLVbcLiom5PbrPRD9xNhWOtzw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([84.59.210.36]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1Ml4B4-1pe1bD2z7M-00lhvr; Sat, 22 Jul 2023 02:23:23 +0200 From: Michael Heerdegen <michael_heerdegen@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal numbers In-Reply-To: <83r0p1zatl.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 21 Jul 2023 15:52:06 +0300") References: <87cz0n6qvp.fsf@HIDDEN> <831qh33x46.fsf@HIDDEN> <87o7k54ff6.fsf@HIDDEN> <83tttxzb08.fsf@HIDDEN> <83r0p1zatl.fsf@HIDDEN> Date: Sat, 22 Jul 2023 02:23:22 +0200 Message-ID: <87wmysx091.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:FueM7kNAqPbbKpZZcl/U7WQo5611rxBTDy1AYoDOV/B0kBW1XX/ x/N/VQ+dDXnjakMDC5U9igjzH0OHXfd6/LwWlvQmLpntkFKATITxg4LncI6ko7ZE6e1s2ke qQBhXb55KR/IizfCIAjInodo2oDK0eC8OCMP2sAlAbY28SjGzogcjkLzcx4ouViwjEFYhqX yK5jzkoCG5B7tdD8CCv0A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:EjuNmP+S4sg=;ngA29N7G5RB/DEoABVUQ1tIyRjs GarV5QWhIrh5rGFIOTtl98HaIAkYss5TZ0oXmZ513mzuk9LsdrK5LC0BDrjZhNEDIZFVxeSGP hcP239f35Y3u7U/mrnBj0tJi1wV751XItutlPPHc202ub7OfCmIPYTl/JwuUfZzJK04SwEz4F UdARNok0P6AEgIXbDs71XhITsq91SVN3vjBX5kuPsnnc5wobM2OY0DfZqIrqdXmgYzQSw02Qh NT2f7LfLM5bfSYFX8uMm0LBXWQSfY+XcsqcAU0ykGRcD1MV/BkGHvBeQMkJ0p9H4sTUro9LIa hs+rXS+G4V/5codRuHK6yTDSGUosIicVEgECL5jfKVqytIRjgeB02uyAj17PiwYxGwUKwO/8S kcgMpRBq2HLo4pmcoBqLwmWtKPu6Pmauv5Z6+pRzCEfzdd2+RDGDThpBmDat72p9B/malTFiX fqMZRaLUj1zC0el3fy40fuKGL4PyDOThGd0pIvomFOHoEcK08ugvlcL/wzaTfVJsu4o411VzN ivmdgXyujwGRhOJxsD3dn8mFt3tkdhAlMODg9jZl+3VYXPUCXy0JdIp19ndVLekJXSZSSRdkx kp4WVnzfNfiT9hyN2Wzqfq185KDU4Q/VoMp4TN/u1O0gRtvr1urNnXsg+5P33TIbBxMX+Z8i/ INsytDt9oKdfVXo/LCNU2ev77NzdbnGYUAyQfhFsi+o8TujPaqpiwfq3v7SpoWHL3rALk2ZJ6 lptXWdzE7KFYGjgcdvcJNQ5fjMeMw8jTvBLjSJ6OcP0plFPmOPg41E2t+OWWHswAjZ+2qeZzj Yt4dsJlrNwfdvjZcwpQ60lg3KoBDYZDa0dt1XolPFAsRjLvMAEqVoGDEWATKuMUlLFgke9pQe WfYPYJ2mAn4avNhKxK9cTDGU+XujF15uDshs6zLOvTv8ZJRosnzBlW9f+3vji1jlVgxehrXxc ypZwEA== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64739 Cc: 64739 <at> debbugs.gnu.org, winkler@HIDDEN, joseph@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Eli Zaretskii <eliz@HIDDEN> writes: > > > On Thu, Jul 20 2023, Eli Zaretskii wrote: > > > >> forward-word doesn't seem to be the correct forward-op for number= s. > > > > > > > > That depends on the buffer's syntax table, though. > > > > > > I am frequently running into similar problems when I deal with numbe= rs, > > > but the syntax table is not designed for this. Would it make sense = if > > > (forward-thing 'number) temporarily used a customized synatx table? > > > > It should use its own function, if you ask me. forward-word is a > > kludge. > > To clarify: I meant that using forward-word in this case is a kludge. It had been added by Lars when fixing Bug#54555 "number is not an accepted value for THING in bounds-of-thing-at-point" last year. Probably just not being aware of this problem with the decimal point. So: yes, a klugde, it's too simple. Michael.
bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.Received: (at 64739) by debbugs.gnu.org; 21 Jul 2023 14:29:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 21 10:29:19 2023 Received: from localhost ([127.0.0.1]:34361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qMr8A-0003UL-VF for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 10:29:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qMr89-0003U9-6D for 64739 <at> debbugs.gnu.org; Fri, 21 Jul 2023 10:29:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qMr83-00073W-HZ; Fri, 21 Jul 2023 10:29:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=R74q7CYiVKolaPa2gYcnWZTcp926cTCnnvXwYoj1Yg4=; b=hKFXECVD55h4 xoZ8Zv8QLp/gH3tHFnKnJNX2/bG9aprkeAfRTcWBAz/mCWIjJc2mvT0qz9th6pOC03/RwcRZ+RWrA xfxgCFTImCOBhvwG79iQkCPDNVAT7eKmUAFx0J/fPvA+aOBdPbHCteSTkQQDakD/5dCZXf+pwJ8uG 5MiEQRmyzcF2v8LHoW/q3xgFvMSPBIkvPgEcdTWVnftJwj1rdsmf8TXlNtaOT0dqH8ZcKPoTq0N8R IW7Zh2Q02PO0tgT/OafUySy+ghswrkE44axMEQuv0L54wPE+/27P4BekFTdabARhifwKeAJoiUsjS KAKJwg+NhYlHRGC038+InA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qMr7u-0002hG-Sz; Fri, 21 Jul 2023 10:29:10 -0400 Date: Fri, 21 Jul 2023 17:29:38 +0300 Message-Id: <83bkg5banh.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Roland Winkler <winkler@HIDDEN> In-Reply-To: <878rb94ahz.fsf@HIDDEN> (message from Roland Winkler on Fri, 21 Jul 2023 09:14:48 -0500) Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal numbers References: <87cz0n6qvp.fsf@HIDDEN> <831qh33x46.fsf@HIDDEN> <87o7k54ff6.fsf@HIDDEN> <83tttxzb08.fsf@HIDDEN> <83r0p1zatl.fsf@HIDDEN> <878rb94ahz.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64739 Cc: 64739 <at> debbugs.gnu.org, joseph@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Roland Winkler <winkler@HIDDEN> > Cc: 64739 <at> debbugs.gnu.org, joseph@HIDDEN > Date: Fri, 21 Jul 2023 09:14:48 -0500 > > On Fri, Jul 21 2023, Eli Zaretskii wrote: > >> It should use its own function, if you ask me. forward-word is a > >> kludge. > > > > To clarify: I meant that using forward-word in this case is a kludge. > > I am not familiar with how forward-thing is implemented. A dedicated > function has been my personal solution for this problem that has been > serving me well for many years. So one can rephrase: How common a > problem is this that it may (not?) justify a solution in the standard > emacs code? By "its own function" I meant that we implement it in Emacs, not that you implement it in your personal customizations.
bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.Received: (at 64739) by debbugs.gnu.org; 21 Jul 2023 14:15:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 21 10:15:05 2023 Received: from localhost ([127.0.0.1]:34327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qMquP-00038I-EJ for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 10:15:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <winkler@HIDDEN>) id 1qMquL-00037R-K4 for 64739 <at> debbugs.gnu.org; Fri, 21 Jul 2023 10:15:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <winkler@HIDDEN>) id 1qMquF-0002b8-FY; Fri, 21 Jul 2023 10:14:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=QVv3mqMm5eBy68VLZxWbJWli635P0mv4JjTSrESCudc=; b=Oo1z4MTqu02aa0DfyZU8 BxY3+qiIe66KilADpwYixX55iefOJ6bdpJBicct3PcWRTr/pZ89cemlHYeL7tqNwgoeihXNQ5Nzmq mIgkV1O60k41Ox14Q6ArQTInr2y8eMTSjCmz7++qEAjR0+p+Q/iXOvdE/aBrx+qSXvsa2A72yRwOA R1m0ZEwZFslG+YfZrynYZeGtMZm9aofVZAx7xuk+NI1kM3uvLcH5naj4ScnlIB1AUHbKn38tNVeuo Thy0VjaOfHPBl5KuskIFg6HJYs2bp5wnUsghupkBOFPLgR4wGWVWBWV3YkhnCInWo3Laj59CykVKa 0OK3DdsEtpngTg==; Received: from [2600:1700:5650:f790::22] (helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <winkler@HIDDEN>) id 1qMquA-0008GV-19; Fri, 21 Jul 2023 10:14:51 -0400 From: Roland Winkler <winkler@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal numbers In-Reply-To: <83r0p1zatl.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 21 Jul 2023 15:52:06 +0300") References: <87cz0n6qvp.fsf@HIDDEN> <831qh33x46.fsf@HIDDEN> <87o7k54ff6.fsf@HIDDEN> <83tttxzb08.fsf@HIDDEN> <83r0p1zatl.fsf@HIDDEN> Date: Fri, 21 Jul 2023 09:14:48 -0500 Message-ID: <878rb94ahz.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64739 Cc: 64739 <at> debbugs.gnu.org, joseph@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) On Fri, Jul 21 2023, Eli Zaretskii wrote: >> It should use its own function, if you ask me. forward-word is a >> kludge. > > To clarify: I meant that using forward-word in this case is a kludge. I am not familiar with how forward-thing is implemented. A dedicated function has been my personal solution for this problem that has been serving me well for many years. So one can rephrase: How common a problem is this that it may (not?) justify a solution in the standard emacs code?
bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.Received: (at 64739) by debbugs.gnu.org; 21 Jul 2023 12:51:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 21 08:51:39 2023 Received: from localhost ([127.0.0.1]:60861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qMpbe-00005b-Kc for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 08:51:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qMpbc-000059-4q for 64739 <at> debbugs.gnu.org; Fri, 21 Jul 2023 08:51:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qMpbW-0006yl-Sy; Fri, 21 Jul 2023 08:51:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xdOGMhtbJzGV7+xwed2IpF59VFKLX0GYuh/+kW9jmnI=; b=TknpVzH1J7Y2 XedHlVVN+XTeHaO0tMMfMcZL5vjSisjrriNtJtTFaKgOSIjubREfuvp5fWxB77s3EUTSEPXjnlqQ/ 1DfqBIId2m9dmpFy0uPBrar5BK0FB8G+ARpy5BTCESJEZpUCN5FOBjvodIxidV+AAwNL3fw9dRTws QwmY4Po0TBlJRGE9O/89LAFBs2oroZdl1X+0L6+vLTBA0s7Hm3ut56yw7N5EMguFyWUQsN96VaDAS P7xbowXMeKEwwC2Oqlyhz5KLUIjOiUK+o4a3z1MEJaGbFKH9E3u+QBi/IcK+NKMJHtPz/QKXuDLci TImlPifzbNNtvV8YvcqHEw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qMpbW-00070r-Bl; Fri, 21 Jul 2023 08:51:30 -0400 Date: Fri, 21 Jul 2023 15:52:06 +0300 Message-Id: <83r0p1zatl.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: winkler@HIDDEN In-Reply-To: <83tttxzb08.fsf@HIDDEN> (message from Eli Zaretskii on Fri, 21 Jul 2023 15:48:07 +0300) Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal numbers References: <87cz0n6qvp.fsf@HIDDEN> <831qh33x46.fsf@HIDDEN> <87o7k54ff6.fsf@HIDDEN> <83tttxzb08.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64739 Cc: 64739 <at> debbugs.gnu.org, joseph@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 64739 <at> debbugs.gnu.org, joseph@HIDDEN > Date: Fri, 21 Jul 2023 15:48:07 +0300 > From: Eli Zaretskii <eliz@HIDDEN> > > > From: Roland Winkler <winkler@HIDDEN> > > Cc: Joseph Turner <joseph@HIDDEN>, 64739 <at> debbugs.gnu.org > > Date: Fri, 21 Jul 2023 07:28:29 -0500 > > > > On Thu, Jul 20 2023, Eli Zaretskii wrote: > > >> forward-word doesn't seem to be the correct forward-op for numbers. > > > > > > That depends on the buffer's syntax table, though. > > > > I am frequently running into similar problems when I deal with numbers, > > but the syntax table is not designed for this. Would it make sense if > > (forward-thing 'number) temporarily used a customized synatx table? > > It should use its own function, if you ask me. forward-word is a > kludge. To clarify: I meant that using forward-word in this case is a kludge.
bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.Received: (at 64739) by debbugs.gnu.org; 21 Jul 2023 12:47:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 21 08:47:39 2023 Received: from localhost ([127.0.0.1]:60856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qMpXm-0008LF-Qm for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 08:47:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qMpXk-0008Kw-SH for 64739 <at> debbugs.gnu.org; Fri, 21 Jul 2023 08:47:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qMpXf-0006FF-EM; Fri, 21 Jul 2023 08:47:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HJ8RJSPE+TiMPx5giOVne0lf9MAJo2wMybu6Gajx518=; b=Yg1Y3ZdSt57A yEOPxXu2tNGR0wgUflGZknSj8ywPizn73j1jwU+bGLeIpkEu+WK/4lm3NebgE0yksct/yQSuIioYC QSaERbcakXcC81e+fD/1NzSfZ1oWpHnXqeXlswpDDHeEhE/adOZb0lIJR8Icc/btiPxGynwlVe/rp 2G4xAkQE8J2Q0E4sBLSH+fLMKjhFYGFkYflIzg+SAzqggdWelfBRD9ZNbEPVC8ro+9kNceR6BbJ+E QMWxSQLUM+6t7BLSVhEl1O4GLlDAzm7toO6sCdnGGRFNzaGHpTuQCwh7EO5iqYdXe3CRg9669zmBe aBjaCwnhSlM76kr1jJyeQw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qMpXe-0006Wm-Gt; Fri, 21 Jul 2023 08:47:31 -0400 Date: Fri, 21 Jul 2023 15:48:07 +0300 Message-Id: <83tttxzb08.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Roland Winkler <winkler@HIDDEN> In-Reply-To: <87o7k54ff6.fsf@HIDDEN> (message from Roland Winkler on Fri, 21 Jul 2023 07:28:29 -0500) Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal numbers References: <87cz0n6qvp.fsf@HIDDEN> <831qh33x46.fsf@HIDDEN> <87o7k54ff6.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64739 Cc: 64739 <at> debbugs.gnu.org, joseph@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Roland Winkler <winkler@HIDDEN> > Cc: Joseph Turner <joseph@HIDDEN>, 64739 <at> debbugs.gnu.org > Date: Fri, 21 Jul 2023 07:28:29 -0500 > > On Thu, Jul 20 2023, Eli Zaretskii wrote: > >> forward-word doesn't seem to be the correct forward-op for numbers. > > > > That depends on the buffer's syntax table, though. > > I am frequently running into similar problems when I deal with numbers, > but the syntax table is not designed for this. Would it make sense if > (forward-thing 'number) temporarily used a customized synatx table? It should use its own function, if you ask me. forward-word is a kludge.
bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.Received: (at 64739) by debbugs.gnu.org; 21 Jul 2023 12:28:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 21 08:28:38 2023 Received: from localhost ([127.0.0.1]:60809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qMpFO-0007o6-JK for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 08:28:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <winkler@HIDDEN>) id 1qMpFL-0007ns-GU for 64739 <at> debbugs.gnu.org; Fri, 21 Jul 2023 08:28:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <winkler@HIDDEN>) id 1qMpFG-0001DH-2a; Fri, 21 Jul 2023 08:28:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=9odZXQ6BYu/EtxPigFYyUJQahUMReHIhOaf54qdk8hA=; b=a4f5DYjgZ9ujeyOdySDe fdzPj2D4c5VX/i+J3SqX1SsGzTi6+UrhAaMvxZelHWtJGmqVGwfe90lg7FzfgoP6lekybOu3mrPd8 eGh4z9MTVpzdu2PfUi/dqYv6qpD8fZedBkkCwLX84AKgxmxLI2+bTfm7Pb5DZIcGRlzR2RZ9e7UvI eQdvpGO3JoNDRNEh+xOWuOP2i3uNFTnMIvsNz0+hfPHxLh75RTa+y++d+8dakf8LU5hd9hOISzIJD zcDJ4gpgiMr6g0GQiXJ1zbULv5pX540D60Y1etTyGrMK/159Ewa4hqvEt0VcRW4TQLO9Rbo7xXnWS +9xH6B/vNescuQ==; Received: from [2600:1700:5650:f790::22] (helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <winkler@HIDDEN>) id 1qMpFF-0001wp-OW; Fri, 21 Jul 2023 08:28:29 -0400 From: Roland Winkler <winkler@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal numbers In-Reply-To: <831qh33x46.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 20 Jul 2023 09:39:21 +0300") References: <87cz0n6qvp.fsf@HIDDEN> <831qh33x46.fsf@HIDDEN> Date: Fri, 21 Jul 2023 07:28:29 -0500 Message-ID: <87o7k54ff6.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64739 Cc: 64739 <at> debbugs.gnu.org, Joseph Turner <joseph@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) On Thu, Jul 20 2023, Eli Zaretskii wrote: >> forward-word doesn't seem to be the correct forward-op for numbers. > > That depends on the buffer's syntax table, though. I am frequently running into similar problems when I deal with numbers, but the syntax table is not designed for this. Would it make sense if (forward-thing 'number) temporarily used a customized synatx table?
bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.Received: (at 64739) by debbugs.gnu.org; 20 Jul 2023 06:39:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 20 02:39:02 2023 Received: from localhost ([127.0.0.1]:57560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qMNJW-0003Oj-2k for submit <at> debbugs.gnu.org; Thu, 20 Jul 2023 02:39:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qMNJT-0003OE-Pb for 64739 <at> debbugs.gnu.org; Thu, 20 Jul 2023 02:39:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qMNJL-00050P-S1; Thu, 20 Jul 2023 02:38:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=3PES0xGjrmdQtFaMee5ks+EHFf/SgVq9rf15ax8AbG4=; b=WZpvm8gm5QKkeC0G6sD4 VfGOGO75y4rIGnI0l1c2ek40eq4ljBp7fQIc7gM75fjqF1mq3lOGBBZ8n32Cdgfu6X+o41VJTKYlZ UX4fdt6gFGokUKb3RDaUEl+YoXoa2hpnfftX8JATgoX7ZKbqzKipoERjUSLFt+fz4wwVE835oYsx1 +4VrZoDD8jv8XX+rHFQnvAYoYktwzdg+Gp6/ChvtCz3punUQzk6abvSgm87ClqSpmK4J73FiabAH7 mU8P6ApMl0JiU4eGaUhDHAjm8fbwKrS9XW2YYDR4L74a+MN+wBJDEHhWoXjJjGkO4Djm4etWC7sQZ ECPf7+DgB5taSw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qMNJH-0003vm-RL; Thu, 20 Jul 2023 02:38:50 -0400 Date: Thu, 20 Jul 2023 09:39:21 +0300 Message-Id: <831qh33x46.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Joseph Turner <joseph@HIDDEN> In-Reply-To: <87cz0n6qvp.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#64739: (forward-thing 'number) doesn't work with decimal numbers References: <87cz0n6qvp.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64739 Cc: 64739 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Wed, 19 Jul 2023 23:19:27 -0700 > From: Joseph Turner via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > Hello, > > Given the following number with point at ★: > > ★12.34 > > number-at-point correctly returns "12.34". > > However,(forward-thing 'number) puts point just before the period: > > 12★.34 > > while I'd expect: > > 12.34★ > > (get 'number 'forward-op) > ⇒ forward-word > > forward-word doesn't seem to be the correct forward-op for numbers. That depends on the buffer's syntax table, though.
bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 20 Jul 2023 06:26:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 20 02:26:22 2023 Received: from localhost ([127.0.0.1]:57548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qMN7D-00032k-Dd for submit <at> debbugs.gnu.org; Thu, 20 Jul 2023 02:26:22 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <joseph@HIDDEN>) id 1qMN77-00032M-HT for submit <at> debbugs.gnu.org; Thu, 20 Jul 2023 02:26:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <joseph@HIDDEN>) id 1qMN6w-0000F1-2m for bug-gnu-emacs@HIDDEN; Thu, 20 Jul 2023 02:26:04 -0400 Received: from out-15.mta1.migadu.com ([2001:41d0:203:375::f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <joseph@HIDDEN>) id 1qMN6t-0001Qt-QG for bug-gnu-emacs@HIDDEN; Thu, 20 Jul 2023 02:26:01 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1689834349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/EcJW/C0z2t5KIb0dLQHd/SmkYxdk60ioOdWsCKt40o=; b=gqFDwFYBD3c6QVxZncVGf2N2bCCN+cUpU0JVBAB8PUD9Nrbsu4PbjSz42+j4jv+pJIywgw fcJO7JD1U+AFbJDSQCwp9vHCFLexA4rTGtdZZxel2u/YEPCN28IaWIo5cv0IEzP8KF1izP L0VcTw5THWOo9gfkUONTv8NR2+EMOzU= From: Joseph Turner <joseph@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: (forward-thing 'number) doesn't work with decimal numbers Date: Wed, 19 Jul 2023 23:19:27 -0700 Message-ID: <87cz0n6qvp.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:203:375::f; envelope-from=joseph@HIDDEN; helo=out-15.mta1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.1 (/) Hello, Given the following number with point at =E2=98=85: =E2=98=8512.34 number-at-point correctly returns "12.34". However,(forward-thing 'number) puts point just before the period: 12=E2=98=85.34 while I'd expect: 12.34=E2=98=85 (get 'number 'forward-op) =E2=87=92 forward-word forward-word doesn't seem to be the correct forward-op for numbers. Joseph
Joseph Turner <joseph@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#64739
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.