diff options
author | Glenn Morris <rgm@gnu.org> | 2014-05-09 00:02:00 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2014-05-09 00:02:00 -0700 |
commit | 1d75432d5c42a7f7c13486c7421f959132179b5b (patch) | |
tree | 946965f0033dbab3c9725b86d7875ab61d8e0a57 /lisp/printing.el | |
parent | c578a99338e44511fc3792f1d14ea2193cb58aa5 (diff) | |
download | emacs-1d75432d5c42a7f7c13486c7421f959132179b5b.tar.gz |
Use file-accessible-directory-p in some more places
* lisp/files.el (file-expand-wildcards):
* lisp/man.el (Man-support-local-filenames):
* lisp/printing.el (pr-i-directory, pr-interface-directory):
* lisp/progmodes/grep.el (lgrep, rgrep):
* lisp/textmodes/ispell.el (ispell-call-process)
(ispell-call-process-region, ispell-start-process)
(ispell-init-process):
* lisp/mh-e/mh-e.el (mh-variants):
Use file-accessible-directory-p.
Diffstat (limited to 'lisp/printing.el')
-rw-r--r-- | lisp/printing.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/printing.el b/lisp/printing.el index bb7e3843c32..f24c0ab4297 100644 --- a/lisp/printing.el +++ b/lisp/printing.el @@ -6543,8 +6543,7 @@ COMMAND.exe, COMMAND.bat and COMMAND.com in this order." (defun pr-i-directory () - (or (and (file-directory-p pr-i-directory) - (file-readable-p pr-i-directory)) + (or (file-accessible-directory-p pr-i-directory) (error "Please specify be a readable directory"))) @@ -6552,8 +6551,7 @@ COMMAND.exe, COMMAND.bat and COMMAND.com in this order." (and pr-buffer-verbose (message "You can use M-TAB or ESC TAB for file completion")) (let ((dir (widget-value widget))) - (and (file-directory-p dir) - (file-readable-p dir) + (and (file-accessible-directory-p dir) (setq pr-i-directory dir)))) |