aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-04-28 02:42:43 +0000
committerKarl Heuer1994-04-28 02:42:43 +0000
commita6115fe24c3c796c21216ee3a01a1b7f46b49df9 (patch)
tree4b28817cc9eca47001b9686c54ef2a456a7d6ec7
parent8cd6b35faba1424b7226ade1ab348075d87bf9c5 (diff)
downloademacs-a6115fe24c3c796c21216ee3a01a1b7f46b49df9.tar.gz
emacs-a6115fe24c3c796c21216ee3a01a1b7f46b49df9.zip
Don't make an empty script.
Use signal, not error.
-rw-r--r--lisp/mail/blessmail.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/blessmail.el b/lisp/mail/blessmail.el
index 0218ec74981..2dcb2071ad9 100644
--- a/lisp/mail/blessmail.el
+++ b/lisp/mail/blessmail.el
@@ -39,11 +39,13 @@
39(let ((attr (file-attributes rmail-spool-directory)) 39(let ((attr (file-attributes rmail-spool-directory))
40 modes) 40 modes)
41 (or (eq t (car attr)) 41 (or (eq t (car attr))
42 (error "%s is not a directory" rmail-spool-directory)) 42 (signal 'error
43 (list (format "%s is not a directory" rmail-spool-directory))))
43 (setq modes (nth 8 attr)) 44 (setq modes (nth 8 attr))
45 (insert "#!/bin/sh\n")
44 (cond 46 (cond
45 ((= ?w (aref modes 8)) 47 ((= ?w (aref modes 8))
46 nil) 48 (insert "exit 0"))
47 ((= ?w (aref modes 5)) 49 ((= ?w (aref modes 5))
48 (insert "chgrp " (number-to-string (nth 3 attr)) 50 (insert "chgrp " (number-to-string (nth 3 attr))
49 " $* && chmod g+s $*\n")) 51 " $* && chmod g+s $*\n"))