From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.help Subject: Re: Stop compilation mode from splitting the window Date: Sun, 24 Jul 2011 23:34:11 +0800 Message-ID: <87pqkzbslo.fsf@jidanni.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1311521670 17864 80.91.229.12 (24 Jul 2011 15:34:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Jul 2011 15:34:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, 8862@debbugs.gnu.org To: david.belohrad@cern.ch Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 24 17:34:26 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ql0hC-00015M-Ca for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jul 2011 17:34:22 +0200 Original-Received: from localhost ([::1]:58947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql0hB-0001Yj-Ju for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jul 2011 11:34:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql0h7-0001YT-G2 for help-gnu-emacs@gnu.org; Sun, 24 Jul 2011 11:34:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ql0h6-000630-7w for help-gnu-emacs@gnu.org; Sun, 24 Jul 2011 11:34:17 -0400 Original-Received: from caiajhbdcbef.dreamhost.com ([208.97.132.145]:38876 helo=homiemail-a4.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql0h5-00062s-TQ for help-gnu-emacs@gnu.org; Sun, 24 Jul 2011 11:34:16 -0400 Original-Received: from homiemail-a4.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTP id C3C2F51C070; Sun, 24 Jul 2011 08:34:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:cc:subject :references:date:message-id:mime-version:content-type: content-transfer-encoding; q=dns; s=jidanni.org; b=dOyUUvBG2xSbG qi4oill+RaxMCPkNzcWEhjSRYJenpXeYhVoPvXjeg0/9kC9uGcrEXeKc+wIo4HfP bD7YcVJnx7BjFKKEypyCI7n52CWsMwjwsigI2LfL9vLfc5VADleMQ/z5RSnNNaaz ovCEk0Jhc3Sw/1r7CUmJWuqd1HRFj0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type: content-transfer-encoding; s=jidanni.org; bh=hK8SgU8HIcO2ooCAXRE tQ/Th3o8=; b=W4zp/lFnOUeBHANyjAuRlJTcsWUuaXzAPAIsQicHojpsKut8Bka d+FP3XOPjArZordVF/VHZv5bN8U+swYKj9re8Zxq4c3DpCovEPllLPR+QtIiDMq2 TzPwnHr6XC7n5XaO4j8rGiVMh0+FuJSAy8fPhhkfarRgHAgG9Mq8HbFA= Original-Received: from jidanni.org (218-163-0-246.dynamic.hinet.net [218.163.0.246]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTPSA id 2BFEA51C069; Sun, 24 Jul 2011 08:34:14 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.97.132.145 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81755 Archived-At: >>>>> "DB" =3D=3D David Belohrad writes: DB> I use something like this to close compilation window if no error dur= ing compilation was DB> found. This however does not preserve the frame configuration DB> =C2=A0 (setq compilation-finish-function DB> =C2=A0=C2=A0=C2=A0=C2=A0 (lambda (buf str) DB> =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0 (if (or (string-match "warning:" str)= (string-match "exited abnormally" str) DB> (string-match "compilation aborted" str)) DB> =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ;;there were errors DB> =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (message "com= pilation errors or warnings, press C-x ` to visit") DB> =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ;;no errors, make the com= pilation window go away in 0.5 seconds DB> =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 (run-at-time 0.5 nil 'del= ete-windows-on buf) DB> =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 (message "NO COMPILATION = ERRORS!")))) OK, but one would think the emacs maintainers might be charitable to provide a variable to just not split the window in half in the first place (so I can see the whole window of juicy compilation action.)