emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/triples 16daed65c0 1/2: Remove hard requirement on `pli


From: ELPA Syncer
Subject: [elpa] externals/triples 16daed65c0 1/2: Remove hard requirement on `plistp', which is new to Emacs 29
Date: Fri, 9 Dec 2022 22:58:12 -0500 (EST)

branch: externals/triples
commit 16daed65c0732b98d5de7312e80f2cce15bffa79
Author: Andrew Hyatt <ahyatt@gmail.com>
Commit: Andrew Hyatt <ahyatt@gmail.com>

    Remove hard requirement on `plistp', which is new to Emacs 29
    
    Now in `triples-db-insert' we will check to see that the PROPERTIES 
argument is
    a plist only if `plistp' exists.
    
    This fixes https://github.com/ahyatt/triples/issues/1.
---
 triples.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/triples.el b/triples.el
index d9beb15bb4..e4993985bc 100644
--- a/triples.el
+++ b/triples.el
@@ -126,7 +126,7 @@ with PROPERTIES. This is a low-level function that bypasses 
our
 normal schema checks, so should not be called from client programs."
   (unless (symbolp predicate)
     (error "Predicates in triples must always be symbols"))
-  (unless (plistp properties)
+  (when (and (fboundp 'plistp) (not (plistp properties)))
     (error "Properties stored must always be plists"))
   (pcase triples-sqlite-interface
     ('builtin 



reply via email to

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