Fix trusted-content-p
This commit is contained in:
		
							
								
								
									
										4
									
								
								init.el
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								init.el
									
									
									
									
									
								
							@ -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
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user