branch: externals/tomelr commit 4386d99a8596fa244c818b8ae9f341feeeb0b677 Author: Kaushal Modi <kaushal.m...@gmail.com> Commit: Kaushal Modi <kaushal.m...@gmail.com>
refactor(minor): Use `tomelr--toml-table-p` --- tomelr.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tomelr.el b/tomelr.el index 434a67885f..20d9a3190e 100644 --- a/tomelr.el +++ b/tomelr.el @@ -290,8 +290,7 @@ This works for any MAP satisfying `mapp'." ;;;; Lists (including alists and plists) (defun tomelr--print-list (list) "Insert a TOML representation of LIST at point." - (cond ((or (tomelr-alist-p list) - (json-plist-p list)) + (cond ((tomelr--toml-table-p list) (tomelr--print-map list)) ((listp list) (tomelr--print-array list))