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 06:04:25 +0100 Message-ID: References: <87k0ti9ygy.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="24855"; 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 06:05:36 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 1kpP0K-0006Jp-HW for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 16 Dec 2020 06:05:36 +0100 Original-Received: from localhost ([::1]:53092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpP0J-00038y-IZ for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 16 Dec 2020 00:05:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpOzM-00038k-Ps for help-gnu-emacs@gnu.org; Wed, 16 Dec 2020 00:04:36 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:45463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpOzF-0002nW-8S for help-gnu-emacs@gnu.org; Wed, 16 Dec 2020 00:04:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608095065; bh=MqLkQx/OeIi2trT8iLgTJxVy7K+TgMZZ2eghalEkkgM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=bqM2oWtpTvhlnukPh8tfUKmDlgNpftQYuJhenXjetPd+gSi8WDlFHb5xgs5YL6Wg/ eKgbg4saJmNl+KCw96CuHh++uN2kxvxQ2S2lTaPQ5uWYI/JSDzn7KTaYMuCoQMTax4 4YL4l2GI0NulZNOwSwbtjOfEqaCyEaFW0YLHSyTM= 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 06:04:25 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87k0ti9ygy.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:y8NWUOa+iO9bSgODjLI49YVH/TXMj/lxJFwM1BLw9+KhzWgiWkAIrxRk1x5ACMKo2TgXC JfIk5c9N+2GNM/S68n22Ugik/BhdN0dV474BnFm/KX/aacig4W7MKnjqRv139bWRbtcTRBWefp/F iB58x/7eg+Wp0D0nwNgLH9DYETcgJJQVRSWb3PGjccU8A2j52SRMZTPrkwUT39NBPu0TBUiYiaOA 9Dg9JYGUrcfDK7BSKpVwyoTYCwPG8judRfbObTBrYVdQDmDKl4+Zhr0oaXugqFVaLwiCe0fGK1l5 VM= X-UI-Out-Filterresults: notjunk:1;V03:K0:zkPB/+eyrbo=:WMMRpp/aRRN/TrpxhCUVgH l6Vn3sCGv+XTiIGND3uH/aVROjz/BWw+oXeZSKb8+zHwQCdD3SnLtt/+wt7pBMBuXFIoss5kW EB3qty3NMmr9NsexAjk8tI/jeK38bGNN/W8U6ybOG+6wBFqNinSbSruvNOKH0aDry5RFEbg+n 2P3x6/qlkYIsfaCl9O84yenLfFHU7Ad++K71mEAPUWoT5Sw13jy7dUIrEDxi/HMVjIQR1z+cX nNf14qnumK/3tR2NGd2KEAE5iJgTh8kwRa/aQ3N6CjXjXjRpgWxGDC8mfGjKxdr8vKHkxQUqg +C/ke1Wgsx8k34Cv7VshIIEqbS7Od8iZW7kyjSwQ2aaCFlE3BiiV/evTcUSuhRqUrXHl/1YV4 uPJdxDMT0KE8F1J4Quo9YCr3IMpiJeWaUhS/nvGplpjtBntitxIrkSa15vcshmeou6hY4sXS0 qj5bqO8HtQxn4v1OsVxM5AjmFVA5yYiiCRvapofnX87HVr+CH3MOPt43txGXpnqllHxwOltbP JMB4B7EwA8bLxbY/iXbktBIY5jjDeCj24UiHNzWfS73d4ulh9hetAQIZMtbMY+wQvPSBeRh7X gP2/mWvIfCyZc= Received-SPF: pass client-ip=212.227.17.21; 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:126404 Archived-At: Here's how it makes sense! Is using "setq frq" and "setq tim" good =2D-------- code -------- (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 "------" "---"))) ) > Sent: Wednesday, December 16, 2020 at 5:17 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 > > Jean Louis wrote: > > > You can test `interactive' before doing it. > > Yes, good idea. I.e., evaluate the interactive form. Use > `C-x e' after the right paren. > > > (defun typh-agenda-tgrd (tstr tend tskp) > > (interactive "nStart Time: \nnEnd Time: \nnSkip_Time: ") > > (number-sequence tstr tend tskp)) > > Yes, but works, but doesn't make any sense. Try invoke it and > see what happens :) > > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > >