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.devel Subject: Re: how to speed up Lisp devel time Date: Fri, 09 Aug 2024 21:00:30 +0300 Message-ID: <8634ndlgox.fsf@gnu.org> References: <87y156413v.fsf@dataswamp.org> <86sevekvjy.fsf@gnu.org> <87v80a402y.fsf@dataswamp.org> <86ikwakmdg.fsf@gnu.org> <87frre3pxa.fsf@dataswamp.org> <86ed6xlx9r.fsf@gnu.org> <87a5hl4x9b.fsf@dataswamp.org> <87ttft3byp.fsf@dataswamp.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22814"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Emanuel Berg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 09 20:01:20 2024 Return-path: Envelope-to: ged-emacs-devel@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 1scTvS-0005fm-Si for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Aug 2024 20:01:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scTul-0007oy-Cc; Fri, 09 Aug 2024 14:00:35 -0400 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 1scTuk-0007oo-D2 for emacs-devel@gnu.org; Fri, 09 Aug 2024 14:00:34 -0400 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 1scTuj-0006Iw-ET; Fri, 09 Aug 2024 14:00:33 -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=rnUKDSif6lRCeWaOweZyYxzHFa0/SVFS+D6km/houa4=; b=SfETchmh78zO sVuCB06Oh9lr/nZdnKzsWxwnqZC/JYryYVihSARvTyv+zuhYQf1o/xUchq2gdWJVKJWn/EjAuCKb9 M2bEjuppNf/R67AikD20iBGaZ4bJW5JReQ2rJYK/tXaImWS9LQzphdCQ6Vw49dPVVovskzc319Lvu P+tjC/bolxooiRqMPZSHuu6UmmN1RVsNKcjydfX70Ya1CmjPl5bDry5VpchHMNbREl/2W17zb4mTx s9LL9HI2s/kxyMEjanuXf72n9FFsWJkqxVfIue8O5qdZo4WPfCu4FGK1QRQONRI3bFSjyfVAlmwtg R6e3z711PVpN5OCZOl2/cA==; In-Reply-To: <87ttft3byp.fsf@dataswamp.org> (message from Emanuel Berg on Fri, 09 Aug 2024 18:19:58 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322586 Archived-At: > From: Emanuel Berg > Date: Fri, 09 Aug 2024 18:19:58 +0200 > > (defun draw-scale (&optional end step i) > (interactive (if (numberp current-prefix-arg) > (list current-prefix-arg) > current-prefix-arg)) Using "p" doesn't prevent you from testing the value of current-prefix-arg, if that is what you want to do. But in general, having commands with more than one optional argument (two when the command acts on a region) is not recommended, because it complicates the interactive usage.