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: docstrings (was: Prefix Argument and optional argument) Date: Thu, 7 Jul 2022 19:48:34 +0200 Message-ID: References: <87h73t5gyi.fsf@web.de> <878rp5f7vh.fsf@dataswamp.org> <871qux5dbs.fsf@web.de> <87sfndkrso.fsf@web.de> <87ilo9kpdl.fsf@web.de> <87o7y0etyb.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="19663"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emanuel Berg , 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 19:49: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 1o9VdA-0004xj-Fz for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 19:49:36 +0200 Original-Received: from localhost ([::1]:38388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9Vd7-0005hQ-7A for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 13:49:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9VcF-0005er-55 for help-gnu-emacs@gnu.org; Thu, 07 Jul 2022 13:48:39 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:56549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9VcD-0006Ws-48 for help-gnu-emacs@gnu.org; Thu, 07 Jul 2022 13:48:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1657216114; bh=s+4odSbZ/vmPYYdpZY156QUkxe3TIiUNzAJhYYmyQzY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=DOdNw/nmCMfPmHhx3j0ZEKSATkXDUo0SwClylEcZFDbncejHflmQ/dcWL0p7+yzTS Ck1m+xgQIQs9XlABDyvOpsYwDwDM/Ohbxi/3MkobchNPmANAEMGL9/pU1dxmcxV5jX uF34mVq0l34kvalBd9xyAAfQ8XysTWPQoHQYqCTM= 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 19:48:34 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:FXHpp2ANAXZpUNwo3RMv7QjR6Gm1AqT5VRUKQIr1dy4eW8V1wGGK4c12b0t8ooFLIzfD/ LerR151JaZulRwzu/cRxLPDZr0bxSt0JYmbL+wmoWzt6O84tuS17cXKLyWtdaA8e8hWVPFfuLmux CvKVSLiqGYUlGLl3W3jZ142qQkKtbqzbJaPSDlu3CvrQwEUdRnikL8YxluWzhC6kDuPaLCi38j5X 9Wbqx5Md8anPLPTjDzdcJBKaHH+VtTN5wBJX/QiQ6qi/bIcyu0O53qKXwH5fSvi8qdi1XlMQmPco nE= X-UI-Out-Filterresults: notjunk:1;V03:K0:BvsOn/b+/0g=:uj9QNHCZvda8Spjz0LqyGY szPX1hg7RgDfqMwWnG2NaAPxl2uE/xv3Bt8DaNf+F2NgALVEfDnnjHibzFiik3F//gHSfqUTK uH+nSJWqOQGb11eK3HvaoxALpxNLl55FlR3sl6GKQMwLpIoptjhCGZgREBLhoXa5ljoznIRpf rUfzC5Jxspdxx6WaQq3mNFx342aA8jB+s7aWD5ZVYnZwDWPJKmTCwvHfGFllB8+H9l5zlCJYa ZLhLuoXxsadQyVjo0rt4TZWjNjt9uIp3ZdFn210BcP/8bQln9O5RxIqQhlcx2r6v2on4hRU33 jKZSLZrGwFKWmwC0b24u60Dqe0zPU9S5Nbf0luTv1TogI8SELk+8jh9R+U5BbF5MIRsZKJcNi nNt6cCYk//4bpmSscG65eUuMqnmk+/o/KurwATlaQr/a7VKPoAtQakS1RvCr9b1vJaZCkyc6i DzPchVO+mFfuXyvTVtUq08PMh/p0uknVxJRsUjA8x/Cxcly2pU7GVMCmjxqXnMInJ+7vqxzuL jbsA3fqswWj3K0pqFSq6j0vsACFLF1UsKeM/95+PXrrHq/0DwC9VNByz3yzTCFgtPMO9/C/pc X5zWxYXkaoEQiGKqb2qFMAua3iIp4pGRTXQ1AY36kUgsII1v6IkAQUL8IXBRy35fi9iDsQlSP C2Z8GBLxSB1450nBF10kYW8rXy10crNvX5P+R/AoiqInibR2zcVT3jX69psqax7np7WG53m01 qd4GczESfMQRBpruzjqIGgO/tMwPO0DPsPVqzKSzX9FcbTACPVuo7+aqy0WGawvwUT0Pq6/8 Received-SPF: pass client-ip=212.227.15.19; 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:138362 Archived-At: > Sent: Friday, July 08, 2022 at 5:06 AM > From: "Christopher Dimech" > To: "Emanuel Berg" > Cc: help-gnu-emacs@gnu.org > Subject: Re: docstrings (was: Prefix Argument and optional argument) > > > > > Sent: Friday, July 08, 2022 at 5:03 AM > > From: "Emanuel Berg" > > To: help-gnu-emacs@gnu.org > > Subject: docstrings (was: Re: Prefix Argument and optional argument) > > > > Christopher Dimech wrote: > > > > > (defun poke (prefix) > > > "TODO." > > > (interactive "P")) > > > > > > It is only because body is empty then, right? > > > > The way it is implemented actually the docstring is part of > > the body! > > Which complicates things even more. Why are we getting warnings then!!! Then we require a minimal test without warnings which would be (defun poke (prefix) "Pokes the prefix argument PREFIX in the prefix argument." (interactive "P") (message "poke function")) > > Eval this which has the same interface/signature as the > > `defun' macro: > > > > (defmacro defun-ds (name args &rest body) > > (car body) ) > > > > And then try it: > > > > (defun-ds f (x) "Doc string." x) > > > > -- > > underground experts united > > https://dataswamp.org/~incal > > > > > > > >