:type 'string
:group 'sweep)
-(defvar sweep-install-buffer-name "*Install sweep*"
- "Name of the buffer used for compiling sweep-module.")
-
(defcustom sweep-init-on-load t
"If non-nil, initialize Prolog when `sweep' is loaded."
:package-version '((sweep "0.1.0"))
(defvar sweep-prolog-server-port nil)
-(defun sweep--compile-module ()
- "Compile sweep-module."
- (interactive)
- (let* ((sweep-directory
- (shell-quote-argument (file-name-directory load-file-name)))
- (make-commands
- (concat
- "cd " sweep-directory "; make; cd -"))
- (buffer (get-buffer-create sweep-install-buffer-name)))
- (pop-to-buffer buffer)
- (compilation-mode)
- (if (zerop (let ((inhibit-read-only t))
- (call-process "sh" nil buffer t "-c" make-commands)))
- (message "Compilation of `sweep' module succeeded")
- (error "Compilation of `sweep' module failed!"))))
-
(declare-function sweep-initialize "sweep-module")
(declare-function sweep-initialized-p "sweep-module")
(declare-function sweep-open-query "sweep-module")