aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-05-29 06:02:13 +0200
committerLars Ingebrigtsen2021-05-29 06:02:13 +0200
commitcee502ea18a43614a2c7ac76a48befdff038e12e (patch)
treeb50f5841a9f8c313cd1aaeab8dcfd6fe69e5c694
parentbff3edfd17ede3f6c9ae2f2a3588c155d6d11de4 (diff)
downloademacs-cee502ea18a43614a2c7ac76a48befdff038e12e.tar.gz
emacs-cee502ea18a43614a2c7ac76a48befdff038e12e.zip
Improve the file-accessible-directory-p doc strin
* src/fileio.c (Ffile_accessible_directory_p): Don't use the phrase "directory name spec", which isn't defined (bug#18201).
-rw-r--r--src/fileio.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 741e297d29c..caf077e2fbf 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2987,12 +2987,16 @@ file_directory_p (Lisp_Object file)
2987DEFUN ("file-accessible-directory-p", Ffile_accessible_directory_p, 2987DEFUN ("file-accessible-directory-p", Ffile_accessible_directory_p,
2988 Sfile_accessible_directory_p, 1, 1, 0, 2988 Sfile_accessible_directory_p, 1, 1, 0,
2989 doc: /* Return t if FILENAME names a directory you can open. 2989 doc: /* Return t if FILENAME names a directory you can open.
2990For the value to be t, FILENAME must specify the name of a directory 2990This means that FILENAME must specify the name of a directory, and the
2991as a file, and the directory must allow you to open files in it. In 2991directory must allow you to open files in it. If this isn't the case,
2992order to use a directory as a buffer's current directory, this 2992return nil.
2993predicate must return true. A directory name spec may be given 2993
2994instead; then the value is t if the directory so specified exists and 2994FILENAME can either be a directory name (eg. \"/tmp/foo/\") or the
2995really is a readable and searchable directory. */) 2995file name of a file which is a directory (eg. \"/tmp/foo\", without
2996the final slash).
2997
2998In order to use a directory as a buffer's current directory, this
2999predicate must return true. */)
2996 (Lisp_Object filename) 3000 (Lisp_Object filename)
2997{ 3001{
2998 Lisp_Object absname; 3002 Lisp_Object absname;