diff options
| author | Thomas de Beauchêne <thomas.de.beauchene@sap.com> | 2018-11-19 15:52:02 +0100 |
|---|---|---|
| committer | Lukas Fürmetz <fuermetz@mailbox.org> | 2018-11-21 21:03:43 +0100 |
| commit | 3f3cda0bb5ea45474f5bdbd3f4410b113f8f5614 (patch) | |
| tree | d23874e668e12e929fa10dceec7c445398462bc2 | |
| parent | 1f9a40a069600bd9fc711fa54b317fd149263a44 (diff) | |
auto-install: more helpful error message
| -rw-r--r-- | vterm.el | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -7,13 +7,16 @@ ;;; Code: +(defvar vterm-install-buffer-name " *Install vterm" + "Name of the buffer used for compiling vterm-module.") + ;;;###autoload (defun vterm-module-compile () "This function compiles the vterm-module." (interactive) (let ((default-directory (file-name-directory (locate-library "vterm")))) (unless (file-executable-p (concat default-directory "vterm-module.so" )) - (let* ((buffer (get-buffer-create " *Install vterm")) + (let* ((buffer (get-buffer-create vterm-install-buffer-name)) (status (call-process "sh" nil buffer t "-c" "mkdir -p build; \ cd build; \ @@ -21,7 +24,8 @@ make"))) (if (eq status 0) (message "Compilation of emacs-libvterm module succeeded") - (message "Compilation of emacs-libvterm module failed")))))) + (pop-to-buffer vterm-install-buffer-name) + (error "Compilation of emacs-libvterm module failed!")))))) (when (boundp 'vterm-install) (vterm-module-compile)) |
