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 21:19:43 +0200 Message-ID: References: <87h73t5gyi.fsf@web.de> <878rp5f7vh.fsf@dataswamp.org> <871qux5dbs.fsf@web.de> <87sfndkrso.fsf@web.de> <874jztez2d.fsf@dataswamp.org> 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="31336"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 07 21:20:36 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 1o9X3D-00080T-LL for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 21:20:35 +0200 Original-Received: from localhost ([::1]:35718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9X3C-00034j-7R for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 15:20:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9X2S-00034W-B6 for help-gnu-emacs@gnu.org; Thu, 07 Jul 2022 15:19:48 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:53179) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9X2Q-00026R-Dn for help-gnu-emacs@gnu.org; Thu, 07 Jul 2022 15:19:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1657221583; bh=cssp6biOBguzWudj7A6KWB/e6/AbhSMfwsMv8IQNgcU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=f4qKgrirnyUCEJ1YgBQmkBWYOkYmWMTOCltXrSO/aevyQ1nX+XaPXiFZP5ZI8r6RZ 3Zwq+6iJcp6tTV2YO+UPRT4341ryfBdaeF+EtX00cOWu4m6TgdQZtqq+5jlKYnML7I rf4/y6cmPSG5UMkox3vQQRu93My7FQqo6qcrnB/4= 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 21:19:43 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <874jztez2d.fsf@dataswamp.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:Z3mE2X8QZ1QbXCggaaq+M34eDQFHATKvCZLAloci1uo6/xPcG0uobfKZADodjIKFcinGn syaDqiZnuWq7uDNHZM4l8fBClFffjm8YxkG7xxWSHB28TMpXOmxbFLdPdciZBPZ0+VIJt5jvPdXI dPdFKzbYsFXXwcgIYRMQ0xUqMPKpOveRJQn2oYO2wG6NdYWE7q/39HwGsy1494kQ1opF+I1SEK5P q6JgAVC7vCNedXi7wOMy2s2pcbJ6n+AbsQ+7xCJHUsbQ0UEijlvwGxwqfVE3RJgPiqLKzyAUucnD +s= X-UI-Out-Filterresults: notjunk:1;V03:K0:TH7LKZrPz9M=:/ZIM9K7prz6b6UffXXmKjh zqLKz4CDaPTtIrBPU8D0isGJPNfAotcXpHSjINLe3hVLRdAIbemPcDMW/x+1zY3+R0SETYqBS +amPUa1f5GJ3bn0q4MLdvotHbUpKmiIx92nYzROLfJ6TmNPyhHigIAA6tU9Kc3fKCpuuYtSfA Sg+PPafA9UQ4A99KBInWRuMHcgmH2ABQfqmSgT5XjvBRkSuH+gmrvvNba4BNM0O3bIxlMU1J1 mmEpccoPOUJgXX29vhAmYOq7T315RGuC1qekkLBvNZiLnD2r1R7gikmOIO6dpVT+ehYJgN4h/ Z6CNa5LyawZukCc6lEruLw3DOsandrtJxIstQDpAzakvx/hW4FKyejxt7hceBt/d8Za7Ul6o6 xhqAG8j6gVokKoiOVPzGG0IL5/1rb2xAKQVrerFCRES+q795UWw6rwU1zVlugj5Npdpmx8TWM kncPYY1x1UFj2zvlQvd3q3s67XDDHeDX5WRShc3b//I910mTYMBIS/enStecjhNV6SbKxZC2y Jxz88m2F0EQYE5wC0fsiT2LsFvyi+lPBD5ilFoPv7PniqZB7KkQgcwjITkSzPSiB5EiR77thd Liq0+8ExwqnkMgkomESoRgE3jXC2mS11vKQ989ltUNs9toiRQMej9JPV8sKdW6zFNIYmmCC5d /sye6oiOQWNCXek7aAZ+Q/i7OsIdPQTpWWQqwB+Ji706pjbaJ6ZQwN6P8eQhoIy9qCGZZL9Mh 8UbGaFnvd9VIbgCr3QuQw2xs/frTaCE+8/5eCxrKp8PYOL89VwqlffIN7QFszTikrCPcfwKz 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:138364 Archived-At: > Sent: Friday, July 08, 2022 at 3:12 AM > From: "Emanuel Berg" > To: help-gnu-emacs@gnu=2Eorg > Subject: Re: Prefix Argument and optional argument > > Stefan Monnier via Users list for the GNU Emacs text editor wrote: >=20 > >> (defun poke (prefix) > >> "TODO=2E" > >> (interactive "P") > >> =2E=2E=2E) > >> > >> gives=20 > >> > >> Warning: misplaced interactive spec: =E2=80=98(interactive P)=E2=80= =99 > > > > I don't get this warning here=2E Instead I get two arnings, > > one about the fact that `prefix` is not used, and the other > > about the fact that `=2E=2E=2E` is not a known variable=2E >=20 > Do >=20 > C-u M-x checkdoc-current-buffer RET >=20 > and learn that it also has a docstring problem: >=20 > Argument =E2=80=98prefix=E2=80=99 should appear (as PREFIX) in the doc > string >=20 > At the stage when it does nothing, it seems 'poke' has so many > problems already! Don't poke! ;) =20 > I also don't get any warnings but the ones you mention, >=20 > Warning: Unused lexical argument `prefix' > Warning: reference to free variable =E2=80=98=2E=2E=2E=E2=80=99 >=20 > and that's on >=20 > GNU Emacs 29=2E0=2E50 (build 1, x86_64-pc-linux-gnu, GTK+ > Version 3=2E24=2E24, cairo version 1=2E16=2E0) of 2022-05-28 > [commit 707124d2b92780b4f21d72c7c62899e074fa8ced] >=20 > (Love the 'ever' command BTW, > https://dataswamp=2Eorg/~incal/emacs-init/meta=2Eel ) >=20 > --=20 > underground experts united > https://dataswamp=2Eorg/~incal >=20 >=20 >