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:06: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> <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="10921"; 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 19:07:19 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 1o9UyE-0002fp-LG for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 19:07:18 +0200 Original-Received: from localhost ([::1]:48562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9UyD-0008Qb-Bb for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 13:07:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9Uxe-0008QT-OF for help-gnu-emacs@gnu.org; Thu, 07 Jul 2022 13:06:42 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:45015) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9Uxc-0002M9-Nv for help-gnu-emacs@gnu.org; Thu, 07 Jul 2022 13:06:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1657213597; bh=FGhvUtS+bFKzvkEqAXgcoJQd1WDhEQfbzN1ihiyVb8o=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=RUW6JUt9mdOfjCOIeCwxzb648oQzjCOZeJIIdDdISuwx1xeghvcjQtuUwsbIAjdsR m+86YHQfQg/WZA3Df/BxhIXE6DblN1lwX6avQOQ2KH5l+90LLqXIOjuaSLeHZamA8+ JgBd9mWW2jS39ldfeSKqzIKGLUAV7WbdPYzff9Lg= 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:06:37 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87o7y0etyb.fsf_-_@dataswamp.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:2RDWdsQeoZOvIGI+Mr3i6BGRTGmOyWyd/XrujRyFHATs1q4zHUSqy1BXzj9VQKtjwsE6O F6xVdRqfHavH0O4fy4aUry4LFp4h/dA+CE+p4m4N1USpxlCE/PAr9TpSnqRSc0oRN0BfFozHwhoL ecP2vz3W28MA8PpZOiQMM6+MB2lMQDx0fA975rAfm06O3C0Z4X+XUf1L9W4j5ZKuXBhckRSBjD+N qX0dbHlWMYnHteAq/Zgt0SXFa3dm5DHdkdg/mkByUCJns5vTpXW2cqddmR7GYIp4RB7s8KY4DybV z8= X-UI-Out-Filterresults: notjunk:1;V03:K0:esjfLC8r8GQ=:JIOyhggKtd0ZArFVwu7RR7 60DortdxQ5GJURMWsizIIsoRwzXRPQTHOqvKB31ALtfxTeLp3qjmzL6ciO9mRZHcoCLkmeejs nJjetyn4JqqAtvenZewyeIhONBTTPDxUV/LoV4LbWiTr/6wyC5NcaQpRWlJaGETIkzUUcfKwo ABs/BJBQvJS5bItxmWKaiNqBVYe8G2zafTvvBwAbJ7RwKmpBOewWOYCfcLmtcnieratoF+P6U GA9hYEeHqw47LiksjjPkLgAlR7oi6AP12wQzTudhWsv6P9t7bLsyATix7E6VlFfpnjy1HSlM0 oKgsyEGK6qfYl1Kg3+oAKUrOex7Dy0KqwlxQ+CZe1fqfT6N4FL1DeXFRuAoviAhWU9ik6SsSg MsR+nnAbHRVjTTL3Myov7SueIzhM2ePEN+6hZAplomS4hr6KsTp7BWw0mDPiZE4f52rMD0rpH boDEJyq2BOJBePX3E50TGwvjP2ktOtsxqIc00VUCza50319TxcW16QcrGZvT2CGvSbgbxmWWe VAonRdgoPlXpbnSX0v075wYRDpuz+vzgpwsWVHw3Xr/q5sqvVfwdiKK+mn3UjLt1z2Q+giYJF AsCuxL3oSwYSs09neGLT32hHSGtR1FFGwDlOfOU2CxSgE4Hg8vDquzeuHnzJDn2/mO+yln4aN y7FA37QOj2LqUZ0e2dC+jp7zGKkm5SS26crdpzW6H2OpCPFLtwfI4xI84vyp/KwqJlpRCbhcr 4o2yw+GiNFZlU9BwSi0jT9m37XiN5v+SBodUiN67qcrp1Vzf65y48W0Qnz7xeTrTK9rC17u9 Received-SPF: pass client-ip=212.227.15.15; 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:138361 Archived-At: > 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!!! > 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 > > >