From 0f0cef08e6f9fc6cf771bea57cf8edd3c3dfc44d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 9 Aug 2005 11:29:43 +0000 Subject: [PATCH] (command-line-1): Implement -scriptload. --- lisp/startup.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisp/startup.el b/lisp/startup.el index 61b56e7babf..ca71ef43137 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -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) -- 2.39.2