From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: interactive spec with reasonable numbers for c-u Date: Mon, 19 Sep 2022 09:10:29 +0200 Message-ID: <87tu53yh3u.fsf@dataswamp.org> References: <83y1uufmhl.fsf@gnu.org> <87leqtte13.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22265"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:FJwbGfu4FA+EdeYbl9t/jElub84= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 22 15:12:38 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 1obM0L-0005eR-NL for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 15:12:37 +0200 Original-Received: from localhost ([::1]:43516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obM0J-0008DK-3a for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Sep 2022 09:12:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaAvR-0002aE-RG for help-gnu-emacs@gnu.org; Mon, 19 Sep 2022 03:10:41 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:35614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaAvP-0006ep-Up for help-gnu-emacs@gnu.org; Mon, 19 Sep 2022 03:10:41 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oaAvN-0007xh-8w for help-gnu-emacs@gnu.org; Mon, 19 Sep 2022 09:10:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: (Samuel Wales's message of "Fri, 9 Sep 2022 19:41:35 -0700") Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 22 Sep 2022 08:41:45 -0400 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:139600 Archived-At: Samuel Wales wrote: > example of old ny code that sets prefix acc number Maybe it's 4 because with 1, 2, 3 ... and even 2, 4, 8 ... it doesn't happen quickly enough to move thru stuff and move point around a buffer. For 2, you might as well hit the ordinary key well - two times! which is probably as fast or faster. So maybe here Emacs is just (an awesome) text editor? As for setting it to whatever as you do in your code, I don't see how it matters what it is based on as long as it isn't the same for different inputs? You check and set to something else anyway. It would be interesting to hear the historical background ... Maybe it's in the document "Evolution of Emacs Lisp" but not necessarily since it can maybe be considered just an implementation detail, important as it may, but from the Elisp (a programming language, specifically a Lisp dialect) perspective I mean. There is also a history on Lisp including hardware. Is there a history of Emacs or better yet, Emacs-like editors? Maybe the 4 was there before Emacs. I had URLs to these documents - and more - and also PDFs on my HDD but unfortunately all was lost when the conapt was disintegrated during the events now associated with the finalization of the Jenova project ... > (interactive "p") > (message "%s arg" arg) > ;; no arg -- add region or word to private alist and run > ;; c-u -- same with extra > ;; c-u c-u -- CLEAR the private alist > ;; c-u c-u c-u -- UPDATE the private string or set it to empty > (setq prefix > (or (and (= arg 1) 'usual) > (and (= arg 4) 'extra) > (and (= arg 16) 'clear) > (and (= arg 64) 'update))) > (message "%s prefix" prefix) That code can be improved, but if you'd care to include the whole function first ... -- underground experts united https://dataswamp.org/~incal