Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #8 from pragdave/change-save-buffers-predicate

change save-some-buffers called when running mix command not to attempt to save buffers whose names starts with *.
  • Loading branch information...
commit 22f42f8db437d66f5f84e4adda1944387e9a472f 2 parents d266cd6 + c67adca
@tonini authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 elixir-mix.el
View
9 elixir-mix.el
@@ -171,12 +171,15 @@ It walking the directory tree until it finds a elixir project root indicator."
(split-string command)
command)))))
+(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)))
(with-current-buffer
Please sign in to comment.
Something went wrong with that request. Please try again.