aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-06-25 23:45:10 -0700
committerGlenn Morris2014-06-25 23:45:10 -0700
commita0e2175a9055f2ea8ae03744d495e5179885029d (patch)
treec643bced992e8dccee1117b8aa6502244e0136f1
parent18b345686d6a6f00eadb866b541b4f458fcfdb02 (diff)
downloademacs-a0e2175a9055f2ea8ae03744d495e5179885029d.tar.gz
emacs-a0e2175a9055f2ea8ae03744d495e5179885029d.zip
* find-func.el (find-function-C-source-directory): Use file-accessible-directory-p
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/find-func.el3
2 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7163de09218..2ed99cddefb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12014-06-26 Glenn Morris <rgm@gnu.org> 12014-06-26 Glenn Morris <rgm@gnu.org>
2 2
3 * emacs-lisp/find-func.el (find-function-C-source-directory):
4 Use file-accessible-directory-p.
5
3 * ps-samp.el: Make it slightly less awful. 6 * ps-samp.el: Make it slightly less awful.
4 (ps-rmail-mode-hook, ps-gnus-article-prepare-hook, ps-vm-mode-hook): 7 (ps-rmail-mode-hook, ps-gnus-article-prepare-hook, ps-vm-mode-hook):
5 (ps-gnus-summary-setup, ps-info-mode-hook): Use [print] key. 8 (ps-gnus-summary-setup, ps-info-mode-hook): Use [print] key.
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index 5c404ce0468..c372117b104 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -178,8 +178,7 @@ LIBRARY should be a string (the name of the library)."
178 178
179(defvar find-function-C-source-directory 179(defvar find-function-C-source-directory
180 (let ((dir (expand-file-name "src" source-directory))) 180 (let ((dir (expand-file-name "src" source-directory)))
181 (when (and (file-directory-p dir) (file-readable-p dir)) 181 (if (file-accessible-directory-p dir) dir))
182 dir))
183 "Directory where the C source files of Emacs can be found. 182 "Directory where the C source files of Emacs can be found.
184If nil, do not try to find the source code of functions and variables 183If nil, do not try to find the source code of functions and variables
185defined in C.") 184defined in C.")