URL:
<http://gna.org/bugs/?10280>
Summary: add publishing project variable
Project: Emacs Muse
Submitted by: aleix
Submitted on: Wednesday 11/07/2007 at 22:51
Category: muse
Severity: 1 - Wish
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I wanted to know the name of the project inside a custom footer. I have an
alist with some things I want to change in the footer depending on the
project, but I didn't want to derive a style each time.
I didn't find a variable or function that told me the project being
published. So I have created this. Sorry, but I don't have any elisp
experience, so it would be great that you could add this the way it should be
done.
;; In muse-publish.el
(defvar muse-publishing-project nil)
(defun muse-publishing-set-project (project)
(setq muse-publishing-project project))
;; In muse-project.el, I have changed this...
(defun muse-project-publish-default (project styles &optional force)
"Publish the pages of PROJECT that need publishing."
(setq project (muse-project project))
(muse-publishing-set-project project)
(let ((published nil))
Now from <lisp></lisp> I can know what project I am publishing.
Thank you very much.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?10280>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Muse-el-commits mailing list
[email protected]
https://mail.gna.org/listinfo/muse-el-commits