Fix trusted-content-p

This commit is contained in:
Alexander Rosenberg 2025-04-01 20:54:20 +09:00
parent e0c8453dfe
commit 8112f6b1dc
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -106,8 +106,8 @@
'(:eval (my/-trusted-content-segment)))
(defun my/-fix-trusted-content-p-for-remote (oldfun &rest args)
(let ((source (or buffer-file-truename default-directory)))
(if (not source)
(apply oldfun args)
(if (or (not source) (eq trusted-content :all))
(apply oldfun (ensure-list args))
(let* ((method (file-remote-p source 'method))
(host (file-remote-p source 'host))
(trusted-content (cl-remove-if-not