Chris McMahan <[EMAIL PROTECTED]> writes: > With the latest muse implementation, I was getting publishing errors > when the resolve function in planner-add-prototol was set to nil > > (planner-add-protocol "vm://" 'planner-vm-browse-url nil) > > So setting it to > (planner-add-protocol "vm://" 'planner-vm-browse-url 'identity) > > was basically a work-around to get the publishing working again. > > I have to agree that the link itself is not a good idea. A function to > just display the text-portion of the link might be best.
Aha! I neglected to read the part of the documentation for muse-url-protocols that said: "RESOLVE-FUN should accept URL as an argument and return the final URL, or nil if no URL should be included." ^^^ This behavior should now be fixed with the following two patches. Thanks for the report! 2005-09-04 17:07:07 GMT Michael Olson <[EMAIL PROTECTED]> patch-221 Summary: Make info:// and man:// not publish a link, handle insert URL edge case. Revision: muse--main--1.0--patch-221 * lisp/muse-protocols.el (muse-url-protocols): info:// and man:// should publish only the description, not the URL. * lisp/muse-publish.el (muse-publish-insert-url): Handle case where we get nil from muse-publish-url by not inserting any text. modified files: ChangeLog lisp/muse-protocols.el lisp/muse-publish.el 2005-09-04 17:02:21 GMT Michael Olson <[EMAIL PROTECTED]> patch-220 Summary: If a URL has a resolve function of nil, publish the description only. Revision: muse--main--1.0--patch-220 * lisp/muse-mode.el (muse-visit-link-default): Make sure we search for a complete tag. * lisp/muse-protocols.el (muse-url-protocols): Improve customization interface. (muse-resolve-url): If nil is given as the resolve function, return nil. * lisp/muse-publish.el (muse-publish-url): If the URL resolves as nil, insert the description instead of the original URL. modified files: ChangeLog lisp/muse-mode.el lisp/muse-protocols.el lisp/muse-publish.el -- Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/ Interests: anime, Debian, XHTML, wiki, Emacs Lisp /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #pulug |_] | \| |_| Jabber: mwolson_at_hcoop.net
pgp4hqLhFH2CS.pgp
Description: PGP signature
_______________________________________________ emacs-wiki-discuss mailing list emacs-wiki-discuss@nongnu.org http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss