Re: Re: New Muse tags: "include" and "markup"

Stefan van der Walt <[email protected]> Tue, 30 May 2006 16:29:07 +0200
Newsgroups gmane.emacs.wiki.general
Message-ID <[email protected]>
On Tue, May 30, 2006 at 09:57:04AM -0400, Michael Olson wrote:
> Stefan van der Walt <[email protected]> writes:
> 
> > Thanks for adding this functionality, Michael!
> >
> > One more question: how do I insert a file inside an <example> tag,
> > i.e.
> >
> > <example>
> > content of file goes here
> > </example>
> >
> > I can't think what the markup function would be to pass to include.
> 
> Here's a custom function that should work.
> 
> (defun my-muse-publish-examplify-buffer ()
>   (muse-publish-example-tag (point-min) (point-max)))
> 
> and then:
> 
> <include file="myfile" markup="my-muse-publish-examplify-buffer">

This almost works, except that the last few lines of the file is not
included in the <example> tag.  On closer inspection, it looks like
the closing </pre> tag is never published.

To which buffer's end does (point-max) point here?

Regards
Stéfan