From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: sometimes I want to compile and not save files nor be asked
Date: Wed, 28 Jul 2004 11:23:38 -0600 [thread overview]
Message-ID: <4107E11A.1060602@yahoo.com> (raw)
In-Reply-To: mailman.334.1090173850.1960.bug-gnu-emacs@gnu.org
Dan Jacobson wrote:
> Compile's docstring should mention compilation-ask-about-save.
I'm not sure about that: there are 7 compilation- user options, of which
only compilation-read-command is mentioned in compile's doc string.
> Documentation:
> *Non-nil means C-x c asks which buffers to save before compiling.
> Otherwise, it saves all modified buffers without asking.
>
> Well gosh, how about what if we just plain don't want to be asked
> about saving, and don't want gratuitous saving?
>
> I suppose that 3rd possibility will not fit into the nil/non-nil
> paradigm mapped out above, that leaves no room for adding more
> possibilities later.
Good idea:
*** emacs-21.3/lisp/progmodes/compile.el~ Fri Jan 17 06:45:11 2003
--- emacs-21.3/lisp/progmodes/compile.el Wed Jul 28 11:15:00 2004
***************
*** 449,458 ****
:group 'compilation)
;;;###autoload
! (defcustom compilation-ask-about-save t
! "*Non-nil means \\[compile] asks which buffers to save before compiling.
! Otherwise, it saves all modified buffers without asking."
! :type 'boolean
:group 'compilation)
;; Note: the character class after the optional drive letter does not
--- 449,461 ----
:group 'compilation)
;;;###autoload
! (defcustom compilation-save-buffers 'ask
! "*Non-nil means \\[compile] saves modified buffers before compiling.
! If t, it does so without asking; for other values, it queries the user
! about each file."
! :type '(choice (const :tag "Save" t)
! (other :tag "Ask" ask)
! (const :tag "Don't save" nil)))
:group 'compilation)
;; Note: the character class after the optional drive letter does not
***************
*** 588,594 ****
(list (eval compile-command))))
(unless (equal command (eval compile-command))
(setq compile-command command))
! (save-some-buffers (not compilation-ask-about-save) nil)
(compile-internal command "No more errors"))
;; run compile with the default command line
--- 591,598 ----
(list (eval compile-command))))
(unless (equal command (eval compile-command))
(setq compile-command command))
! (cond ((eq compilation-save-buffers t) (save-some-buffers t))
! (compilation-save-buffers (save-some-buffers nil)))
(compile-internal command "No more errors"))
;; run compile with the default command line
***************
*** 595,601 ****
(defun recompile ()
"Re-compile the program including the current buffer."
(interactive)
! (save-some-buffers (not compilation-ask-about-save) nil)
(compile-internal (eval compile-command) "No more errors"))
(defun grep-process-setup ()
--- 599,606 ----
(defun recompile ()
"Re-compile the program including the current buffer."
(interactive)
! (cond ((eq compilation-save-buffers t) (save-some-buffers t))
! (compilation-save-buffers (save-some-buffers nil)))
(compile-internal (eval compile-command) "No more errors"))
(defun grep-process-setup ()
--
Kevin Rodgers
next parent reply other threads:[~2004-07-28 17:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.334.1090173850.1960.bug-gnu-emacs@gnu.org>
2004-07-28 17:23 ` Kevin Rodgers [this message]
2004-07-29 11:20 ` sometimes I want to compile and not save files nor be asked Richard Stallman
[not found] ` <87acxj3ay6.fsf@jay.tmax.co.kr>
2004-07-29 21:07 ` Dan Jacobson
2004-07-14 17:50 Dan Jacobson
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4107E11A.1060602@yahoo.com \
--to=ihs_4664@yahoo.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).