From: Deepak Goel Date: Thu, 6 Dec 2007 16:30:37 +0000 (+0000) Subject: Fix buggy call to `error'. X-Git-Tag: emacs-pretest-23.0.90~9050 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2e564b0dc50d873996148f653797b46441f0b061;p=emacs.git Fix buggy call to `error'. --- diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog index bd20dfbed45..f5d7c83985d 100644 --- a/lisp/erc/ChangeLog +++ b/lisp/erc/ChangeLog @@ -1,3 +1,7 @@ +2007-12-06 D. Goel + + * erc-match.el (erc-add-entry-to-list): Fix buggy call to `error'. + 2007-12-01 Glenn Morris * erc-backend.el (erc-server-send-ping): Move after definition of diff --git a/lisp/erc/erc-match.el b/lisp/erc/erc-match.el index a4752588ebd..757ef66ea17 100644 --- a/lisp/erc/erc-match.el +++ b/lisp/erc/erc-match.el @@ -299,7 +299,7 @@ Completion is performed on the optional alist COMPLETIONS." (lambda (x) (not (erc-member-ignore-case (car x) (symbol-value list))))))) (if (erc-member-ignore-case entry (symbol-value list)) - (error (format "\"%s\" is already on the list" entry)) + (error "\"%s\" is already on the list" entry) (set list (cons entry (symbol-value list)))))) (defun erc-remove-entry-from-list (list prompt)