From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Prefix Argument and optional argument Date: Thu, 7 Jul 2022 16:03:37 +0200 Message-ID: References: <87h73t5gyi.fsf@web.de> <878rp5f7vh.fsf@dataswamp.org> <871qux5dbs.fsf@web.de> <87sfndkrso.fsf@web.de> <87ilo9kpdl.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19632"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 07 16:04:50 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 1o9S7e-0004uh-KX for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 16:04:50 +0200 Original-Received: from localhost ([::1]:59820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9S7d-0005gd-9y for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 10:04:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9S6X-0005ck-9g for help-gnu-emacs@gnu.org; Thu, 07 Jul 2022 10:03:41 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:37929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9S6V-0006Vx-E9 for help-gnu-emacs@gnu.org; Thu, 07 Jul 2022 10:03:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1657202617; bh=N3H6ubGJBmTiyh4B1RWVUKesqOIPrdos1o++WfzoQNw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=AZWFx7Qc9V2QKnnhxogxrwwwlDu9JxAn+lj2TXQc9QfTw5TcQQ/Po+U3VsYU3preh rowgXAhQQyQD2P0r5ZCtLL3Zc7mz43PZzpI+MzVzQhknGIkvkJ3G0/rA3g138f84wf 4O4EU7FVmP7yy/ovbfu8xk6nOOpIAq9eNWY0hUzM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [92.251.127.164] ([92.251.127.164]) by web-mail.gmx.net (3c-app-mailcom-bs15.server.lan [172.19.170.183]) (via HTTP); Thu, 7 Jul 2022 16:03:37 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87ilo9kpdl.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:nupTq8dFsDXnDOQz5Fv74Amarw8tCYwZMnO68uV/mlp8PpPvLVR9w9pZqOCNkCNGXzjrE uovDEyBSIZOKXpDkc41aU/FyoYveZQJe5ryw75SkiuPETdzti+I/8Q+FANWCbClXSXSEk2lyvoMG Ut8bdIGfoFP7adrzpCWtAnDbmCuXuDwIcd9xf/PoZntHqvnBmfTS+FDcL39hMjcTC4Mw8ay6w4JY HV/dc1J/Zcrg1yWo6C5Fcsv6F3wTdjLfqd+nrdJ1opgX4r2r2Ws4WRc8gGOIjSpe4qRkjvPe9+ST s8= X-UI-Out-Filterresults: notjunk:1;V03:K0:kaQ0CC9GxQw=:LA/P8/D6H4n8gLNHxICJfA Y5HntOmMFv/vBQy6rju/AI6zBMfc8gO62lISBbOUPnqOCqEtRvEfm8X/3s4ZGkkin+HWlXNhE kLYJqeoMvfxvf+V0cXfeO8ii2h0HMuiDUCxPPaIvWv0W6wSEdsFTcdDLW8Tyf9xjQBs3L5E1H 1YOINhNK37jhruY/C3ZNC7M+PwRlVaWIN+dSLCR8NwU3WcY0Q+NOjyWZ7nFlzpfYZ4feTqUXu gZsGAS6vhM/pZHdpFrYMCSjATJIMQFsGPMMC8W2Cu6cA+NTBqZVc5RRaZXyvFTKaGDs7r/jRn PKE0XQHfSYvehBwAjY9bmnO3mJWBWOH7Ed6K5eVNgJ598aFZyjHWUDZjrIe4Xjx1o4jBwThBa CGPPDATgqTDkfFPLY3rxhn12tRpNXB8pGmLLqs/uZ53anj5uhGpyFgWXrZBdDe89rAKnKUpLe TQF1InLXsXGE+8ZW+/kaEsQrKkehSyS4bx9B5EbOc6Zbh1Cm/kLWFNpHBT8NzU/wVm7QNh5EP LwMLRlxnQ8TC0abfSvNe85vVGNoGAA7foNiAzT/W+LDJw7cy2bygWHSRJ+QqF6O2IQP3Ttk13 SDqxNauYR1LpvbmnmLb6pAvAXkoG7vXhh6jQI25ER/3mMEVIdsQa1MQgTEtZvjOk+nUGWjWau qg7Amys/dALRbdetBACfMXeGVoqRXfCsSDvgAw5fiWOLuVorpffAvSEX9O8pSy2Pw1Zt/NJGm xAIkar1h5IJTLAveZyROxijaxuYQJHxgKAkhPMX1HYeGmh1d5s9XsReNAdMEkaCXec5+Bt4f Received-SPF: pass client-ip=212.227.15.18; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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-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:138350 Archived-At: > Sent: Friday, July 08, 2022 at 1:45 AM > From: "Michael Heerdegen" > To: "Christopher Dimech" > Cc: help-gnu-emacs@gnu=2Eorg > Subject: Re: Prefix Argument and optional argument > > Christopher Dimech writes: >=20 > > Have recently seen that compiling > > > > (defun poke (prefix) > > "TODO=2E" > > (interactive "P") > > =2E=2E=2E) > > > > gives=20 > > > > Warning: misplaced interactive spec: =E2=80=98(interactive P)=E2=80=99 >=20 > If the order docstring + interactive spec is correct (as above), that > only happens here when the function body is empty (i=2Ee=2E nothing foll= ows > the interactive spec)=2E Did that happen in other cases - do you have a= n > example? Right=2E I only took the example and compiled it=2E =20 > > Is this associated with trying to call the function non-interactively > > or because the prefix (C-u) is not always used when running the functi= on > > interactively? >=20 > No=2E >=20 > Michael=2E It is only because body is empty then, right?