emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r115583: * src/lread.c (openp): Further fix for prev


From: Glenn Morris
Subject: [Emacs-diffs] trunk r115583: * src/lread.c (openp): Further fix for previous.
Date: Wed, 18 Dec 2013 04:19:12 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 115583
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2013-12-17 20:19:08 -0800
message:
  * src/lread.c (openp): Further fix for previous.
modified:
  src/lread.c                    lread.c-20091113204419-o5vbwnq5f7feedwu-266
=== modified file 'src/lread.c'
--- a/src/lread.c       2013-12-18 04:05:57 +0000
+++ b/src/lread.c       2013-12-18 04:19:08 +0000
@@ -1450,7 +1450,8 @@
    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 @@
 
              if (fd >= 0)
                {
-                  if (newer)
+                  if (newer && !NATNUMP (predicate))
                     {
                       struct timespec mtime = get_stat_mtime (&st);
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]