Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

change save-some-buffers called when running mix command not to attempt to save buffers whose names starts with *. #8

Merged
merged 2 commits into from

2 participants

@pragdave

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.

@pragdave pragdave 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.
168d348
@tonini
Owner

@pragdave Thank you! Could you rebase this branch against the master and resolve the conflicts?

@pragdave
@tonini tonini merged commit 22f42f8 into tonini:master
@tonini
Owner

Thank you very much Dave. :) If you have some feedback about the package, It would be a pleasure to hear it. :+1:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 25, 2013
  1. @pragdave

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

    pragdave authored
    …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.
Commits on Nov 26, 2013
  1. @pragdave

    merge with master

    pragdave authored
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.