aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
authorStefan Monnier2011-03-06 16:22:16 -0500
committerStefan Monnier2011-03-06 16:22:16 -0500
commit0d6459dfb52188481bfd6bb53f1b2f653ecd6a5d (patch)
tree306b87fc2903ad23343f3c84be1cccfa72e5a97e /src/lread.c
parent798cb64441228d473f7bdd213183c70fb582595c (diff)
parent892777baa1739fa5f1f2d1c2975488c3e6f57bae (diff)
downloademacs-0d6459dfb52188481bfd6bb53f1b2f653ecd6a5d.tar.gz
emacs-0d6459dfb52188481bfd6bb53f1b2f653ecd6a5d.zip
Merge from trunk
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lread.c b/src/lread.c
index 77b397a03df..c8c07bed476 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1509,7 +1509,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, Lisp_Object *sto
1509 Lisp_Object tmp = call1 (predicate, string); 1509 Lisp_Object tmp = call1 (predicate, string);
1510 exists = !NILP (tmp) 1510 exists = !NILP (tmp)
1511 && (EQ (tmp, Qdir_ok) 1511 && (EQ (tmp, Qdir_ok)
1512 || !NILP (Ffile_directory_p (string))); 1512 || NILP (Ffile_directory_p (string)));
1513 } 1513 }
1514 1514
1515 if (exists) 1515 if (exists)
@@ -1527,8 +1527,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, Lisp_Object *sto
1527 1527
1528 encoded_fn = ENCODE_FILE (string); 1528 encoded_fn = ENCODE_FILE (string);
1529 pfn = SSDATA (encoded_fn); 1529 pfn = SSDATA (encoded_fn);
1530 exists = (stat (pfn, &st) >= 0 1530 exists = (stat (pfn, &st) == 0 && ! S_ISDIR (st.st_mode));
1531 && (st.st_mode & S_IFMT) != S_IFDIR);
1532 if (exists) 1531 if (exists)
1533 { 1532 {
1534 /* Check that we can access or open it. */ 1533 /* Check that we can access or open it. */
@@ -4537,7 +4536,7 @@ This variable is automatically set from the file variables of an interpreted
4537 4536
4538 Qdir_ok = intern_c_string ("dir-ok"); 4537 Qdir_ok = intern_c_string ("dir-ok");
4539 staticpro (&Qdir_ok); 4538 staticpro (&Qdir_ok);
4540 4539
4541 Qdo_after_load_evaluation = intern_c_string ("do-after-load-evaluation"); 4540 Qdo_after_load_evaluation = intern_c_string ("do-after-load-evaluation");
4542 staticpro (&Qdo_after_load_evaluation) ; 4541 staticpro (&Qdo_after_load_evaluation) ;
4543 4542