[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spurious buffer saving triggered by M-x compile
From: |
Juri Linkov |
Subject: |
Re: Spurious buffer saving triggered by M-x compile |
Date: |
Thu, 17 Jun 2010 11:31:48 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) |
>> `compilation-save-buffers-predicate' is already implemented in compile.el.
>
> I don't see it. My emacs must be too old.
(defcustom compilation-save-buffers-predicate nil
"The second argument (PRED) passed to `save-some-buffers' before compiling.
E.g., one can set this to
(lambda ()
(string-prefix-p my-compilation-root (file-truename (buffer-file-name))))
to limit saving to files located under `my-compilation-root'.
Note, that, in general, `compilation-directory' cannot be used instead
of `my-compilation-root' here."
:type '(choice
(const :tag "Default (save all file-visiting buffers)" nil)
(const :tag "Save all buffers" t)
function)
:group 'compilation
:version "24.1")
--
Juri Linkov
http://www.jurta.org/emacs/