aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-script.el
diff options
context:
space:
mode:
authorClément Pit-Claudel2021-03-17 01:10:42 -0400
committerClément Pit-Claudel2021-03-17 01:10:42 -0400
commit56ee4ebc97e77da7d61eaa7b00580bf4ef5b87d9 (patch)
treeed25b120e84450335e95231c2ef58f1a6e7193d7 /generic/proof-script.el
parent8ad13c2735c097238441244123214967be3894a0 (diff)
Remove evaluate-elisp-comment-regexp and set-elisp-variable-regexp
Closes GH-557.
Diffstat (limited to 'generic/proof-script.el')
-rw-r--r--generic/proof-script.el16
1 files changed, 1 insertions, 15 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el
index a5109be7..87a9975b 100644
--- a/generic/proof-script.el
+++ b/generic/proof-script.el
@@ -1459,21 +1459,7 @@ Argument SPAN has just been processed."
(span-set-property span 'id (intern id))
(span-set-property span 'idiom 'comment)
(let ((proof-shell-last-output "")) ; comments not sent, no last output
- (pg-set-span-helphighlights bodyspan))
-
- ;; possibly evaluate some arbitrary Elisp. SECURITY RISK!
- (save-match-data
- (setq str (buffer-substring-no-properties (span-start span)
- (span-end span)))
- (if (proof-string-match-safe proof-script-evaluate-elisp-comment-regexp str)
- (condition-case nil
- (eval (car (read-from-string (match-string-no-properties 1 str)))
- t)
- (t (proof-debug
- (concat
- "lisp error when obeying proof-shell-evaluate-elisp-comment-regexp: \n"
- (prin1-to-string (match-string-no-properties 1))
- "\n"))))))))
+ (pg-set-span-helphighlights bodyspan))))
(defun proof-done-advancing-save (span)