diff options
author | David Aspinall <da@inf.ed.ac.uk> | 2009-05-26 12:54:26 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 2009-05-26 12:54:26 +0000 |
commit | 2954ca8d555af6290aa7b94b09ccebe276b466be (patch) | |
tree | ca81f3f1f15045b211ded6c037c5e3821a49dbe2 /generic/pg-user.el | |
parent | 51a8d16344647114cabfd481ac3cb2ddad7abfaa (diff) |
Add proof-shell-strip-output-markup to handle pasting markedup texdt. Minor cleanups
Diffstat (limited to 'generic/pg-user.el')
-rw-r--r-- | generic/pg-user.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/generic/pg-user.el b/generic/pg-user.el index d226aa49..81cc5a3b 100644 --- a/generic/pg-user.el +++ b/generic/pg-user.el @@ -567,6 +567,10 @@ last use time, to discourage saving these into the users database." (add-completion cmpl -1000 0))) (proof-ass completion-table))) +;; completion not autoloaded in GNU Emacs +(or (fboundp 'complete) + (autoload 'complete "completion")) + ;; NB: completion table is expected to be set when proof-script ;; is loaded! Can call proof-script-add-completions if the table ;; is updated. @@ -605,14 +609,9 @@ last use time, to discourage saving these into the users database." "Insert the last output from the proof system as a comment in the proof script." (interactive) (if proof-shell-last-output - ;; There may be a system specific function to insert the comment - (if pg-insert-output-as-comment-fn - (funcall pg-insert-output-as-comment-fn proof-shell-last-output) - ;; Otherwise the default behaviour is to use comment-region - (let ((beg (point)) end) - (insert proof-shell-last-output) - (comment-region beg end))))) - + (let ((beg (point))) + (insert (proof-shell-strip-output-markup proof-shell-last-output)) + (comment-region beg (point))))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |