diff options
author | 2002-07-19 10:38:48 +0000 | |
---|---|---|
committer | 2002-07-19 10:38:48 +0000 | |
commit | 49fda3fd12b9985da15a52756e4a18fd2bc5ba2b (patch) | |
tree | 3019b25e43a985ae6313cc49f8ce7ed2f07d312b /generic | |
parent | cc57674092a79b12053f8a5556c331ec83426ae5 (diff) |
Variable name change proof-comment-{start,end}-regexp -> proof-script-comment-{start,end}-regexp.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/proof-script.el | 38 | ||||
-rw-r--r-- | generic/proof-shell.el | 6 | ||||
-rw-r--r-- | generic/proof-syntax.el | 2 |
3 files changed, 25 insertions, 21 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el index daffe05d..dea4bad1 100644 --- a/generic/proof-script.el +++ b/generic/proof-script.el @@ -1504,13 +1504,13 @@ to the function which parses the script segment by segment." (let ((notout t)) ;; Find end of comment (NB: doesn't undertand nested comments) (while (and notout (re-search-forward - proof-comment-end-regexp nil 'movetolimit)) + proof-script-comment-end-regexp nil 'movetolimit)) (setq notout (proof-buffer-syntactic-context))) (not (proof-buffer-syntactic-context)))) (defun proof-script-generic-parse-cmdend () "Used for proof-script-parse-function if proof-script-command-end-regexp is set." - (if (looking-at proof-comment-start-regexp) + (if (looking-at proof-script-comment-start-regexp) ;; Handle comments (if (proof-script-generic-parse-find-comment-end) 'comment) ;; Handle non-comments: assumed to be commands @@ -1549,7 +1549,7 @@ to the function which parses the script segment by segment." ;; Another improvement idea might be to take into account both ;; command starts *and* ends, but let's leave that for another day. ;; - (if (looking-at proof-comment-start-regexp) + (if (looking-at proof-script-comment-start-regexp) ;; Find end of comment (if (proof-script-generic-parse-find-comment-end) 'comment) ;; Handle non-comments: assumed to be commands @@ -1585,7 +1585,7 @@ to the function which parses the script segment by segment." (defun proof-script-generic-parse-sexp () "Used for proof-script-parse-function if proof-script-sexp-commands is set." ;; Usual treatment of comments - (if (looking-at proof-comment-start-regexp) + (if (looking-at proof-script-comment-start-regexp) ;; Find end of comment (if (proof-script-generic-parse-find-comment-end) 'comment) (let* ((parse-sexp-ignore-comments t) ; gobble comments into commands @@ -1615,8 +1615,8 @@ which continues past POS, if any. (NOT IMPLEMENTED IN THIS VERSION). This version is used when `proof-script-command-start-regexp' is set." (save-excursion - (let* ((commentre (concat "[ \t\n]*" proof-comment-start-regexp)) - (commentend (concat proof-comment-end-regexp "[ \t\n]*" )) + (let* ((commentre (concat "[ \t\n]*" proof-script-comment-start-regexp)) + (commentend (concat proof-script-comment-end-regexp "[ \t\n]*" )) (add-segment-for-cmd ; local function: advances "prev" (lambda () (setq tmp (point)) @@ -1661,10 +1661,10 @@ This version is used when `proof-script-command-start-regexp' is set." ;; breaking sync. (if (and (looking-at commentre) - (re-search-forward proof-comment-end-regexp) + (re-search-forward proof-script-comment-end-regexp) (progn (while (looking-at commentre) - (re-search-forward proof-comment-end-regexp)) + (re-search-forward proof-script-comment-end-regexp)) (>= (point) comend))) 'comment 'cmd))) (string (if (eq type 'comment) "" bufstr))) @@ -1726,7 +1726,7 @@ which continues past POS, if any. This version is used when `proof-script-command-end-regexp' is set." (save-excursion (let* - ((commentre (concat "[ \t\n]*" proof-comment-start-regexp)) + ((commentre (concat "[ \t\n]*" proof-script-comment-start-regexp)) (add-segment-for-cmd ; local function: advances "prev" (lambda () (let ((cmdend (point)) start) @@ -1745,7 +1745,7 @@ This version is used when `proof-script-command-end-regexp' is set." ;; have a consistent policy!) (unless (proof-re-search-forward - proof-comment-end-regexp cmdend t) + proof-script-comment-end-regexp cmdend t) (error "PG error: proof-segment-up-to-cmd-end didn't find comment end.")) (setq alist (cons (list 'comment "" (point)) alist))) @@ -2382,18 +2382,18 @@ assistant." "")) (make-local-variable 'comment-start) - (setq comment-start (concat proof-comment-start " ")) + (setq comment-start (concat proof-script-comment-start " ")) (make-local-variable 'comment-end) - (setq comment-end (concat " " proof-comment-end)) + (setq comment-end (concat " " proof-script-comment-end)) - (unless proof-comment-start-regexp - (setq proof-comment-start-regexp (regexp-quote proof-comment-start))) - (unless proof-comment-end-regexp - (setq proof-comment-end-regexp (regexp-quote proof-comment-end))) + (unless proof-script-comment-start-regexp + (setq proof-script-comment-start-regexp (regexp-quote proof-script-comment-start))) + (unless proof-script-comment-end-regexp + (setq proof-script-comment-end-regexp (regexp-quote proof-script-comment-end))) (make-local-variable 'comment-start-skip) (setq comment-start-skip - (concat proof-comment-start-regexp "+\\s_?")) + (concat proof-script-comment-start-regexp "+\\s_?")) ;; ;; Fontlock support. @@ -2521,8 +2521,8 @@ with something different." ;; (defconst proof-script-important-settings - '(proof-comment-start ; - proof-comment-end + '(proof-script-comment-start ; + proof-script-comment-end ; proof-goal-command-regexp not needed if proof-goal-command-p is set proof-save-command-regexp ; proof-goal-with-hole-regexp ; non-essential? diff --git a/generic/proof-shell.el b/generic/proof-shell.el index 2cea0c4c..e171da86 100644 --- a/generic/proof-shell.el +++ b/generic/proof-shell.el @@ -375,7 +375,7 @@ exited by hand (or exits by itself)." (message "%s, cleaning up and exiting..." bufname) (let ((inhibit-quit t) ; disable C-g for now timeout-id) - (sit-for 0) ; redisplay + (sit-for 0) ; redisplay [does it work?] (if alive ; process still there (progn (catch 'exited @@ -387,6 +387,10 @@ exited by hand (or exits by itself)." ;; partly processed when exiting, and registering completed ;; files). (proof-deactivate-scripting-auto) + ;; FIXME: if the shell is busy now, we should wait + ;; for a while (in case deactivate causes processing) + ;; and the send an interrupt. + ;; Second, we try to shut down the proof process ;; politely. Do this before deleting other buffers, ;; etc, so that any closing down processing works okay. diff --git a/generic/proof-syntax.el b/generic/proof-syntax.el index efc0e036..9814ca49 100644 --- a/generic/proof-syntax.el +++ b/generic/proof-syntax.el @@ -101,7 +101,7 @@ nil if a region cannot be found." If so, return non-nil." (or (proof-buffer-syntactic-context) - (proof-looking-at-safe proof-comment-start-regexp) + (proof-looking-at-safe proof-script-comment-start-regexp) (proof-looking-at-safe proof-string-start-regexp))) |