Rename argument to avoid name-clash with global `top-level'.
2013-09-19 Glenn Morris <rgm@gnu.org>
+ * eshell/em-unix.el (eshell-remove-entries):
+ Rename argument to avoid name-clash with global `top-level'.
+
* eshell/esh-proc.el (eshell-kill-process-function):
Remove eshell-reset-after-proc from eshell-kill-hook if present.
(eshell-reset-after-proc): Remove unused arg `proc'.
(Info-menu (car args))
(setq args (cdr args)))))
-(defun eshell-remove-entries (files &optional top-level)
+(defun eshell-remove-entries (files &optional toplevel)
"Remove all of the given FILES, perhaps interactively."
(while files
(if (string-match "\\`\\.\\.?\\'"
(file-name-nondirectory (car files)))
- (if top-level
+ (if toplevel
(eshell-error "rm: cannot remove `.' or `..'\n"))
(if (and (file-directory-p (car files))
(not (file-symlink-p (car files))))