emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] Re: New Muse tags: "include" and "markup"


From: Stefan van der Walt
Subject: Re: [emacs-wiki-discuss] Re: New Muse tags: "include" and "markup"
Date: Tue, 30 May 2006 16:29:07 +0200
User-agent: Mutt/1.5.11

On Tue, May 30, 2006 at 09:57:04AM -0400, Michael Olson wrote:
> Stefan van der Walt <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]