Skip to content

Commit

Permalink
Fix binding repl-args when calling make-comint
Browse files Browse the repository at this point in the history
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.
rski authored and bbatsov committed Mar 15, 2017
1 parent 03f6082 commit 8e5c8b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions puppet-mode.el
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit 8e5c8b6

Please sign in to comment.