From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#26301: 24.5; `define-derived-mode': different signatures for doc string & manual Date: Fri, 26 Jul 2019 08:51:48 -0700 (PDT) Message-ID: References: <8cad00f7-f86e-4d12-ad36-05214708aff1@default> <8736itnjkk.fsf@mouse.gnus.org> <855znokfrs.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="152667"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 26301@debbugs.gnu.org To: Lars Ingebrigtsen , Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 26 17:52:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hr2Vu-000dZW-7M for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jul 2019 17:52:10 +0200 Original-Received: from localhost ([::1]:41320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr2Vs-0006Zm-90 for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jul 2019 11:52:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38811) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr2Vo-0006ZL-GS for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 11:52:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hr2Vn-0004op-GA for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 11:52:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34414) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hr2Vn-0004oM-AM for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 11:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hr2Vm-0004gL-6d for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 11:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2019 15:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26301 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 26301-submit@debbugs.gnu.org id=B26301.156415632017989 (code B ref 26301); Fri, 26 Jul 2019 15:52:02 +0000 Original-Received: (at 26301) by debbugs.gnu.org; 26 Jul 2019 15:52:00 +0000 Original-Received: from localhost ([127.0.0.1]:43235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr2Vj-0004g5-Sf for submit@debbugs.gnu.org; Fri, 26 Jul 2019 11:52:00 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:33320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr2Vi-0004fp-B0 for 26301@debbugs.gnu.org; Fri, 26 Jul 2019 11:51:58 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6QFnaau049400; Fri, 26 Jul 2019 15:51:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=vJJ98eAclp98qG6GmHXU/HAEz154icxqMc6uNnM3EAs=; b=GsIgXzVHbFU2zuOeY3VO60obXCDji8YzZjMIrCBZf+NvJEbyCxytBicX3iIV3sagP6RF kaL+4Hbtjvp7v0hcus2nRwK2j3M/6HitANHyFnpAAnXwKTJPO1zmgJo8e9i4x97oOi+F Wp21KlsJ0T/hI1PTnbBMPWJEOUTPGxkFatMNNewuA/7KHLLEk9jKXz/2Mnk6k3ACT3I8 XZF9RbCuYJwq68dRDtOLPmacnsax99Jc2duF39LYJgw9hR4Uw8i7Q1mIaMjRP3e2wCCQ bDuQD/e5EmM3wOGXlIG4+pUQGxkRG0gDkiRVk1qWBAiNP9eFH4D4RSGTm2fQAsdwvfii fg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 2tx61cbpsm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Jul 2019 15:51:52 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6QFm7kw189157; Fri, 26 Jul 2019 15:51:52 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 2tx60yhydr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Jul 2019 15:51:51 +0000 Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x6QFpnaA026995; Fri, 26 Jul 2019 15:51:50 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4873.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9330 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=755 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1907260192 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9330 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=811 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1907260192 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163803 Archived-At: > > Docstrings can override the automatically generated signature by > using > > > > (fn ...) > > > > So maybe we should do that here? >=20 > Hm... didn't think about that. I guess that makes sense? We'd say >=20 > (fn ... &rest KEYWORDS &body body) >=20 > or something? (Slightly Common Lispish.) I'm no expert on how we would write it. But in Common Lisp you cannot have both &rest and &body at the same level, I believe. Maybe this? (fn CHILD PARENT NAME &optional DOCSTRING KEYWORDS &rest BODY) And let the doc string describe KEYWORDS properly, to make clear that it's any number of keyword entries (keyword followed by its value).