org.el (org-set-regexps-and-options): Don't read setup files from read-only buffers
commitd26431cea4b9004751f17b4d7660f1737477ec0b
authorBastien Guerry <bzg@altern.org>
Mon, 25 Mar 2013 05:45:33 +0000 (25 06:45 +0100)
committerBastien Guerry <bzg@altern.org>
Mon, 25 Mar 2013 05:45:33 +0000 (25 06:45 +0100)
treea7bc4cf074a923cda62dfeb6f5669d6fe8514f56
parent3b2abfce7be17d6b381806875afa2e21cf16b0f2
org.el (org-set-regexps-and-options): Don't read setup files from read-only buffers

* org.el (org-set-regexps-and-options): Don't read setup files
from read-only buffers.
(org-file-contents): When no-error is non-nil, throw a less
intrusive message.

This commit prevents Gnus to try reading arbitrary files on your machine
when opening a message with #+SETUPFILE keyword.

In general, it prevents reading a setup file from any read-only buffer.

Thanks to Eric Abrahamsen and Andreas Leha for reporting this.
lisp/org.el