From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Prefix Argument and optional argument Date: Thu, 07 Jul 2022 15:45:42 +0200 Message-ID: <87ilo9kpdl.fsf@web.de> References: <87h73t5gyi.fsf@web.de> <878rp5f7vh.fsf@dataswamp.org> <871qux5dbs.fsf@web.de> <87sfndkrso.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="4175"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 07 15:46: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 1o9RqD-0000r3-SF for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 15:46:49 +0200 Original-Received: from localhost ([::1]:49148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9RqC-0004ff-NA for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 09:46:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9RpE-0004fD-Pu for help-gnu-emacs@gnu.org; Thu, 07 Jul 2022 09:45:48 -0400 Original-Received: from mout.web.de ([212.227.15.4]:56715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9RpB-0002Ta-Qt for help-gnu-emacs@gnu.org; Thu, 07 Jul 2022 09:45:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1657201543; bh=dNSQUfcY0MB/ZYwSuaKP1miiy7ZJBzEkeBP/S3ARlw8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=kWBjYt9S60qgW1RHYoCrdVKUy2E9AfwzOoe32AHky1C06sCmLOFELg/Upo4lkyuK6 HnECLMCgBaSz/qZf69onPvEM4fmXIxnkU2Ro8D7xXYIWl1WlBBNRhIt2Lk0Gc6uHBN H5EBFN4kPg65Na4aCkMxlaLSWgOU/3i6R2ikQzWA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.59.210.236]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1Mi4yz-1nenqA2cfR-00dx6J; Thu, 07 Jul 2022 15:45:43 +0200 In-Reply-To: (Christopher Dimech's message of "Thu, 7 Jul 2022 15:15:01 +0200") X-Provags-ID: V03:K1:aFsr1+9iZRFdO8gVK05KntZ7HoKV5c78v8layKHQ8VXO0+enn+6 c9dTrogBhMUfBcqxomAzNLvWncL81uxBzRegSstiVDgRHtBBd42Vdd6gTWMC3hlGMWF4NPM ZE1gcA6ndTX+/fuz/ljFMIoQI1XQo3NV94ib0r7tKXKmkplON5hAdGSHrPKAmgdq9+Ujtz7 nHq8X1edWO8QQ7VIkF5Mg== X-UI-Out-Filterresults: notjunk:1;V03:K0:n+2fd4hJWmw=:tE+SVM/Iulg+rUfr1vCRz0 fheftfuS8fQzaYaHg2kbKYDApbcqVYPQ6LAcgLi67EHYFnyltVhvr49+Z5L/glD/3bcJ38/er 7RwY1kqH20L8+aqywBtCHA8stGfd35sP6Yw9qzGp+mxjnebu6F5AKaVQoJUQXsGLIYgf1zsyG GZRak6uFPGYjM8qZ92FadhHnj8i6sSQ0Q4c5Fmn4hymCwRnY513XlU/yAq4wympvze3VEzSIj qWrvZbuvfDFtxP2dfyJeF2pDBEDuDmERnNRwRle5Iatzp3d0jydpiQC11ntoVn38iz3utsJDZ pn+nDNhjw9JqM3MP/noOkfxoPJOMyJobNOjbKsqueVdGEgkqGgGpMuSpwgzDdTKnME7iQp5YL zFbrZcOJ5zbTGFKLtfgbAfopDm+k/WZGRgpsQJGvO/SE8E4qbdc+ZF1eAoFivhRABV6QYgeYX 0u3dn3Ak31Gh1DDhYcaGg1KWBJEMYwkyCLTxcBR0orliLONrrKLWi+xcNmWOnG0q0hoQrC55f ZfmzymvxrdPrlCs6nBF+K29VLaib22a8cmGFVCPJ/JkpmAhRUthIGMUKJGBk/+AsRJLDtCJNK wBr9L9XDCYuZ0Nu8tL4u/Kmh6Fk4WXcl3IDkKp1ahIL2cgeXbBPH/qwaWsUIx+peuM1C5T5dS Ia71dQeIBaHIVXzf2KQ5GwrysKcw8u7itdIhRrCR0nbG3GoL2/RGgyJiqjRlERnwZ4s57nSWN vbBeV7wugykqRZYJzvrc9Us0nQrIWBf+fzqyWb0+vPBf4lo6flW+tLiaZE9CEqidtN75GgJ1 Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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:138349 Archived-At: Christopher Dimech writes: > Have recently seen that compiling > > (defun poke (prefix) > "TODO." > (interactive "P") > ...) > > gives=20 > > Warning: misplaced interactive spec: =E2=80=98(interactive P)=E2=80=99 If the order docstring + interactive spec is correct (as above), that only happens here when the function body is empty (i.e. nothing follows the interactive spec). Did that happen in other cases - do you have an example? > Is this associated with trying to call the function non-interactively > or because the prefix (C-u) is not always used when running the function > interactively? No. Michael.