aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2013-12-17 20:19:08 -0800
committerGlenn Morris2013-12-17 20:19:08 -0800
commit150622a1734d33e7d72f6161d645f38b88f4e839 (patch)
tree013dacef888c27ec21bd1491d7c588814b213e4b /src
parent09af58633c2a83b61dee86bcf3794122b101671a (diff)
downloademacs-150622a1734d33e7d72f6161d645f38b88f4e839.tar.gz
emacs-150622a1734d33e7d72f6161d645f38b88f4e839.zip
* src/lread.c (openp): Further fix for previous.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lread.c b/src/lread.c
index b8b9189719b..e0b9533fa60 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1450,7 +1450,8 @@ static Lisp_Object Qdir_ok;
1450 but store the found remote file name in *STOREPTR. 1450 but store the found remote file name in *STOREPTR.
1451 1451
1452 If NEWER is true, try all SUFFIXes and return the result for the 1452 If NEWER is true, try all SUFFIXes and return the result for the
1453 newest file that exists. Does not apply to remote files. */ 1453 newest file that exists. Does not apply to remote files,
1454 or if PREDICATE is specified. */
1454 1455
1455int 1456int
1456openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, 1457openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes,
@@ -1623,7 +1624,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes,
1623 1624
1624 if (fd >= 0) 1625 if (fd >= 0)
1625 { 1626 {
1626 if (newer) 1627 if (newer && !NATNUMP (predicate))
1627 { 1628 {
1628 struct timespec mtime = get_stat_mtime (&st); 1629 struct timespec mtime = get_stat_mtime (&st);
1629 1630