From 8e5c8b65f90c1cd2dbcb5b64e0236653b796578a Mon Sep 17 00:00:00 2001 From: Romanos Skiadas Date: Wed, 15 Mar 2017 18:40:32 +0200 Subject: [PATCH] Fix binding repl-args when calling make-comint The argument after make-comint's PROGRAM argument is STARTFILE. Not setting it to nil results in the first value of puppet-repl-args being bound to it. This is not right, since all of puppet-repl-args are expected to be flags for the repl command and not STARTFILE. --- puppet-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/puppet-mode.el b/puppet-mode.el index ce0d5a0..5b256ed 100644 --- a/puppet-mode.el +++ b/puppet-mode.el @@ -279,6 +279,7 @@ Return nil, if there is no special context at POS, or one of (set-buffer (apply 'make-comint "Puppet-REPL" puppet-repl-command + nil puppet-repl-args)) ;; Workaround for ansi colors (add-hook 'comint-preoutput-filter-functions 'puppet-comint-filter nil t))