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

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

[emacs-wiki-discuss] Browsing emacs-wiki in speedbar or ecb


From: Alex Polite
Subject: [emacs-wiki-discuss] Browsing emacs-wiki in speedbar or ecb
Date: Thu, 12 May 2005 17:08:44 +0200

I've been hacking away at sb-html.el in the speedbar package to make
it into sb-emacswiki.el

Unfortunately my elisp skills are lacking, but I think that this is
the essential part:

           (while (re-search-forward "^\\(*+\\) +\\(.+\\)$" nil t)
             (setq beg (match-end 0))
             (goto-char (match-beginning 0))
             (setq pos-beg (point-marker))
             ;(setq level (1- (read (match-string 1)))
             (setq level (1- (length (match-string-no-properties 1))))
             ;;(re-search-forward (concat "\\s-*</h" (match-string 1) "\\b"))
             (setq title (match-string-no-properties 2))
             (setq alist (cons (cons level (cons title pos-beg)) alist)))
           (nreverse alist)))

When I evaluate speedbar-fetch-dynamic-emacswiki on a an emacswiki
file the cpu usage goes up to 100%. I know I should learn how to
properly debug elisp, but then I thought maybe somebody here can sort
this out in five minutes.

please ....

alex

complete code is here:
http://oivvio.ath.cx/open/sb-emacswiki.el

-- 
Alex Polite
http://flosspick.org




reply via email to

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