diff options
| author | Richard M. Stallman | 2005-08-09 11:29:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-08-09 11:29:43 +0000 |
| commit | 0f0cef08e6f9fc6cf771bea57cf8edd3c3dfc44d (patch) | |
| tree | aef6b14889dab50a287b7d51e2a85f88813172ed | |
| parent | 882effdb17c9755edd6f064be58d87d5b8911d9b (diff) | |
| download | emacs-0f0cef08e6f9fc6cf771bea57cf8edd3c3dfc44d.tar.gz emacs-0f0cef08e6f9fc6cf771bea57cf8edd3c3dfc44d.zip | |
(command-line-1): Implement -scriptload.
| -rw-r--r-- | lisp/startup.el | 7 |
1 files changed, 7 insertions, 0 deletions
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." | |||
| 1635 | (setq file file-ex)) | 1635 | (setq file file-ex)) |
| 1636 | (load file nil t))) | 1636 | (load file nil t))) |
| 1637 | 1637 | ||
| 1638 | ((member argi '("-scriptload")) | ||
| 1639 | (let* ((file (command-line-normalize-file-name | ||
| 1640 | (or argval (pop command-line-args-left)))) | ||
| 1641 | ;; Take file from default dir. | ||
| 1642 | (file-ex (expand-file-name file))) | ||
| 1643 | (load file-ex nil t t))) | ||
| 1644 | |||
| 1638 | ((equal argi "-insert") | 1645 | ((equal argi "-insert") |
| 1639 | (setq tem (or argval (pop command-line-args-left))) | 1646 | (setq tem (or argval (pop command-line-args-left))) |
| 1640 | (or (stringp tem) | 1647 | (or (stringp tem) |