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

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

[emacs-wiki-discuss] emacs-wiki and less aggressive link checking


From: Sacha Chua
Subject: [emacs-wiki-discuss] emacs-wiki and less aggressive link checking
Date: Sat, 23 Jul 2005 17:23:18 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

The following patch makes emacs-wiki-published-name stop refreshing
the file alist all the time. With that in place, my page publishing is
back to decent times...

--- orig/emacs-wiki-publish.el
+++ mod/emacs-wiki-publish.el
@@ -1104,7 +1104,7 @@
     ;; Make NAME relative to CURRENT path
     (setq name (file-relative-name
                 (emacs-wiki-transform-name
-                 (or (emacs-wiki-page-file name t) name))
+                 (or (emacs-wiki-page-file name) name))
                 (file-name-directory
                  (emacs-wiki-transform-name current)))))
   ;; Check to see if NAME is a path and transform it nicely, getting
@@ -1997,7 +1997,9 @@
   ;; avoid marking up urls that appear to be inside existing HTML
   (save-match-data
     (when (and (not (eq (char-after (point)) ?\"))
-               (not (eq (char-after (point)) ?\>)))
+               (not (eq (char-after (point)) ?\>))
+               (not (eq (char-before (match-beginning 0)) ?\"))
+               (not (eq (char-before (match-beginning 0)) ?\/)))
       (let* (string
              (wiki-link (match-string 0))
              (url (emacs-wiki-link-url wiki-link))

-- 
Sacha Chua <address@hidden> - open source geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, juggling
sachac on irc.freenode.net#emacs . YM: sachachua83




reply via email to

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