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
4
Issues
4
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
de909179
Commit
de909179
authored
Dec 03, 2014
by
Eric S. Raymond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix punctuation glitches in file-tree-walk docstring.
* files.el (file-tree-walk): Fix docstring.
parent
3f33f221
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/files.el
lisp/files.el
+5
-5
No files found.
lisp/ChangeLog
View file @
de909179
2014-12-03 Eric S. Raymond <esr@snark.thyrsus.com>
* files.el (file-tree-walk): Fix docstring.
2014-12-03 Karl Fogel <kfogel@red-bean.com>
Fix bug whereby saving files hung in VC hook.
...
...
lisp/files.el
View file @
de909179
...
...
@@ -730,11 +730,11 @@ The path separator is colon in GNU and GNU-like systems."
(
error
"No such directory found via CDPATH environment variable"
))))
(
defun
file-tree-walk
(
dir
action
&rest
args
)
"Walk DIR executing ACTION
. Each call gets as arguments DIR, a file path,
and optional ARGS. The ACTION is applied to each subdirectory
before descending into it, and if nil is returned at that point
the descent will be prevented. Directory entries are sorted with
string-lessp
"
"Walk DIR executing ACTION
on each path, with ARGS as additional arguments.
Each call gets as arguments DIR, a file path, and optional ARGS.
The ACTION is applied to each subdirectory before descending into
it, and if nil is returned at that point the descent will be
prevented. Directory entries are sorted with string-lessp.
"
(
cond
((
file-directory-p
dir
)
(
or
(
char-equal
?/
(
aref
dir
(
1-
(
length
dir
))))
(
setq
dir
(
file-name-as-directory
dir
)))
...
...
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