From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: arthur miller <arthur.miller@live.com> Newsgroups: gmane.emacs.devel Subject: RE: Docs for &optional and &rest arguments together Date: Thu, 31 Dec 2020 07:55:26 +0000 Message-ID: <AM0PR06MB6577D9BA42B23A9AE54D0EDC96D60@AM0PR06MB6577.eurprd06.prod.outlook.com> References: <AM0PR06MB657709C899365FC0710F505496D80@AM0PR06MB6577.eurprd06.prod.outlook.com> <87o8icq958.fsf@gnus.org> <AM0PR06MB6577D086DD918C31A82C283F96D70@AM0PR06MB6577.eurprd06.prod.outlook.com>, <877doyoa9g.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_AM0PR06MB6577D9BA42B23A9AE54D0EDC96D60AM0PR06MB6577eurp_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21825"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org> To: Lars Ingebrigtsen <larsi@gnus.org> Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 31 09:11:36 2020 Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org> Envelope-to: ged-emacs-devel@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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>) id 1kut3Y-0005c6-41 for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Dec 2020 09:11:36 +0100 Original-Received: from localhost ([::1]:56528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>) id 1kut3X-0000AW-2m for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Dec 2020 03:11:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <arthur.miller@live.com>) id 1kut2k-0008BL-D1 for emacs-devel@gnu.org; Thu, 31 Dec 2020 03:10:46 -0500 Original-Received: from mail-oln040092075060.outbound.protection.outlook.com ([40.92.75.60]:62625 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <arthur.miller@live.com>) id 1kut2i-0003HS-25 for emacs-devel@gnu.org; Thu, 31 Dec 2020 03:10:45 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=en1Jj8rFLp4Th8yCO2rL8jg0Vsg7F/i2xdrhWfkmTwmC0xBOkaUmLh7/JzmviZfSUSIFyu6MP0M7zIlJniDomt0RRRl6HMlBN8lfmnoOLNRlrrMBxKMPk55/o6fce25MTid5dizk4ceg+UfF3ySCOEQdoIcYIukLqVDBOjYtwVZSz7s8yMH2pJLa54oMKPy+JcNhZbojwbsL947EpFgKNysFm5tjaz8Gpfx8fzY71zD5aa2oTPeesMdeBJlhwwRCFHieSVmZnefxecZrG3DuabuTJ8X/3SFh+dWh67gqyllX37VbTOTjFemiyPvHex5SZc6iSuz6yCrtbvfDoeu3ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0z3C4zOYE/xKhgVdpXYPV2s98wHLIWTTivkavY8eySc=; b=N4gJnBBNWtlxp/HyKXw+5VouyP+jIi7U5tDJ5MExPk4a15FAoFZ09fgfBoJJ6M9QbW28JLDsmMP4d199L7iWgnchYR678dle6zk+Bau1sHqiSmvXmdhd7WzPrEjSjn0XTK6aUUtXGlytFXEynaUSnnJ2RPf1iT0IxmWxRMBK8HaTrxHmE5lthnNi737g2CurLO7BLUAMt5RCXp/BMGzo8EKWzNjF32zK3TX1dfdUX7155S3fL/Zqo0MsS1ZXpJtp5B5EHGsjufNaSV4FnHojhhPOhfSJLJ47AVbA82xQmSnEPknnzuMrYSiih/cWUsyPCrUHwEQpdP52bDTu1OkJYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0z3C4zOYE/xKhgVdpXYPV2s98wHLIWTTivkavY8eySc=; b=Q9L6K7PvzVz9bpxlBVLsYUQuyrT02slY4XtA68lmLz0sfS1pRS5Sa8BWi++2wQNZnTPHGHieVGNegcB77Ep3ldnj8ibdVDtJo41i0h7bGGdjxAFav4wNCabZ17Juyai+C8D1RvJZ/QxXpD6xtqufFocElm7dkwQPX7kcvvUjpQto/HbLJa5aXR/8LzI1R30wJK9n3LYc5KO3HiXfHP38cLLkYxUGaLWaClQP9/RlqejfD7QR+g5fVdJJE2focYE+p6m6rAlG34NAPw6TS8y1RoeApF/fCF/H03nGeszNiXj2D+zTii86NhU929dqMQ3LFq3QYGtbyBhMf14wLFQY1w== Original-Received: from HE1EUR04FT056.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::49) by HE1EUR04HT132.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20; Thu, 31 Dec 2020 07:55:27 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:7e0d::46) by HE1EUR04FT056.mail.protection.outlook.com (2a01:111:e400:7e0d::301) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20 via Frontend Transport; Thu, 31 Dec 2020 07:55:26 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%7]) with mapi id 15.20.3700.031; Thu, 31 Dec 2020 07:55:26 +0000 Thread-Topic: Docs for &optional and &rest arguments together Thread-Index: AQHW3eY5w8c4C21GEEWOLQaTEmz/fKoQo1NHgAA1euY= In-Reply-To: <877doyoa9g.fsf@gnus.org> Accept-Language: sv-SE, en-US Content-Language: sv-SE x-incomingtopheadermarker: OriginalChecksum:1B5A00B6967AE31AD6BD8BE29356110C6B98F0124A63E8DE99B2384FC2EE8171; UpperCasedChecksum:F22E2554008FE0E3A5F202A5DB2C08F22D47B90782490521D3C7A7E4B8CE4C06; SizeAsReceived:7018; Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [4/EdXlpMnkHcd6js22+Win/e9pc3IXx/] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: a4e75fb6-697a-4413-5fd6-08d8ad616fa4 x-ms-traffictypediagnostic: HE1EUR04HT132: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: e0qtVPacC/h8IyWMhbPzqnmI+ZO27ybxfciHZOkL+wx733bewwc5kh3tbqejEDZqqkPpwbnnDe7isHCPisLpCTpH4pYhM6yBNrhgj7VhJVtsbN8Y5BqXIpI4eNb0xvYrFK+QI4S/gBHt07rYLEssCZygHY4XxnrV2ykvi4JdoqXLmKlyK9WWzcLL+CYinmkgYKWvoVY3FnaQPg6DClKmrXo8rj1lk50LnZGq1051YmhsX6Ks6nfoIRp0tsMJ1a6+QdfjfmVdDz5fMGPehsyC9yjZTMdyq/cRdLuWQs6+XqI= x-ms-exchange-antispam-messagedata: 0lAJXmnsbNnetCNn9EQ+DlJj3ud+ti78dwuti2ab7g9TG2gMMEVYP6nruhvo91zONlpb+m+9nr0YPcF765tlC97FnQDPU302rpCJ3BdIh08/13m2o9EyGTSq4FCUNylQBSTXSKk3ATEwUTQMlV3aBA== x-ms-exchange-transport-forked: True X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: HE1EUR04FT056.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: a4e75fb6-697a-4413-5fd6-08d8ad616fa4 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Dec 2020 07:55:26.8535 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR04HT132 Received-SPF: pass client-ip=40.92.75.60; envelope-from=arthur.miller@live.com; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." <emacs-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/emacs-devel> List-Post: <mailto:emacs-devel@gnu.org> List-Help: <mailto:emacs-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=subscribe> Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org> Xref: news.gmane.io gmane.emacs.devel:262145 Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/262145> --_000_AM0PR06MB6577D9BA42B23A9AE54D0EDC96D60AM0PR06MB6577eurp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I don't read it says both c and d are required when &rest is also used. -------- Originalmeddelande -------- Fr=E5n: Lars Ingebrigtsen <larsi@gnus.org> Datum: 2020-12-31 05:44 (GMT+01:00) Till: Arthur Miller <arthur.miller@live.com> Kopia: emacs-devel@gnu.org =C4mne: Re: Docs for &optional and &rest arguments together Arthur Miller <arthur.miller@live.com> writes: >> The paragraph just below this one, though, describes in detail what >> happens with a mixed &optional and &rest argument list, so that's not my >> impression when reading that node. > > "A call to the function requires one actual argument for each of the No, this bit: For example, an argument list that looks like this: (a b &optional c d &rest e) binds a and b to the first two actual arguments, which are required. If one or two more arguments are provided, c and d are bound to them respectively; any arguments after the first four are collected into a list and e is bound to that list. Thus, if there are only two arguments, c, d and e are nil; if two or three arguments, d and e are nil; if four arguments or fewer, e is nil. Note that exactly five arguments with an explicit nil argument provided for e will cause that nil argument to be passed as a list with one element, (nil), as with any other single value for e. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no --_000_AM0PR06MB6577D9BA42B23A9AE54D0EDC96D60AM0PR06MB6577eurp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <meta name=3D"Generator" content=3D"Microsoft Exchange Server"> <!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; pad= ding-left: 4pt; border-left: #800000 2px solid; } --></style> </head> <body> <div dir=3D"auto">I don't read it says both c and d are required when &= rest is also used. <div><br> </div> <div><br> </div> <div>-------- Originalmeddelande --------</div> <div>Fr=E5n: Lars Ingebrigtsen <larsi@gnus.org> </div> <div>Datum: 2020-12-31 05:44 (GMT+01:00) </div> <div>Till: Arthur Miller <arthur.miller@live.com> </div> <div>Kopia: emacs-devel@gnu.org </div> <div>=C4mne: Re: Docs for &optional and &rest arguments together </= div> <div><br> </div> </div> <font size=3D"2"><span style=3D"font-size:11pt;"> <div class=3D"PlainText">Arthur Miller <arthur.miller@live.com> write= s:<br> <br> >> The paragraph just below this one, though, describes in detail wha= t<br> >> happens with a mixed &optional and &rest argument list, so= that's not my<br> >> impression when reading that node.<br> ><br> > "A call to the function requires one actual argument for each of = the<br> <br> No, this bit:<br> <br> For example, an argument list that looks like this: <br> <br> (a b &optional c d &rest e)<br> <br> binds a and b to the first two actual arguments, which are required. If<br> one or two more arguments are provided, c and d are bound to them<br> respectively; any arguments after the first four are collected into a<br> list and e is bound to that list. Thus, if there are only two<br> arguments, c, d and e are nil; if two or three arguments, d and e are<br> nil; if four arguments or fewer, e is nil. Note that exactly five<br> arguments with an explicit nil argument provided for e will cause that<br> nil argument to be passed as a list with one element, (nil), as with any<br= > other single value for e.<br> <br> <br> -- <br> (domestic pets only, the antidote for overdose, milk.)<br> bloggy blog: <a href=3D"http://lars.ingebrigtsen.no">http://la= rs.ingebrigtsen.no</a><br> </div> </span></font> </body> </html> --_000_AM0PR06MB6577D9BA42B23A9AE54D0EDC96D60AM0PR06MB6577eurp_--