emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ian Dunn <dunni@gnu.org>
To: Gergely Polonkai <gergely@polonkai.eu>
Cc: emacs-orgmode@gnu.org
Subject: Re: RFC: Extensible Dependencies 'N' Actions
Date: Sat, 22 Apr 2017 11:29:18 -0400	[thread overview]
Message-ID: <87o9vosbox.fsf@escafil> (raw)
In-Reply-To: <CACczBUKVTUbgbCCjknghxUj+_MQct=7kfPixhgqmFCqaV=jsHg@mail.gmail.com>


Gergely Polonkai writes:

> • Some finders have missing documentation (although their names are pretty
> straightforward)

Yup, working on that.

> • Why the “new language”, why can’t it be lisp, or at least more lispish?

Initially, I made it similar to org-depend.el, but as parsing became
complicated, it has effectively morphed into lisp.  The keywords are all
symbols (they've got to be functions, after all), and the argument lists
are lisp lists.

I find this to be a good compromise between ease of coding for me, and
ease of understanding for the users.

> • You gave us a possibility to create naming clashes between targets,
> finders, etc. For example, I might want to file a note when a file of a
> project changes, so I use your file target, and create the file action. How
> will Edna know when to use which?

Right now, Edna will use the finder and ignore the action.  I didn't
want to force users to specify when to change from finders to actions or
conditions, so I just had Edna search for the functions.

Thinking about it, Guile uses the suffixes '!' to denote functions that
destructively change the input (like actions) and '?' to denote
predicates (like conditions).

If Edna looks for these characters at the end of the keyword (starting
character already means something), then that will allow users to name
both a finder and action 'file' (although the action would be 'file!').

And of course, thank you for your support and feedback.

-- 
Ian Dunn

  reply	other threads:[~2017-04-22 15:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-22  2:31 RFC: Extensible Dependencies 'N' Actions Ian Dunn
2017-04-22  5:23 ` Gergely Polonkai
2017-04-22 15:29   ` Ian Dunn [this message]
2017-04-24  9:01 ` Adam Porter

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.orgmode.org/

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

  git send-email \
    --in-reply-to=87o9vosbox.fsf@escafil \
    --to=dunni@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=gergely@polonkai.eu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).