From 7c7bfa625ee3cc0e7ae8aec2a989e1dc14bfe6a7 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Thu, 9 Oct 2025 20:27:41 +0300 Subject: [PATCH] * lisp/xdg.el (xdg-mime-apps): Fix recent regression. After the change that introduced 'hash-table-contains-p' it's necessary to keep setting 'files' to the hash value. --- lisp/xdg.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/xdg.el b/lisp/xdg.el index a9f443c3d73..1e1495f8c7f 100644 --- a/lisp/xdg.el +++ b/lisp/xdg.el @@ -385,7 +385,8 @@ Results are cached in `xdg-mime-table'." (when (null (assoc type xdg-mime-table)) (push (cons type (make-hash-table :test #'equal)) xdg-mime-table)) (if (let ((table (cdr (assoc type xdg-mime-table)))) - (hash-table-contains-p subtype table)) + (and (hash-table-contains-p subtype table) + (setq files (gethash subtype table)))) files (and files (setq files nil)) (let ((dirs (mapcar (lambda (dir) (expand-file-name "applications" dir))