From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: advising jde-compile -- a better way? Date: Mon, 25 Oct 2004 16:13:04 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098805168 7915 80.91.229.6 (26 Oct 2004 15:39:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 15:39:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 26 17:39:24 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 1CMTPv-0008Ol-00 for ; Tue, 26 Oct 2004 17:39:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMTXd-00008Q-BV for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Oct 2004 11:47:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 25 Oct 2004 18:13:06 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:Bci8Td/PpdN1d/n4b4S66Izb6sc= Original-Lines: 35 Original-NNTP-Posting-Host: 24.18.253.35 Original-X-Trace: sv3-7fZrPhKWP9Sba0QH3X+8Ae3nTSccmUc8DuNkv6Tu/3g3Hy47H/UP8Osgu3C9xQl1JFmK0W6nzJeZfIZ!aDQhWoXa91h5kqdPjwHcJAAp71hbzHRhHGRhqnTvikEFIFMyfQeaPlpk Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.20 Original-Xref: shelby.stanford.edu gnu.emacs.help:126053 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21437 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21437 "Joe Casadonte" writes: >jde-compile prompts me to save buffers before compiling, a practice >that I find personally annoying. I've come up with the following, but >it seems ugly: > >(defadvice jde-compile (around jde-compile-no-save-prompt act) > "Supresses the save-buffer prompting." > (fset 'save-some-buffers-old-fn-def (symbol-function 'save-some-buffers)) > (fset 'save-some-buffers 'ignore) > ad-do-it > (fset 'save-some-buffers (symbol-function 'save-some-buffers-old-fn-def))) > >Is there a better or more elegant way to accomplish the same thing? > If JDE uses the compile package, then this variable will do what you want, if you set it to a regex that matches anything. ,----[ C-h v compile-ignore-buffers-list RET ] | compile-ignore-buffers-list's value is | (".bbdb" ".newsrc-dribble") | | | Documentation: | List of buffer names to ignore when offering to save before compilation | | You can customize this variable. | | Defined in `compile'. `---- -- Mike Slass