From: Glenn Morris Date: Wed, 18 Dec 2013 04:19:08 +0000 (-0800) Subject: * src/lread.c (openp): Further fix for previous. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~353 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=150622a1734d33e7d72f6161d645f38b88f4e839;p=emacs.git * src/lread.c (openp): Further fix for previous. --- 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; but store the found remote file name in *STOREPTR. If NEWER is true, try all SUFFIXes and return the result for the - newest file that exists. Does not apply to remote files. */ + newest file that exists. Does not apply to remote files, + or if PREDICATE is specified. */ int openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, @@ -1623,7 +1624,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, if (fd >= 0) { - if (newer) + if (newer && !NATNUMP (predicate)) { struct timespec mtime = get_stat_mtime (&st);