unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Byung-Hee HWANG <soyeomul@vladivostok.yw.doraji.xyz>
To: help-gnu-emacs@gnu.org
Subject: Re: dope program
Date: Wed, 06 Jan 2021 18:11:33 +0900	[thread overview]
Message-ID: <yw9dhqo587.fsf@vsylj.oak-birch> (raw)
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")

Emanuel Berg via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> 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

-- 
^고맙습니다 _和合團結_ 감사합니다_^))//



      reply	other threads:[~2021-01-06  9:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06  5:46 dope program Emanuel Berg via Users list for the GNU Emacs text editor
2021-01-06  9:11 ` Byung-Hee HWANG [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yw9dhqo587.fsf@vsylj.oak-birch \
    --to=soyeomul@vladivostok.yw.doraji.xyz \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).