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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
cc2f3b64
Commit
cc2f3b64
authored
Jun 17, 1993
by
Jim Blandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ls-lisp.el (insert-directory): If no handler, convert SWITCHES
from a string to a list of characters.
parent
7eb9ba41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/ls-lisp.el
lisp/ls-lisp.el
+3
-1
No files found.
lisp/ls-lisp.el
View file @
cc2f3b64
...
@@ -62,10 +62,12 @@ It does not support ordinary shell wildcards; instead, it allows
...
@@ -62,10 +62,12 @@ It does not support ordinary shell wildcards; instead, it allows
regular expressions to match file names.
regular expressions to match file names.
The switches that work are: A a c i r S s t u"
The switches that work are: A a c i r S s t u"
(
let
(
handler
(
(
find-file-name-handler
file
)))
(
let
(
(
handler
(
find-file-name-handler
file
)))
(
if
handler
(
if
handler
(
funcall
handler
'insert-directory
file
switches
(
funcall
handler
'insert-directory
file
switches
wildcard
full-directory-p
)
wildcard
full-directory-p
)
;; Convert SWITCHES to a list of characters.
(
setq
switches
(
append
switches
nil
))
(
if
wildcard
(
if
wildcard
(
setq
wildcard
(
file-name-nondirectory
file
)
; actually emacs regexp
(
setq
wildcard
(
file-name-nondirectory
file
)
; actually emacs regexp
;; perhaps convert it from shell to emacs syntax?
;; perhaps convert it from shell to emacs syntax?
...
...
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