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.help Subject: Re: interactive spec with reasonable numbers for c-u Date: Thu, 08 Sep 2022 08:45:10 +0300 Message-ID: <83y1uufmhl.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3445"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 08 07:51:37 2022 Return-path: Envelope-to: geh-help-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 1oWARr-0000mX-0l for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 07:51:35 +0200 Original-Received: from localhost ([::1]:51762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWARq-0007B1-3X for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 01:51:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWALv-0003lX-L1 for help-gnu-emacs@gnu.org; Thu, 08 Sep 2022 01:45:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54528) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWALv-0002L5-CS for help-gnu-emacs@gnu.org; Thu, 08 Sep 2022 01:45:27 -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=Nc9SJ7KK4MAIDUSm4DOQ0Bt3lOCawiE97EuorTmjIZ8=; b=Ztq5XL2drJrX Toy52MdwwVAdmQ2q03MeRVojEvIj6BWS1paAxBPOQI/0OhccnXT4xe2CvJXpGXTsXckLsxp0ebQNu gbx3pGBhfXcbeRdtph2BU36mfbqcYbvcPz7Z6lRtnrx565/Zq0GinopfCWvCFUujdxEFSK6jNuZL6 694OMdOA2FyWqdDy/y2RadLBkqFWrZowkGUBrWhpmLBQ//R9yGt67HboHEAi1ruUJrHGoSdLD7xMI hGZLC4cHv3WUr1cJoAq3kRpUVXtLssLYyfU+wJHstwPMYFOw4fNrAw+BQ8rQ5xA3J+RntYLd/1r3z NloqovjuSzmXyoQ4X/HjAw==; Original-Received: from [87.69.77.57] (port=3045 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 1oWALs-0007v6-JY for help-gnu-emacs@gnu.org; Thu, 08 Sep 2022 01:45:25 -0400 In-Reply-To: (message from Samuel Wales on Wed, 7 Sep 2022 17:47:29 -0700) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139319 Archived-At: [Please don't cross-post to both help-gnu-emacs and emacs-devel.] > From: Samuel Wales > Date: Wed, 7 Sep 2022 17:47:29 -0700 > > not on these lists. > > some commands use c-u a few times, and the code does some stuff with > interactive p or P that works with base 4 artithmetic and navigation > commands. > > e.g. you will get number slike 1 for c-u, then 4 for c-u c-u. > > or you will get a list with base 4 artithmetic. > > then the programmer uses those to make a decision of what the command > should do. iirc (64) i ssomething like c-u c-u c-u. > > our bodies are constructed and maintained by base 4 arithmentic. it > is great stuff. but i think programmers migh want things like 1, 2, 3 > for, respectively, c-u, c-u c-u. so, idk, if a number really is > provided, then it an be in a list. > > but most of the time i am not talking about entering a number using m- > or using c-u, but merely going c-u c-u c-u m-x .... > so i was wondering if there exists an interactie spec that returns 0 1 > 2 3 for the number of c-u gien to the command. How about using (log N 4), where N is what you get from the prefix, i.e. 4, 16, 64, etc.?