Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

change save-some-buffers called when running mix command not to attem…

…pt to save buffers whose names starts with *.

This works around an issue when you try to run tests and have term or multi-term running. Before this change, it asked you to save every open term session.
  • Loading branch information...
commit 168d348449b913fb971f9bdb8b343bc5fd1854b7 1 parent 9175aa0
@pragdave pragdave authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 elixir-mix.el
9 elixir-mix.el
@@ -179,12 +179,15 @@ It walking the directory tree until it finds a elixir project root indicator."
+(defvar elixir-mix--save-buffers-predicate
+ (lambda ()
+ (not (string= (substring (buffer-name) 0 1) "*"))))
(defun elixir-mix-task-runner (name cmdlist)
"In a buffer identified by NAME, run CMDLIST in `elixir-mix-compilation-mode'.
Returns the compilation buffer."
- (save-some-buffers (not compilation-ask-about-save)
- (when (boundp 'compilation-save-buffers-predicate)
- compilation-save-buffers-predicate))
+ (save-some-buffers (not compilation-ask-about-save) elixir-mix--save-buffers-predicate)
(let* ((elixir-mix--compilation-buffer-name name)
(compilation-filter-start (point-min)))

0 comments on commit 168d348

Please sign in to comment.
Something went wrong with that request. Please try again.