]> code.delx.au - gnu-emacs/commitdiff
(command-line-1): Implement -scriptload.
authorRichard M. Stallman <rms@gnu.org>
Tue, 9 Aug 2005 11:29:43 +0000 (11:29 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 9 Aug 2005 11:29:43 +0000 (11:29 +0000)
lisp/startup.el

index 61b56e7babf8a0c5c5cff4b108ea1164fb99dcef..ca71ef4313787a5359cf03a006db70e4d5b4486e 100644 (file)
@@ -1635,6 +1635,13 @@ normal otherwise."
                      (setq file file-ex))
                    (load file nil t)))
 
+                ((member argi '("-scriptload"))
+                 (let* ((file (command-line-normalize-file-name
+                               (or argval (pop command-line-args-left))))
+                        ;; Take file from default dir.
+                        (file-ex (expand-file-name file)))
+                   (load file-ex nil t t)))
+
                 ((equal argi "-insert")
                  (setq tem (or argval (pop command-line-args-left)))
                  (or (stringp tem)