From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: sometimes I want to compile and not save files nor be asked Date: Fri, 30 Jul 2004 05:07:09 +0800 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87k6wmzfnm.fsf@jidanni.org> References: <87acxj3ay6.fsf@jay.tmax.co.kr> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091144513 11045 80.91.224.253 (29 Jul 2004 23:41:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jul 2004 23:41:53 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 30 01:41:48 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BqKWy-0004lm-00 for ; Fri, 30 Jul 2004 01:41:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BqKaB-0008CB-2X for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Jul 2004 19:45:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BqKa3-0008As-Cc for bug-gnu-emacs@gnu.org; Thu, 29 Jul 2004 19:44:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BqKa2-0008AZ-0y for bug-gnu-emacs@gnu.org; Thu, 29 Jul 2004 19:44:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BqKa1-0008AC-Sw for bug-gnu-emacs@gnu.org; Thu, 29 Jul 2004 19:44:57 -0400 Original-Received: from [204.74.68.40] (helo=frodo.hserus.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BqKWP-0003VO-Nx for bug-gnu-emacs@gnu.org; Thu, 29 Jul 2004 19:41:14 -0400 Original-Received: from tc218-187-83-97.2-7.dynamic.apol.com.tw ([218.187.83.97]:33468 helo=jidanni1) by frodo.hserus.net with asmtp (Cipher TLSv1:RC4-SHA:128) (Exim 4.41 #0) id 1BqKWM-000FEz-SH by authid with plain for ; Fri, 30 Jul 2004 05:11:12 +0530 Original-Received: from jidanni by jidanni1 with local (Exim 4.34) id 1BqI7J-0001HN-AN for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2004 05:07:09 +0800 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8575 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8575 >>>>> "j" == jay emails me: j> * Dan Jacobson at 2004-07-15 01:50+0800 j> | Well gosh, how about what if we just plain don't want to be asked j> | about saving, and don't want gratuitous saving? j> Well, I guess this is more about feature request rather than bug report. j> Anyway, I'm using the following simple advice to do the job: Well OK, but my postings here are mainly for "permanent changes to emacs for the benefit of future generations", not for advice stuff for little old me's ~/.emacs. j> (setq compilation-read-command t j> compilation-ask-about-save nil) j> (defmacro do-without-save-buffers (command) j> `(defadvice ,command (around dont-ask-dont-save-buffers activate) j> (flet ((save-some-buffers (&rest args) nil)) j> ad-do-it))) j> (do-without-save-buffers compile) j> (do-without-save-buffers recompile)