Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9700caaf
Commit
9700caaf
authored
Jul 12, 1994
by
Richard M. Stallman
Browse files
(insert-directory): Fix prev change.
parent
12dd87fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
lisp/files.el
lisp/files.el
+11
-9
No files found.
lisp/files.el
View file @
9700caaf
...
...
@@ -2128,21 +2128,23 @@ If WILDCARD, it also runs the shell specified by `shell-file-name'."
switches
(
mapconcat
'identity
switches
" "
)
" "
pattern
)))
pattern
)))
)
;; SunOS 4.1.3, SVr4 and others need the "." to list the
;; directory if FILE is a symbolic link.
(
apply
'call-process
insert-directory-program
nil
t
nil
(
let
(
list
)
(
if
(
cons
p
switches
)
(
if
(
list
p
switches
)
(
setq
list
switches
)
;; Split the switches at any spaces
;; so we can pass separate options as separate args.
(
while
(
string-match
" "
switches
)
(
setq
list
(
cons
(
substring
switches
0
(
match-beginning
0
))
list
)
switches
(
substring
switches
(
match-end
0
))))
(
setq
list
(
cons
switches
list
)))
(
if
(
not
(
equal
switches
""
))
(
progn
;; Split the switches at any spaces
;; so we can pass separate options as separate args.
(
while
(
string-match
" "
switches
)
(
setq
list
(
cons
(
substring
switches
0
(
match-beginning
0
))
list
)
switches
(
substring
switches
(
match-end
0
))))
(
setq
list
(
cons
switches
list
)))))
(
append
list
(
list
(
if
full-directory-p
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment