From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: steve-humphreys@gmx.com Newsgroups: gmane.emacs.help Subject: Re: Elisp - Function returning a list Date: Wed, 16 Dec 2020 08:36:03 +0100 Message-ID: References: <87k0ti9ygy.fsf@zoho.eu> <87czza8g37.fsf@zoho.eu> 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="18326"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: moasenwood@zoho.eu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 16 08:37:55 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 1kpRNi-0004gU-Tu for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 16 Dec 2020 08:37:54 +0100 Original-Received: from localhost ([::1]:43860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpRNh-0006Hl-VV for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 16 Dec 2020 02:37:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpRM4-00062l-Eg for help-gnu-emacs@gnu.org; Wed, 16 Dec 2020 02:36:12 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:39831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpRLy-0001n0-O4 for help-gnu-emacs@gnu.org; Wed, 16 Dec 2020 02:36:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608104164; bh=cmGolGzcBl/QE7cWhb1bId0OsUWtB3n2I/08NfEGNA0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=fXdZqs5ong/y/2rgxo8PFcD1XZmi7VHPcOIZ25X+8bph/TwXX4hI+RwLaxNZNUbrJ CmWiFRNp0bzUb6QPMQzjnPvTCSO3VlH3Lp4/2ZQb3YLCEfQ5xYkk4SHfRSWoZX9c38 NCtziI0zInkdy9kU08vgN15mi9n4eRi7OFh+n/GM= 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-bs15.server.lan [172.19.170.183]) (via HTTP); Wed, 16 Dec 2020 08:36:03 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87czza8g37.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:ybQopYPP51tQC2i7omhibZK6dBBIE/snqSbfxe5PXZ2eUdEJxWoB3w7lYB7NzoKc5cKQM xJ3LEWMUyWXROOjsna/kDpFHjyv1eMkMoA95OcozoikGM0w1NE6oD3d6psXQ6oU0Lb2iQ4pqtJvY tAvz1CymJXNMt6bLC7SgLVCE0gzQppw/vAfIKDWII4EDbW4BJZYYoaF7CbR9f2z03barL/q0BstV 5W7Oqzn4RdavYh2lSZOx6uJ1QPNNZ8LbHYq2jf/7yiHss08PS7No7LFv+pEyArbECg3bTx3nrrdu Gw= X-UI-Out-Filterresults: notjunk:1;V03:K0:aaqnxFej5CY=:NGGIqYjVVw+8kRWH4rQshG XDzQh/IanPy8AhpxkuxT98ditTwfNd8dEj0hZcaXYprclmZE/LXVrdqirEfljzJXKXLJVOds1 iYSZUr48X94ml20d/hwDWAHnMWV7UZHcl3yx2vqsuY8CVaUIut3LgxdVqlVAONs8OUIgvHMZ9 uz6XvgvKabyEPMIGV0ieCt2Gw2FtBg4s6v8Gi1mrdrA9gAuCd3lbxnNWl+LAMuxhrViFLmeru DTEJIcg1XS8CaBxxYFAWx6cZs0AMxUft9VVWWHyNcjdV1fdLjEvBD/hyIbMPwu6C28pywwR0n JlWDmUD9/Rm5G/7WlWXzWi8NAqn7l4lkv/CormS0DmjZm7xB7IYFtBBd1wzGhZRirRTvrVvxe B1cH8esj73OdUvFe+zMrt1nnAlP3FUx7tSdhmbI4aq4Vl+sIVVB7IVTGPhgPvLmKRbMoP9N9v ZMqpyhmPLrutLycISTd72niaUIB+BeXayY4Z83Cajn3PR9rWDybHFdrk28P/KEnPBin/tzKu+ 6Geivcml4CJH+ePvwJy0H8mDC/wJTXANqJbEouWg1vBxa4qdh/A7BbT2HwcKShosJrmylOR6S GqE4mJkL/zKlU= Received-SPF: pass client-ip=212.227.15.19; envelope-from=steve-humphreys@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 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:126411 Archived-At: > Sent: Wednesday, December 16, 2020 at 6:39 AM > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: Elisp - Function returning a list > > steve-humphreys wrote: > > > Is using "setq frq" and "setq tim" good > > > > (defun agenda-tgrd (&optional tstr tend tskp) > > "Sets the time grid for the agenda." > > (interactive "n StartTime: \nn EndTime: \nn SkipTime: ") > > (let ( (tstr (or tstr 800)) > > (tend (or tend 1500)) > > (tskp (or tskp 100)) > > frq tim) > > (setq frq '(daily today)) > > (setq tim (number-sequence tstr tend tskp)) > > (setq org-agenda-time-grid `(,frq ,tim "------" "---"))) ) > > It is better to do all computation in the `let's, then use > them. No `setq' needed. Example? Is there anything written about it? > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > >