diff options
| author | Richard M. Stallman | 1994-07-12 07:08:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-07-12 07:08:31 +0000 |
| commit | 9700caaf436728742c4f7dadbbafcd95ab1a8cd5 (patch) | |
| tree | 90171192a5ddab379243d700d5017981746b24e3 | |
| parent | 12dd87fc5641bf995d4b0baf4af9124d8d11803d (diff) | |
| download | emacs-9700caaf436728742c4f7dadbbafcd95ab1a8cd5.tar.gz emacs-9700caaf436728742c4f7dadbbafcd95ab1a8cd5.zip | |
(insert-directory): Fix prev change.
| -rw-r--r-- | lisp/files.el | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/lisp/files.el b/lisp/files.el index fc15ed2090f..5206a5871dd 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2128,21 +2128,23 @@ If WILDCARD, it also runs the shell specified by `shell-file-name'." | |||
| 2128 | switches | 2128 | switches |
| 2129 | (mapconcat 'identity switches " ") | 2129 | (mapconcat 'identity switches " ") |
| 2130 | " " | 2130 | " " |
| 2131 | pattern))) | 2131 | pattern)))) |
| 2132 | ;; SunOS 4.1.3, SVr4 and others need the "." to list the | 2132 | ;; SunOS 4.1.3, SVr4 and others need the "." to list the |
| 2133 | ;; directory if FILE is a symbolic link. | 2133 | ;; directory if FILE is a symbolic link. |
| 2134 | (apply 'call-process | 2134 | (apply 'call-process |
| 2135 | insert-directory-program nil t nil | 2135 | insert-directory-program nil t nil |
| 2136 | (let (list) | 2136 | (let (list) |
| 2137 | (if (consp switches) | 2137 | (if (listp switches) |
| 2138 | (setq list switches) | 2138 | (setq list switches) |
| 2139 | ;; Split the switches at any spaces | 2139 | (if (not (equal switches "")) |
| 2140 | ;; so we can pass separate options as separate args. | 2140 | (progn |
| 2141 | (while (string-match " " switches) | 2141 | ;; Split the switches at any spaces |
| 2142 | (setq list (cons (substring switches 0 (match-beginning 0)) | 2142 | ;; so we can pass separate options as separate args. |
| 2143 | list) | 2143 | (while (string-match " " switches) |
| 2144 | switches (substring switches (match-end 0)))) | 2144 | (setq list (cons (substring switches 0 (match-beginning 0)) |
| 2145 | (setq list (cons switches list))) | 2145 | list) |
| 2146 | switches (substring switches (match-end 0)))) | ||
| 2147 | (setq list (cons switches list))))) | ||
| 2146 | (append list | 2148 | (append list |
| 2147 | (list | 2149 | (list |
| 2148 | (if full-directory-p | 2150 | (if full-directory-p |