From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Byung-Hee HWANG Newsgroups: gmane.emacs.help Subject: Re: dope program Date: Wed, 06 Jan 2021 18:11:33 +0900 Organization: =?utf-8?B?6YeR6Zm1ICjsl7Dsm5DsnZgg66eI7J2MKQ==?= Message-ID: References: <87im8aipnp.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="23797"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 06 10:12:24 2021 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 1kx4rg-00064J-3R for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 10:12:24 +0100 Original-Received: from localhost ([::1]:45288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kx4rf-0000Nl-5c for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 04:12:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx4rA-0000NG-8o for help-gnu-emacs@gnu.org; Wed, 06 Jan 2021 04:11:52 -0500 Original-Received: from forward105p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b7:108]:36128) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx4r7-0004Rl-WE for help-gnu-emacs@gnu.org; Wed, 06 Jan 2021 04:11:51 -0500 Original-Received: from forward101q.mail.yandex.net (forward101q.mail.yandex.net [IPv6:2a02:6b8:c0e:4b:0:640:4012:bb98]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 5F0FB4D42EEB for ; Wed, 6 Jan 2021 12:11:45 +0300 (MSK) Original-Received: from vla1-5c8ce23a551e.qloud-c.yandex.net (vla1-5c8ce23a551e.qloud-c.yandex.net [IPv6:2a02:6b8:c0d:400d:0:640:5c8c:e23a]) by forward101q.mail.yandex.net (Yandex) with ESMTP id 5C035CF40007 for ; Wed, 6 Jan 2021 12:11:45 +0300 (MSK) Original-Received: from vla3-23c3b031fed5.qloud-c.yandex.net (vla3-23c3b031fed5.qloud-c.yandex.net [2a02:6b8:c15:2582:0:640:23c3:b031]) by vla1-5c8ce23a551e.qloud-c.yandex.net (mxback/Yandex) with ESMTP id IfSz00R5ag-BjDaboWn; Wed, 06 Jan 2021 12:11:45 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vladivostok.yw.doraji.xyz; s=mail; t=1609924305; bh=fLHqXZaLKbS/YAITAnTXl1RI6/CinQbsyGHxd3dRWAg=; h=In-Reply-To:Date:To:Subject:From:Message-ID:References; b=ZcqBEho45SC6h2U/5jkJjAweGfjaTAhJqYToym67jV7zKxH+g3rQCyQhl38JySkG/ BsIyoU7Om2cgFHTSvgCu4GTGLUsp4A0yqY7m5OmQ9mKeQkEEdUrgFB7viEGuXG2TVa 7WQy7O9LnNOVoFEeIPEjrs1MRs5M9r0d7L3iC9B0= Authentication-Results: vla1-5c8ce23a551e.qloud-c.yandex.net; dkim=pass header.i=@vladivostok.yw.doraji.xyz Original-Received: by vla3-23c3b031fed5.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id mYBr1UctIS-BfJS2lUW; Wed, 06 Jan 2021 12:11:42 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Original-Received: by delta.birch.chromebook (sSMTP sendmail emulation); Wed, 06 Jan 2021 18:11:34 +0900 Face: iVBORw0KGgoAAAANSUhEUgAAAC8AAAAvBAMAAACBCY6fAAAAElBMVEX////MzMyZmZlmZmYzMzMAAADzj3ppAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAAd0SU1FB+QJGw0lDCKUTkQAAAJISURBVDjLVVPLgtsgDBTEvSNI7gice2zWd8ePe5u1//9XOsJusiXxA4aRRoNM7HPufcrCGHiWUhaMkZivObOESJ/BXhxuIeXk8PYeJmOBsFl65p8ELx6AIZ8A/FinxNNz1A2l96YiLB4RzdBLG4kpLIlJAajiKHSZ7v0XcnAqossGciWxd8s8SHkoX/gAnGdx7Kb5Ze8P1ZBOQuoY92tzJzMBML6vgE9aOn6Cxd+Qb0JfxUcHKmr2kdqH1yXrK4EscsMLBuFBWrCpNkC4DlETLF3eDqEyq/Jckkj+9FIvNUcZRqpt1TqEsk70rRNo+s9Pk48ZQ5cZzQdwCCeHjWSjo3fq6On2fYa4OD2Lc2IT0a/xeM/mB6PRsNPJJuE3YLW8dLw/yAi984+UMraV4ugxWvrE0gPDLtdEk/Hkf4yrM8ZhMrOzWDRXMGZcC2v96spINkDUFQsdtcfRNofKDEls0X9b0a51FJszm7qO86d9VlOjCZgjoB6EKnG0vjZQUPVRhq1/BbavAkaHbSZ5tVKVJgQcvvYNPVMTF4A1oALbvOxPbs8wQYOqQ46Ged9WFvUh0kU4KKCVt6X2Rqdnbzs0lraaktclq95OQ0xa0ng21G144rvhsE+8JwWSci El7N9BgeXbNdq9EHgxOBR6rUMnmoWo97UZx0s9j1u7//E1JwqsgLdGi9n6datuUcPHCNEqY3/ddq45gxwM7qx2z9rKcIiZOJ0Uo3r3QfwT35F+mHIChPS03gtXYJEDgCuuMvCVBwWeH0D78y/ahk55rQMHyQAAAABJRU5ErkJggg== X-Thanks-ZZZ: =?utf-8?B?J+e2reatsuasoeaIiueUs+WNgeS6jOaciOS4g+aXpVxu6YGT?= =?utf-8?B?6KGTIOaVouaYreWRiuS6jlxu5oO25oGQ5LyP5Zyw5ZWP5a6JIOawo+mrlA==?= =?utf-8?B?5YCZ6JCs5q275LiN5b+g5LiN5a2d54Sh5bqP6Lqr5rOjIOelneaWvOWQmw==?= =?utf-8?B?5pa854i25pa85bir5rCj5YCZ5aSn5a6J5Y2D6JCsXG7kvI/mnJvkvI/mnJsn?= X-Thanks-Workers: =?utf-8?B?7J2066eI65GQLCDsnbTsiJzsi6AsIOyghOuqheyImSwg?= =?utf-8?B?7KeE7ZGc7Jyo7IKsLCDqtIDsmrTsnqUsIOyXrOuPmeu5iCwg6rCV7YOc6rO1?= X-Thanks-Today: =?utf-8?B?J+uMgOyduOydmCDrp5DsnYAg6rWs7LKc7JeQIOydtOultA==?= =?utf-8?B?64KY64uIIOuYkCDrgpjsnZgg66eQ7J2AIO2VnCDrp4jrlJTrj4Qg65WF7JeQ?= =?utf-8?B?IOuWqOyWtOyngOyngCDslYrsnLzrpqzri4gg7J6YIOuvv+ycvOudvC4n?= X-Thanks-Thanks-Thanks: =?utf-8?B?7LKc7ZWY7LC97IOd7J2EIOuLpCDsgrTrpqzsi5w=?= =?utf-8?B?66Ck64qUIOuniOydjC4uLl5eXg==?= X-Thanks-Right-Mindset: 'toothless' & 'hiccup' X-Thanks-Absolete-Coding-System: UTF-8 X-Operating-System: =?utf-8?B?4omqZGluZ+KJqw==?= -- The Gnus X-Gnus-Motto: In a cloud bones of steel. X-Gnus-Desktop: GNOME ('Ubuntu', '18.04', 'bionic') In-Reply-To: <87im8aipnp.fsf@zoho.eu> (Emanuel Berg via Users list for the's message of "Wed, 06 Jan 2021 06:46:02 +0100") Received-SPF: pass client-ip=2a02:6b8:0:1472:2741:0:8b7:108; envelope-from=soyeomul@vladivostok.yw.doraji.xyz; helo=forward105p.mail.yandex.net X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.999, 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:127016 Archived-At: Emanuel Berg via Users list for the GNU Emacs text editor writes: > (defun dope (boxes pills dose &optional from) > (interactive "nboxes: \nnpills/box: \nndose/day: ") > (let*((days (/ (* boxes pills) dose)) > (done (time-add (when from > (date-to-time (concat from "T00:00+01:00"))= ) > (days-to-time (1- days)) )) > (done-str (format-time-string "%F" done)) > (get-more (format-time-string "%F" > (time-add done (days-to-time -10)))= )) > (insert (format "%s [%s] %s" ; don't change > (or from (format-time-string "%F")) get-more done-str= ) ))) > > Very useful, and seems to work, just put the output data in > a text file. Hellow Emanul, Sorry i did fail to imagin what this program is. So could you please more expalin or background? Possibly i would like to feel your mind for this program "dope". Because i also work for long time day by day with text files. Sincerely, Gnus fan Byung-Hee --=20 ^=EA=B3=A0=EB=A7=99=EC=8A=B5=EB=8B=88=EB=8B=A4 _=E5=92=8C=E5=90=88=E5=9C=98= =E7=B5=90_ =EA=B0=90=EC=82=AC=ED=95=A9=EB=8B=88=EB=8B=A4_^))//