From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pietru@caramail.com Newsgroups: gmane.emacs.help Subject: Re: Optional Arguments Date: Mon, 7 Dec 2020 19:49:46 +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="39212"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Arthur Miller Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 07 19:56:23 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 1kmLgN-000A7f-0T for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 19:56:23 +0100 Original-Received: from localhost ([::1]:42956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmLgJ-0006pv-MM for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 13:56:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmLaC-0005Qw-D3 for help-gnu-emacs@gnu.org; Mon, 07 Dec 2020 13:50:00 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:37963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmLa8-0008Uv-4D for help-gnu-emacs@gnu.org; Mon, 07 Dec 2020 13:50:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607366986; bh=PMYjHHrQ4Xxd4HvboW5A12wiyagizydl2LXQkwGJYgg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=fH5ZuLfYvrZfqd3XU9E95sRV49XpSb/fQdSHSPdVzOQdSf9vOeOKUBNXp7k/s93j3 7GqbHJ+VElPTyGUcexq9BgwJqS4NAKNpZhGqr5RrjfTcSQXCjwn/yudAv5o7i+ni/n X9IZE20pz+TNKBWX2XxrKJQLopdDv0z+gQ7/aYU0= 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-bs11.server.lan [172.19.170.179]) (via HTTP); Mon, 7 Dec 2020 19:49:46 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:sXm58x7ad+Ok2tvR18mjelFSrfZvQnWjLFRKeXji3xtUFSCZHug/bFZmZ+3rIkq3F/Lys Hc1o1T5tovaFUMjZCLwtyyUBDUJzKkZmpApKER0KOTqWE+fNl8QVZgeuuCk/Bg+3dvJAYiGlfKas 7U3VKdD17BZZGykm6+/+OEV4T7mj+dGQAoeppRiMtRJNhL6eSvZS35MZZ6QEICTpiR0pfRAt2NJg iXttFDZ0D4Hp4odjNJWRkqHRQhyzXW8LqChMczFa5JR45CQ+k/UnmO08TIaTO0etKNMSigb5tC1d jw= X-UI-Out-Filterresults: notjunk:1;V03:K0:sT1pdWEAF7U=:5boxZs6mhCa/kTZpNCW5pc rjcw0eQsOYgo0TCcik0z+fWnq86qG2KC9hbrbP+D+FZI5xlKajtQUxyZ9C/M7uUQc7Qy6wAdb cyzJm/95xTg+KAeuCXnxvo2CqACa1Dr+B/FzDmTwbJY3vcelUSB7PMAyI3kAInp0GAUOPhto+ GF3gAkHMTyebty8oQQ+7ykPeYiOl0JpvnbhF83RF2FYGUtxgsPZOBghNDX0a9gMfYQeDVruSf LEhLPV4NrC9f+g4+GwU81+O28XLuYc56/Jn7UsmzfZvu/6ElYz4fAWOdTTr4VJhstpV3jGkZ6 CfMItYFszqPUTkNc4/I4oDZsVRDKhYMLSi6bW0fyOBlFgXEBTIEW93zO4/e9BQGEL3ig5FKxr Azo4VGMZGZ7qIIgvRQAuRfCBHfjzSz2igY/Nolm2xSo4BwMbZja29BNtoZjoSNGuGXy/XGuYL pSyXWzIJFelEH65VCx4hk0fmdlS6JPCMNgfsYJT73ODPzRw4yk0AcYqvH+0NCXbvy2ZnaSkKc 7k3s+/ze0krt5yKkrDRSgcDOb2Zwr63WKd+9kp2lJ3kugdJsMl91wZwMHcvKYwguX7MLp4zzJ k49rRzeNytTEM= Received-SPF: pass client-ip=212.227.17.20; envelope-from=pietru@caramail.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 autolearn=ham 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:126161 Archived-At: > Sent: Monday, December 07, 2020 at 7:33 PM > From: "Arthur Miller" > To: pietru@caramail.com > Cc: tomas@tuxteam.de, "Help Gnu Emacs" > Subject: Re: Optional Arguments > > pietru@caramail.com writes: > > >> Sent: Monday, December 07, 2020 at 4:51 PM > >> From: tomas@tuxteam.de > >> To: pietru@caramail.com > >> Cc: "Help Gnu Emacs" > >> Subject: Re: Optional Arguments > >> > >> On Mon, Dec 07, 2020 at 04:06:13PM +0100, pietru@caramail.com wrote: > >> > >> [...] > >> > >> > How can one get computed values from a function then? > >> > >> 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 expressio= n > > evaluated as the return value. Correct? > Yes. > > You probably wish to prefer to return values instead of using globals as > Thomas already pointed out. Quite right. Still, this is all new for me from the code side of things.