aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Goel2007-12-06 18:18:13 +0000
committerDeepak Goel2007-12-06 18:18:13 +0000
commit26b4a51d1e6ef277c93f0d385d76a0fa9af69e7f (patch)
treedf2fe9bd005e02fe2f82f269ce91a3e07c5781b5
parent8c16bd8c3566df3b0cbbc28692a23a378604f423 (diff)
downloademacs-26b4a51d1e6ef277c93f0d385d76a0fa9af69e7f.tar.gz
emacs-26b4a51d1e6ef277c93f0d385d76a0fa9af69e7f.zip
Fix buggy calls to `error'.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/gnus/ChangeLog1
-rw-r--r--lisp/gnus/pop3.el2
-rw-r--r--lisp/mail/feedmail.el2
-rw-r--r--lisp/mail/rmailout.el2
-rw-r--r--lisp/mail/uce.el2
6 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1f36c708900..3c3c5b8aa45 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12007-12-06 D. Goel <deego3@gmail.com> 12007-12-06 D. Goel <deego3@gmail.com>
2 2
3 * mail/uce.el (uce-reply-to-uce): Ditto.
4
5 * mail/rmailout.el (rmail-output): Ditto.
6
7 * mail/feedmail.el (feedmail-dump-message-to-queue): Ditto.
8
3 * whitespace.el (whitespace-write-file-hook): Ditto. 9 * whitespace.el (whitespace-write-file-hook): Ditto.
4 10
5 * wdired.el (wdired-check-kill-buffer): Ditto. 11 * wdired.el (wdired-check-kill-buffer): Ditto.
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 27b3a1586b7..74b01dbe94a 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,6 @@
12007-12-06 D. Goel <deego3@gmail.com> 12007-12-06 D. Goel <deego3@gmail.com>
2 2
3 * pop3.el (pop3-read-response): Ditto.
3 4
4 * gnus-art.el (article-make-date-line): Fix buggy call to `error'. 5 * gnus-art.el (article-make-date-line): Fix buggy call to `error'.
5 * gnus-start.el (gnus-load): Ditto. 6 * gnus-start.el (gnus-load): Ditto.
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el
index d152c2480ad..a48e8bc6cfe 100644
--- a/lisp/gnus/pop3.el
+++ b/lisp/gnus/pop3.el
@@ -314,7 +314,7 @@ Return the response string if optional second argument is non-nil."
314 (setq match-end (point)) 314 (setq match-end (point))
315 (goto-char pop3-read-point) 315 (goto-char pop3-read-point)
316 (if (looking-at "-ERR") 316 (if (looking-at "-ERR")
317 (error (buffer-substring (point) (- match-end 2))) 317 (error "%s" (buffer-substring (point) (- match-end 2)))
318 (if (not (looking-at "+OK")) 318 (if (not (looking-at "+OK"))
319 (progn (setq pop3-read-point match-end) nil) 319 (progn (setq pop3-read-point match-end) nil)
320 (setq pop3-read-point match-end) 320 (setq pop3-read-point match-end)
diff --git a/lisp/mail/feedmail.el b/lisp/mail/feedmail.el
index e75387f48ac..7fb40baa7c8 100644
--- a/lisp/mail/feedmail.el
+++ b/lisp/mail/feedmail.el
@@ -1922,7 +1922,7 @@ mapped to mostly alphanumerics for safety."
1922 ;; progn to get nil result no matter what 1922 ;; progn to get nil result no matter what
1923 (progn (make-directory queue-directory t) nil) 1923 (progn (make-directory queue-directory t) nil)
1924 (file-accessible-directory-p queue-directory) 1924 (file-accessible-directory-p queue-directory)
1925 (error (concat "FQM: Message not queued; trouble with directory " queue-directory))) 1925 (error "%s" (concat "FQM: Message not queued; trouble with directory " queue-directory)))
1926 (let ((filename) 1926 (let ((filename)
1927 (is-fqm) 1927 (is-fqm)
1928 (is-in-this-dir) 1928 (is-in-this-dir)
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el
index 1e9f8379b7b..234277320ad 100644
--- a/lisp/mail/rmailout.el
+++ b/lisp/mail/rmailout.el
@@ -380,7 +380,7 @@ The optional fourth argument FROM-GNUS is set when called from GNUS."
380 (rmail-toggle-header)) 380 (rmail-toggle-header))
381 (if (and (> count 0) (not next-message-p)) 381 (if (and (> count 0) (not next-message-p))
382 (progn 382 (progn
383 (error 383 (error "%s"
384 (save-excursion 384 (save-excursion
385 (set-buffer rmailbuf) 385 (set-buffer rmailbuf)
386 (format "Only %d message%s appended" num-appended 386 (format "Only %d message%s appended" num-appended
diff --git a/lisp/mail/uce.el b/lisp/mail/uce.el
index 5a4e01ae9fc..54933993068 100644
--- a/lisp/mail/uce.el
+++ b/lisp/mail/uce.el
@@ -239,7 +239,7 @@ address, and postmaster of the mail relay used."
239 (full-header-p (and (eq uce-mail-reader 'rmail) 239 (full-header-p (and (eq uce-mail-reader 'rmail)
240 (not (rmail-msg-is-pruned))))) 240 (not (rmail-msg-is-pruned)))))
241 (or (get-buffer message-buffer) 241 (or (get-buffer message-buffer)
242 (error (concat "No buffer " message-buffer ", cannot find UCE"))) 242 (error "%s" (concat "No buffer " message-buffer ", cannot find UCE")))
243 (switch-to-buffer message-buffer) 243 (switch-to-buffer message-buffer)
244 ;; We need the message with headers pruned. 244 ;; We need the message with headers pruned.
245 (if full-header-p 245 (if full-header-p