From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61549: 30.0.50; [PATCH] New keyboard macro counter functions Date: Sun, 19 Feb 2023 08:54:34 +0200 Message-ID: <83fsb2xhzp.fsf@gnu.org> References: <83sff41zgm.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26946"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, monnier@iro.umontreal.ca, 61549@debbugs.gnu.org To: Alex Bochannek Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 19 07:55:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pTdbV-0006qk-2n for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Feb 2023 07:55:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTdbI-0003NP-5j; Sun, 19 Feb 2023 01:55:08 -0500 Original-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 ) id 1pTdbE-0003NE-8x for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 01:55:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTdbC-0000Xn-EC for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 01:55:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTdbC-0001ZT-9u for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 01:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Feb 2023 06:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 61549-submit@debbugs.gnu.org id=B61549.16767896795995 (code B ref 61549); Sun, 19 Feb 2023 06:55:02 +0000 Original-Received: (at 61549) by debbugs.gnu.org; 19 Feb 2023 06:54:39 +0000 Original-Received: from localhost ([127.0.0.1]:45518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTdap-0001Yd-1F for submit@debbugs.gnu.org; Sun, 19 Feb 2023 01:54:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTdam-0001YN-FW for 61549@debbugs.gnu.org; Sun, 19 Feb 2023 01:54:37 -0500 Original-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 ) id 1pTdaf-0000WV-Vd; Sun, 19 Feb 2023 01:54:29 -0500 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=cWYT632w7IWvQ1byClzrfK3niYeArufGQWvxDVkjctA=; b=MUxBmh4VUGjH ZX1vOCW2AeOYyAmolLAIqs+d3Uk+rL8c//0XitOrdVlU3dBysAX0+guUCNFrhiO9AtxXsTHsi4khZ aiU17ZByIy9J3SQmscopFXN9LRnG5TYMSF/trH1jelWRyhx1ecSGOrCTLFzYyCJLoZK/UjFDJ3oy/ 7rnE16AhLZPce+PYLL0eIlOmHDnwS+L5NqF5dqrXmoXbGxNAr3flEgiY1x+MSST3wv+c24+oLTVoT SaZVmHaVMbX1ytx2tX2o4JMlFdMknyVPB72hoOB+WVGx2XJRdnPv36TvSWBEpvHr4wzCnAbHDZc3i WbYSlo3AiuHwYyM0mdJ47Q==; Original-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 ) id 1pTdaf-0001BG-AH; Sun, 19 Feb 2023 01:54:29 -0500 In-Reply-To: (message from Alex Bochannek on Sat, 18 Feb 2023 17:59:15 -0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256030 Archived-At: > From: Alex Bochannek > Cc: Stefan Monnier , Lars Ingebrigtsen > , 61549@debbugs.gnu.org > Date: Sat, 18 Feb 2023 17:59:15 -0800 > > >> + (let ((arg > >> + (cond ((or (consp arg) (null arg)) 0) > >> + ((eq '- arg) -1) > >> + (t arg)))) > > > > This seems to imply that ARG has meaning beyond what the above text > > says. > > I was struggling a bit with this one. On the one hand, I wanted the raw > prefix because I didn't want `C-u' to turn into 4, on the other hand, I > still wanted to let `C-u -' be interpreted as -1. Is there a better way > to do this? Why do you want C-u to be equivalent to "C-u 0"? That's inconsistent, and you already provide an easy way of supplying zero: by using no prefix argument at all. In any case, what I meant was that the processing is incompletely described by the documentation. And the documentation about the effect of the prefix argument should be in the doc strings of the commands, not in the doc string of this function, which is not intended for interactive use.