From: Juri Linkov <juri@jurta.org>
To: Geoff Gole <geoffgole@gmail.com>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: Spurious buffer saving triggered by M-x compile
Date: Thu, 17 Jun 2010 11:31:48 +0300 [thread overview]
Message-ID: <878w6et7u3.fsf@mail.jurta.org> (raw)
In-Reply-To: <AANLkTikwwDD9rpx5M3qLdGgjUtqSEHSG7T_YquFif5pf@mail.gmail.com> (Geoff Gole's message of "Thu, 17 Jun 2010 05:50:42 +0800")
>> `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/
next prev parent reply other threads:[~2010-06-17 8:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-16 14:20 Spurious buffer saving triggered by M-x compile Geoff Gole
2010-06-16 15:39 ` Wojciech Meyer
[not found] ` <AANLkTikyJ7lGiB9h3490vM7m2aET6co6DXOP_BeMGGbP@mail.gmail.com>
2010-06-16 16:48 ` Geoff Gole
2010-06-16 21:07 ` Juri Linkov
2010-06-16 21:50 ` Geoff Gole
2010-06-17 8:31 ` Juri Linkov [this message]
2010-06-17 13:45 ` Geoff Gole
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878w6et7u3.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
--cc=geoffgole@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.