emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* new syntax of completion and preparation functions for publishing
@ 2016-06-24  6:37 Julien Cubizolles
  2016-06-24 14:27 ` Arun Isaac
  0 siblings, 1 reply; 4+ messages in thread
From: Julien Cubizolles @ 2016-06-24  6:37 UTC (permalink / raw)
  To: emacs-orgmode

According to ORG-NEWS:

"Preparation and completion functions are now called with an argument,
which is the project property list. It used to be dynamically scoped
through the ~project-plist~ variable."

I'd like to try to improve on my configuration of projects but I'm
unsure hot to use this new feature. How do you use it ?

Julien.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: new syntax of completion and preparation functions for publishing
  2016-06-24  6:37 new syntax of completion and preparation functions for publishing Julien Cubizolles
@ 2016-06-24 14:27 ` Arun Isaac
  2016-06-24 21:59   ` Julien Cubizolles
  0 siblings, 1 reply; 4+ messages in thread
From: Arun Isaac @ 2016-06-24 14:27 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 675 bytes --]


> I'd like to try to improve on my configuration of projects but I'm
> unsure hot to use this new feature. How do you use it?

I maintain my blog with org mode. One of my preparation functions
generates an atom feed for my blog. This function uses
`org-publish-get-base-files' to get the path to the org source files
corresponding to my blog posts. In order to supply the PROJECT argument
of `org-publish-get-base-files', I need to know the project-plist.

In general, the preparation function having access to project-plist is a
very useful feature. Many a time, it avoids the need to get the plist
indirectly by accessing org-publish-project-alist or by some other means.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: new syntax of completion and preparation functions for publishing
  2016-06-24 14:27 ` Arun Isaac
@ 2016-06-24 21:59   ` Julien Cubizolles
  2016-06-25 10:45     ` Arun Isaac
  0 siblings, 1 reply; 4+ messages in thread
From: Julien Cubizolles @ 2016-06-24 21:59 UTC (permalink / raw)
  To: Arun Isaac; +Cc: emacs-orgmode

Arun Isaac <arunisaac@systemreboot.net> writes:

> In general, the preparation function having access to project-plist is a
> very useful feature. Many a time, it avoids the need to get the plist
> indirectly by accessing org-publish-project-alist or by some other means.

I've never played with plists before, could you please provide a code
sample ?

Regards,

Julien.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: new syntax of completion and preparation functions for publishing
  2016-06-24 21:59   ` Julien Cubizolles
@ 2016-06-25 10:45     ` Arun Isaac
  0 siblings, 0 replies; 4+ messages in thread
From: Arun Isaac @ 2016-06-25 10:45 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]


> I've never played with plists before, could you please provide a code
> sample?

Do read the following section in the "GNU Emacs Lisp Reference Manual" about
property lists.

https://www.gnu.org/software/emacs/manual/html_node/elisp/Property-Lists.html

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-25 10:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-24  6:37 new syntax of completion and preparation functions for publishing Julien Cubizolles
2016-06-24 14:27 ` Arun Isaac
2016-06-24 21:59   ` Julien Cubizolles
2016-06-25 10:45     ` Arun Isaac

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