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: Optional Arguments Date: Mon, 7 Dec 2020 21:39:03 +0100 Message-ID: References: <20201207130630.GA10719@tuxteam.de> <20201207155108.GC15617@tuxteam.de> 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="16165"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, Stefan Monnier To: pietru@caramail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 07 21:45:13 2020 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 1kmNNh-00045C-OM for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 21:45:13 +0100 Original-Received: from localhost ([::1]:51728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmNNg-0002E6-MX for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 15:45:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmNHs-0001OC-GE for help-gnu-emacs@gnu.org; Mon, 07 Dec 2020 15:39:12 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:56449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmNHo-0005OJ-SS for help-gnu-emacs@gnu.org; Mon, 07 Dec 2020 15:39:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607373544; bh=/pI7Auotejq4CaJAIpHVjsiWdVcAYUo3EenOpLVkAZE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=BcRfHOI4ut8Zb1UsjgN2yO4XrRnAp9AW4CrAdmY+Ybh2RDLgFw3dSODqxzGczEJtB SvDSyHJRQbmJgpVPT3k3/wv/YqB5ui2Bjkujrl7HOKNZHdmE9cttXlxaf4OaIDAr86 YXgiFjnEzXCxAzyWJoU2ZKJhfzSNDccEJgJk/0fo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs08.server.lan [172.19.170.176]) (via HTTP); Mon, 7 Dec 2020 21:39:03 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:VwtrHpaDv5VVs4jqHEaMF6c0O58lngmNIzAFaZpEBmMZ3dhjhTU6XD3sGP9S8GvY6195p F3LbBjShqcvNm8iVCRP9ESvdRrdxck3pQ+vIy+RT2IJal/j2AydhtL/F0GQfmNCLEv8gSI4THn3D Rv7IDmcwxpH3G53Ia78jeKHTBZYzBIz+Oa6INZ2sS/cJgDKAispm15zklSWKz/G04cyDxs5IILnP sznvO9BYftDkVwq7P5MYJRzjBRR0cd1InbFSBj2BS07cM7hZIr8sue2x4/RdIF8R59k0GRlb7OF4 Gw= X-UI-Out-Filterresults: notjunk:1;V03:K0:V8J07fzIWJ0=:eCzAZ2NwPaJfx8ziGZk8/i yT8oR2XJxPAxc25eQkB2cDoWbejpHOTUFxQcq1gpudSgA4S0ZxrRFeGycKAZXECVs4SLZt0o7 +niy3PU+sQW50EX89kRfm7/xk9NfVbeaWE6cah0KoriCOuWEI0GK2ZUZe2lkyQMQk0bvnWLQM l7yedXFRyof34XlJEVlcmVpgQhp2sMQ6fRA8aCZbxDg2BNgKCREwmdm4eQMEcaiHM7/12sqPG fQ6nPBW+XjsYJ+KxWEAWX5QL4oJGNF/iXwlOOfZ/2yrJNw5AHCAO4mIyuUwHSWz2HQIBR74mr 1bPB+yJ4ZPgbdsut/e+d1LJn7ITLw61tKxpC2OQ6odKamD1TLRDCa3aYbsqqJ1QlN8FlpnjLy Ep8JdpfH3ffEqK8enDpDBvtMHyLOIePqZwEEXpetZct4jn0SaXjwI28m15rQ11ax5hTxTTU/+ 9JY9fAE4JsomwyglY/LVmttGMjtLDOhTwb4+pI+3VBlPNXT1NJ2Q4zruUufsJvs4l3n6KLOl6 jISes050IcglUxzXmgHHTMSZpIIf7DFASHyneYJs1y1C8uPl6/nhzki4VjAGKGbT6oPCZP/qb kFmQLsY1qfx9g= Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:126173 Archived-At: > Sent: Monday, December 07, 2020 at 9:25 PM > From: pietru@caramail.com > To: "Stefan Monnier" > Cc: help-gnu-emacs@gnu.org > Subject: Re: Optional Arguments > > > > Sent: Monday, December 07, 2020 at 9:13 PM > > From: "Stefan Monnier" > > To: help-gnu-emacs@gnu.org > > Subject: Re: Optional Arguments > > > > >> Either you return it (in your case, e.g. by returning a pair) > > >> > > >> (cons ma mb) > > > > > > Because by default, a function returns the value of the last express= ion > > > evaluated as the return value. Correct? > > > > Almost: to be correct you'd have to remove "by default, ". > > Not by default, always. Wah-wah, wee-wah. Correct. > > > > Stefan > > > > > > > >