From 47c263ce130fa79f6c124fe8cca7c9b1d323289e Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Mon, 1 Jul 2024 22:23:58 +0200 Subject: [PATCH] Restore ability to set :closql-tables slots As before, the value passed to `oset' has to be a list of keys, not the actual value. That might eventually change. --- closql.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/closql.el b/closql.el index 0a6d362..2c32043 100644 --- a/closql.el +++ b/closql.el @@ -190,9 +190,8 @@ (cond ((alist-get :closql-class props) (error "Not implemented for closql-class slots: oset")) - ((alist-get :closql-tables props) - (error "Not implemented for closql-tables slots: oset")) - (table + ((or table + (setq table (car (alist-get :closql-tables props)))) (closql-with-transaction db (let ((columns (closql--table-columns db table))) ;; Caller might have modified value in place.