http-emacs-dev
[Top][All Lists]
Advanced

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

[Http-emacs-dev] Infinite loop in swd-nick


From: David Hansen
Subject: [Http-emacs-dev] Infinite loop in swd-nick
Date: Wed, 07 Apr 2004 04:12:31 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Hi,

`swd-nick'  loops indefinitely if there is no wiki with the
given URL base.

The patch will fix it but `swd-nick' will return `nil' if
it doesn't find a wiki in `swd-wiki-defs-list'.  Don't know
if it's maybe better to add a call to `error' there.

-- David
diff -x CVS -ruN http-emacs/simple-wiki-definitions.el 
http-emacs-new/simple-wiki-definitions.el
--- http-emacs/simple-wiki-definitions.el       2003-07-01 18:33:13.000000000 
+0200
+++ http-emacs-new/simple-wiki-definitions.el   2004-04-07 03:55:13.000000000 
+0200
@@ -121,7 +121,7 @@
         (nick nil)
         )
     (if url-base
-       (while (or wiki-defs-list (not nick))
+       (while (and wiki-defs-list (not nick))
          (if (equal (cadar wiki-defs-list) url-base)
              (setq nick (caar wiki-defs-list)))
          (setq wiki-defs-list (cdr wiki-defs-list)))

Attachment: pgpufwPRjKFVf.pgp
Description: PGP signature


reply via email to

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