From 39294cfafa1cdf3a8d8e3e834c7f0fe29a67d26c Mon Sep 17 00:00:00 2001 From: "Michael W. Olson" Date: Tue, 16 Oct 2007 10:58:10 -0400 Subject: [PATCH] IDEAS: Add "publish to plain text" and "refresh index pages" --- etc/IDEAS.muse | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/etc/IDEAS.muse b/etc/IDEAS.muse index ca59c51..4607ddd 100644 --- a/etc/IDEAS.muse +++ b/etc/IDEAS.muse @@ -51,3 +51,33 @@ somewhat. - Take markup features from phpBB and make a format out of it. This could interest the forum crowd in our work. + +*** Publishing to some plain text formats + +It would be interesting if Muse could generate Markdown, +reStructuredText, or MoinMoin-style markup pages. The file +experimental/muse-message.el also needs some attention, so that it can +do plain text. Maybe it should be renamed to muse-plain-text.el. + +*** Allow pages made by M-x muse-index to be refreshed automatically + +The idea is to update the contents of the index page whenever a new +page is saved. This should be controlled by a new customizable option +called `muse-index-update', which is either nil or non-nil. + +`muse-index' should be modified to add the generated buffer into a new +variable called `muse-index-buffers'. + +A new function called `muse-index-update-buffers' should be made, +which goes through the list `muse-index-buffers', doing the following. +It must check `muse-index-update' first to see whether it should do +anything. It must take no arguments. + + (let ((index (muse-index-as-string as-list exclude-private))) + (dolist (buffer muse-index-buffers) + (with-current-buffer buffer + (erase-buffer) + (insert index) + (current-buffer)))) + +This function should be added to after-save-hook in muse-mode.el. -- 2.11.4.GIT