diff lisp/man.el @ 87139:f358a2fd5895

Fix buggy calls to `error'.
author Deepak Goel <deego@gnufans.org>
date Thu, 06 Dec 2007 17:56:42 +0000
parents a5e1b70f3ddf
children 8ca08c950560 2fcaae6177a5
line wrap: on
line diff
--- a/lisp/man.el	Thu Dec 06 17:25:03 2007 +0000
+++ b/lisp/man.el	Thu Dec 06 17:56:42 2007 +0000
@@ -1077,7 +1077,7 @@
 	    (Man-notify-when-ready Man-buffer))
 
 	(if err-mess
-	    (error err-mess))
+	    (error "%s" err-mess))
 	))))
 
 
@@ -1338,7 +1338,7 @@
 Actually the section moved to is described by `Man-see-also-regexp'."
   (interactive)
   (if (not (Man-find-section Man-see-also-regexp))
-      (error (concat "No " Man-see-also-regexp
+      (error "%s" (concat "No " Man-see-also-regexp
 		     " section found in the current manpage"))))
 
 (defun Man-possibly-hyphenated-word ()