Fix trusted-content-p
This commit is contained in:
parent
e0c8453dfe
commit
8112f6b1dc
4
init.el
4
init.el
@ -106,8 +106,8 @@
|
|||||||
'(:eval (my/-trusted-content-segment)))
|
'(:eval (my/-trusted-content-segment)))
|
||||||
(defun my/-fix-trusted-content-p-for-remote (oldfun &rest args)
|
(defun my/-fix-trusted-content-p-for-remote (oldfun &rest args)
|
||||||
(let ((source (or buffer-file-truename default-directory)))
|
(let ((source (or buffer-file-truename default-directory)))
|
||||||
(if (not source)
|
(if (or (not source) (eq trusted-content :all))
|
||||||
(apply oldfun args)
|
(apply oldfun (ensure-list args))
|
||||||
(let* ((method (file-remote-p source 'method))
|
(let* ((method (file-remote-p source 'method))
|
||||||
(host (file-remote-p source 'host))
|
(host (file-remote-p source 'host))
|
||||||
(trusted-content (cl-remove-if-not
|
(trusted-content (cl-remove-if-not
|
||||||
|
Loading…
x
Reference in New Issue
Block a user