[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: about muse-browse-result
From: |
Michael Olson |
Subject: |
[emacs-wiki-discuss] Re: about muse-browse-result |
Date: |
Mon, 08 May 2006 04:59:21 -0400 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
"kid kid" <address@hidden> writes:
> Hello! I'm using muse 3.02.6 and GNU Emacs 22.0.50.1 . After I wrote a
> page and publish the project using C-c C-p, I use M-x
> muse-browse-result to preview the result. But it look for the
> published file in the current directory ignoring what I've defined in
> my muse-project-alist and of course, it can't find the published file
> in the current directory where the source file is put. I follow the
> function of muse-browse-result and find that it call
> muse-publish-get-style to fetch the styles that may contains the
> ``:path'' property, but muse-publish-get-style simply return value in
> muse-publishing-styles, totally ignores what's defined in
> muse-project-alist. It says the variable ``muse-publishing-styles''
> get automatically generated when loading publishing styles, but it
> seems not contains the publishing path? So I hacked
> muse-publish-get-style form
>
>[snip]
Thanks for the detailed report! I had known about this for a while
and filed a bug in our bug-tracker, but had not fixed it yet. I've
now committed a fix for this behavior in the development version of
Muse.
I chose to modify `muse-publish-get-style' to accept an optional
argument to specify the styles to use. Then, I modified
`muse-browse-result' to take the styles in the current project and
prepend their base name before passing to `muse-publish-get-styles',
so that completion works.
--
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
/` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
|_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS
pgpQpI4jlk2KB.pgp
Description: PGP signature