[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] bug in emacs-wiki-menu.el and emacs-wiki-publish.el
From: |
liyu |
Subject: |
[emacs-wiki-discuss] bug in emacs-wiki-menu.el and emacs-wiki-publish.el |
Date: |
Mon, 17 Jan 2005 18:37:19 +0800 |
Hi,
Here are 2 bugs during my everyday using emacs-wiki
1. In emacs-wiki-menu-make-from-list(function in
emacs-wiki-menu.el), line
(cddr entry) ; tooltip
should be
(car (cddr entry)) ; tooltip
The former one will cause emacs a error like
mapconcat: Wrong type argument: integerp, "tooltip1"
here is the diff result
2. ``[[linktext][1]]'' in wiki page will cause a broken link
because now version emacs-wiki will treat [1] as a
footnote.(:<)
A simple fix I found is
find these lines in emacs-wiki-publish.el(in body of
emacs-wiki-publishing-markup definition)
;; footnotes section is separated by a horizontal rule in HTML
["^\\(\\* \\)?Footnotes:?\\s-*" 0 "</p><hr />\n<p>\n"]
;; footnote definition/reference (def if at beginning of line)
["\\[\\([1-9][0-9]*\\)\\]" 0 emacs-wiki-markup-footnote]
and move it to the place below these lines
;; replace WikiLinks in the buffer (links to other pages)
;; <nop> before a WikiName guards it from being replaced
;; '''' can be used to add suffixes, such as WikiName''''s
[emacs-wiki-url-or-name-regexp 0 emacs-wiki-markup-link]
["''''" 0 ""]
This fix will make emacs-wiki replace WikiLinks first, then
footnotes. It avoid the wrong action on ``[[linktext][1]]''.
That's all.
Yu Li
address@hidden
- [emacs-wiki-discuss] bug in emacs-wiki-menu.el and emacs-wiki-publish.el,
liyu <=