Commit de909179 authored by Eric S. Raymond's avatar Eric S. Raymond

Fix punctuation glitches in file-tree-walk docstring.

* files.el (file-tree-walk): Fix docstring.
parent 3f33f221
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.
......
......@@ -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)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment