per-file (or, really, per buffer) allowing/disallowing code block execution

2022-09-05 Thread Fedja Beader
Hello, Pressing C-c C-c in a code block asks the user whether to execute that code block or not. This soon becomes annoying. To remedy this, org-mode provides us the variable org-confirm-babel-evaluate. But this is not very user friendly. Additionally, as per documentation, this variable only con

Re: per-file (or, really, per buffer) allowing/disallowing code block execution

2022-09-08 Thread Fedja Beader
Hello Richard, Ihor and Steven, I'm aware that file-local variables exist, but it seems that all documentation for them put them *into the file*, which is not secure for files downloaded from the internet. What is to stop a malicious file from setting an "yes, execute me automatically" variable?

Re: per-file (or, really, per buffer) allowing/disallowing code block execution

2022-09-09 Thread Fedja Beader
> As Tomas pointed out, Emacs has a concept of safe and non-safe > file-local variables. org-confirm-babel-evaluate in particular is only > safe when it is set to t (query execution). If your downloaded file > attempts to set org-confirm-babel-evaluate to nil, Emacs will show a > warning and ask yo