diff options
| author | Richard M. Stallman | 1994-05-01 06:41:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-01 06:41:08 +0000 |
| commit | df8af8a8af6beecb0923fe5cd9a11eb60b6e15da (patch) | |
| tree | 0cd97000d2c3a0123ab2f54ccdcb05290ff048d6 | |
| parent | 716509bb37997c04081ebf64c5e6fb0597ee2fb7 (diff) | |
| download | emacs-df8af8a8af6beecb0923fe5cd9a11eb60b6e15da.tar.gz emacs-df8af8a8af6beecb0923fe5cd9a11eb60b6e15da.zip | |
Don't load site-init.el.
Print the mail directory we tested, on standard output.
Don't load paths.el either--we now run in emacs, not temacs.
| -rw-r--r-- | lisp/mail/blessmail.el | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/lisp/mail/blessmail.el b/lisp/mail/blessmail.el index 58974552396..843a616d03e 100644 --- a/lisp/mail/blessmail.el +++ b/lisp/mail/blessmail.el | |||
| @@ -32,9 +32,11 @@ | |||
| 32 | 32 | ||
| 33 | ;;; Code: | 33 | ;;; Code: |
| 34 | 34 | ||
| 35 | (message "Using load-path %s" load-path) | 35 | ;; These are no longer needed because we run this in emacs instead of temacs. |
| 36 | (load "paths.el") | 36 | ;; (message "Using load-path %s" load-path) |
| 37 | (load "site-init" t) | 37 | ;; (load "paths.el") |
| 38 | ;; It is not safe to load site-init.el here, because it might have things in it | ||
| 39 | ;; that won't load properly unless all the rest of Emacs is loaded. | ||
| 38 | 40 | ||
| 39 | (let ((dirname (directory-file-name rmail-spool-directory)) | 41 | (let ((dirname (directory-file-name rmail-spool-directory)) |
| 40 | linkname attr modes) | 42 | linkname attr modes) |
| @@ -49,17 +51,18 @@ | |||
| 49 | (list (format "%s is not a directory" rmail-spool-directory)))) | 51 | (list (format "%s is not a directory" rmail-spool-directory)))) |
| 50 | (setq modes (nth 8 attr)) | 52 | (setq modes (nth 8 attr)) |
| 51 | (insert "#!/bin/sh\n") | 53 | (insert "#!/bin/sh\n") |
| 52 | (cond | 54 | (cond ((= ?w (aref modes 8)) |
| 53 | ((= ?w (aref modes 8)) | 55 | ;; Nothing needs to be done. |
| 54 | (insert "exit 0")) | 56 | ) |
| 55 | ((= ?w (aref modes 5)) | 57 | ((= ?w (aref modes 5)) |
| 56 | (insert "chgrp " (number-to-string (nth 3 attr)) | 58 | (insert "chgrp " (number-to-string (nth 3 attr)) |
| 57 | " $* && chmod g+s $*\n")) | 59 | " $* && chmod g+s $*\n")) |
| 58 | ((= ?w (aref modes 2)) | 60 | ((= ?w (aref modes 2)) |
| 59 | (insert "chown " (number-to-string (nth 2 attr)) | 61 | (insert "chown " (number-to-string (nth 2 attr)) |
| 60 | " $* && chmod u+s $*\n")) | 62 | " $* && chmod u+s $*\n")) |
| 61 | (t | 63 | (t |
| 62 | (insert "chown root $* && chmod u+s $*\n")))) | 64 | (insert "chown root $* && chmod u+s $*\n"))) |
| 65 | (insert "echo mail directory = " dirname "\n")) | ||
| 63 | (write-region (point-min) (point-max) "blessmail") | 66 | (write-region (point-min) (point-max) "blessmail") |
| 64 | (kill-emacs) | 67 | (kill-emacs) |
| 65 | 68 | ||