From: Ittay Dror <ittay@qlusters.com>
Subject: Re: Compilation: save file xxx
Date: 19 Mar 2003 14:58:48 +0200 [thread overview]
Message-ID: <1048078728.31792.18.camel@rum> (raw)
In-Reply-To: <4yr893tu5d.fsf@skjellgran.ii.uib.no>
On Wed, 2003-03-19 at 14:31, Joakim Hove wrote:
> Hello,
>
> I find compiling programs from within emacs very useful, however I
> have one small grievance:
>
> When I invoke the compile command emacs offers to save all buffers,
> including buffers which are *totally* unrelated to the current
> compilation. Is it possible to limit this questioning to a set of
> files/directories/regexp/...?
>
>
> Regards - Joakim Hove
you can define a function which looks at the current buffer and returns
t if it should be saved. say its name is 'save-my-buffers'
then do
(defun compile (command)
(interactive
(if (or compilation-read-command current-prefix-arg)
(list (read-from-minibuffer "Compile command: "
(eval compile-command) nil nil
'(compile-history . 1)))
(list (eval compile-command))))
(unless (equal command (eval compile-command))
(setq compile-command command))
(save-some-buffers (not compilation-ask-about-save) 'save-my-buffers)
;; <--- this is the change from the original compile
(compile-internal command "No more errors"))
hope it helps,
ittay
--
===================================
Ittay Dror (ittay@qlusters.com)
User Space Team, R&D
Qlusters Inc.
+972-3-6081976 Fax: +972-3-6081841
next prev parent reply other threads:[~2003-03-19 12:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-19 12:31 Compilation: save file xxx Joakim Hove
2003-03-19 12:58 ` Ittay Dror [this message]
2003-03-19 13:15 ` Joakim Hove
[not found] ` <mailman.3369.1048078820.21513.help-gnu-emacs@gnu.org>
2003-03-19 20:40 ` Joakim Hove
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=1048078728.31792.18.camel@rum \
--to=ittay@qlusters.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.