summaryrefslogtreecommitdiff
path: root/app-emacs/vterm/files/vterm-0.0.1_pre20210618-dont-compile.patch
blob: 512b9d941423a4ef3d9bf23465c073ba7603891b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Simply error out if the module is not found. Don't confuse the user
with messages about compiling the module, which won't work outside of
the package's source tree.

--- a/vterm.el
+++ b/vterm.el
@@ -130,14 +130,7 @@
           (message "Compilation of `emacs-libvterm' module succeeded")
         (error "Compilation of `emacs-libvterm' module failed!")))))
 
-;; If the vterm-module is not compiled yet, compile it
-(unless (require 'vterm-module nil t)
-  (if (or vterm-always-compile-module
-          (y-or-n-p "Vterm needs `vterm-module' to work.  Compile it now? "))
-      (progn
-        (vterm-module-compile)
-        (require 'vterm-module))
-    (error "Vterm will not work until `vterm-module' is compiled!")))
+(require 'vterm-module)
 
 ;;; Dependencies