* lisp/files.el (untrusted-content): New variable.
The new variable is to be used when buffer contents comes from untrusted source.
This commit is contained in:
parent
befa9fcaae
commit
ccc188fcf9
1 changed files with 8 additions and 0 deletions
|
@ -695,6 +695,14 @@ Also see the `permanently-enabled-local-variables' variable."
|
|||
Some modes may wish to set this to nil to prevent directory-local
|
||||
settings being applied, but still respect file-local ones.")
|
||||
|
||||
(defvar-local untrusted-content nil
|
||||
"Non-nil means that current buffer originated from an untrusted source.
|
||||
Email clients and some other modes may set this non-nil to mark the
|
||||
buffer contents as untrusted.
|
||||
|
||||
This variable might be subject to change without notice.")
|
||||
(put 'untrusted-content 'permanent-local t)
|
||||
|
||||
;; This is an odd variable IMO.
|
||||
;; You might wonder why it is needed, when we could just do:
|
||||
;; (setq-local enable-local-variables nil)
|
||||
|
|
Loading…
Add table
Reference in a new issue