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

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

[emacs-wiki-discuss] possible bug?


From: Richard Klinda
Subject: [emacs-wiki-discuss] possible bug?
Date: Sat, 24 Dec 2005 20:01:30 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (Jumbo Shrimp, linux)

Hello, if I have a wiki word or named link ([[http://...][foo]]) at the
beginning of a line, I get the following warning upon publishing (and
the file doesn't get published correctly):

,----
| (458) (muse/warning) ErcInit: Error occurred: (buffer-read-only  
*muse-temp*<2>)
|
| ((insert-file-contents file)
|  (muse-publish-markup-buffer
|   (muse-page-name file)
|   style)
|  (let
|      ((backup-inhibited t))
|    (write-file output-path))
|  (muse-style-run-hooks :final style file output-path target))
`----

Backtrace:

,----
| Debugger entered--Lisp error: (buffer-read-only #<buffer " *muse-temp*<3>">)
|   insert("<lisp>(insert-file \"addon/header\")</lisp>")
|   (if (and (not ...) (file-readable-p file-or-string)) (setq end (+ beg ...)) 
(insert file-or-string) (setq end (point)))
|   (let ((beg ...) end) (if (and ... ...) (setq end ...) (insert 
file-or-string) (setq end ...)) (save-restriction (narrow-to-region beg end) 
(muse-publish-markup ... ...)))
|   muse-insert-file-or-string("<lisp>(insert-file \"addon/header\")</lisp>" 
"FooBar")
`----

Example file content that triggers the error (FooBar probably should
exist):

,----
| FooBar
`----

Workaround: make sure that no line begins at column 0 with a wikiword:

,----
|  FooBar  <- notice the extra space at the beginning
`----

Now the file is published without error.

Any ideas?

-- 
...sutongi tti olleh




reply via email to

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