summaryrefslogtreecommitdiff
path: root/lisp/man.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-05-09 00:02:00 -0700
committerGlenn Morris <rgm@gnu.org>2014-05-09 00:02:00 -0700
commit1d75432d5c42a7f7c13486c7421f959132179b5b (patch)
tree946965f0033dbab3c9725b86d7875ab61d8e0a57 /lisp/man.el
parentc578a99338e44511fc3792f1d14ea2193cb58aa5 (diff)
downloademacs-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/man.el')
-rw-r--r--lisp/man.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 7a095981ebd..35fab2040a5 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1,7 +1,6 @@
;;; man.el --- browse UNIX manual pages -*- coding: utf-8 -*-
-;; Copyright (C) 1993-1994, 1996-1997, 2001-2014 Free Software
-;; Foundation, Inc.
+;; Copyright (C) 1993-1994, 1996-1997, 2001-2014 Free Software Foundation, Inc.
;; Author: Barry A. Warsaw <bwarsaw@cen.com>
;; Maintainer: emacs-devel@gnu.org
@@ -695,9 +694,8 @@ a \"/\" as a local filename. The function returns either `man-db'
(with-temp-buffer
(let ((default-directory
;; Ensure that `default-directory' exists and is readable.
- (if (and (file-directory-p default-directory)
- (file-readable-p default-directory))
- default-directory
+ (if (file-accessible-directory-p default-directory)
+ default-directory
(expand-file-name "~/"))))
(ignore-errors
(call-process manual-program nil t nil "--help")))