diff options
author | Pierre Courtieu <Pierre.Courtieu@cnam.fr> | 2015-12-14 14:30:44 +0100 |
---|---|---|
committer | Pierre Courtieu <Pierre.Courtieu@cnam.fr> | 2015-12-14 14:30:44 +0100 |
commit | e0e2ceaa1bc1750fc05b4589351e10a1081453dd (patch) | |
tree | 23ab09d7d5ff7969068e23c96c58c805f41d8884 /coq/coq.el | |
parent | b957a9049f64bfe3352b148046df94aa1baf5613 (diff) |
Small refactoring of coqxxx args detection.
Need some more refactoring actually: Some code from coq-compile-common
became necessary to coq/pg globally. We shoudl refelct this by moving
these parts somewhere else.
Diffstat (limited to 'coq/coq.el')
-rw-r--r-- | coq/coq.el | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -71,6 +71,7 @@ ;;; Code: ;; debugging functions ;; (defun proofstack () (coq-get-span-proofstack (span-at (point) 'type))) +(defvar coq-debug nil) ;; End debugging (defcustom coq-prog-name @@ -104,16 +105,6 @@ and 8.5 (-Q foo bar replace -I foo)." :type 'boolean :group 'coq) -(defun coq-build-prog-args () - "Adjusts default `coq-prog-args'. May be overridden by file variables." - (delete "-emacs" coq-prog-args) - (add-to-list 'coq-prog-args "-emacs-U") - (if coq-translate-to-v8 - (add-to-list 'coq-prog-args "-translate"))) - -(unless noninteractive ;; compiling - (coq-build-prog-args)) - (defcustom coq-use-makefile nil "Whether to look for a Makefile to attempt to guess the command line. Set to t if you want this feature." @@ -1493,6 +1484,9 @@ allows to call coqtop from a subdirectory of the project." (if (or avoidpath avoidargs) (concat "\n(" msg " overridden by dir/file local values)") ""))) + (when coq-debug + (message "coq-prog-args: %S" coq-prog-args) + (message "coq-load-path: %S" coq-load-path)) (unless no-kill (kill-buffer projectbuffer))))) @@ -1560,7 +1554,6 @@ Warning: ;; again is useless. Let us do nothing. ;;(setq coq-load-path nil) ;;(setq coq-prog-args nil) - ;;(coq-build-prog-args) ) |