[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] [patch] Re: Problem with publishing planner files
From: |
Sacha Chua |
Subject: |
[emacs-wiki-discuss] [patch] Re: Problem with publishing planner files |
Date: |
Fri, 30 Dec 2005 17:30:24 +0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
Arnaud Bailly <address@hidden> writes:
> After having updated muse with tla from muse--main, I have problems
> with publishing my planner pages. The problem seems to occur in the "*
> Notes" section. I have attached a backtrace of the error and a sample
> file on which publishing chokes.
I tracked this down to some markup functions not explicitly returning nil.
muse-publish-markup-region checks the return value to see if it's non-nil.
It should probably check if it's a string, actually... That would be safer.
Suggested fix:
--- orig/lisp/muse-publish.el
+++ mod/lisp/muse-publish.el
@@ -453,7 +453,7 @@
((symbolp repl)
(symbol-value repl))
(t repl))))
- (if text
+ (if (stringp text)
(replace-match text t))))
(if (and muse-publishing-last-position
(= pos muse-publishing-last-position))
--
Sacha Chua <address@hidden> - open source, free software geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, public speaking
sachac on irc.freenode.net#emacs . YM: sachachua83