From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.bugs Subject: bug#8862: Stop compilation mode from splitting the window Date: Sun, 24 Jul 2011 23:34:11 +0800 Message-ID: <87pqkzbslo.fsf__17989.1798682094$1311521714$gmane$org@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 1311521714 18097 80.91.229.12 (24 Jul 2011 15:35:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Jul 2011 15:35:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, 8862@debbugs.gnu.org To: david.belohrad@cern.ch Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 24 17:35:08 2011 Return-path: Envelope-to: geb-bug-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 1Ql0hv-0001HI-90 for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jul 2011 17:35:07 +0200 Original-Received: from localhost ([::1]:59580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql0hu-0001vV-JD for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jul 2011 11:35:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql0hs-0001um-1U for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2011 11:35:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ql0hr-00069V-4K for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2011 11:35:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql0hr-00069N-1T for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2011 11:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ql0hq-0003X3-Hn; Sun, 24 Jul 2011 11:35:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87fwnce9qn.fsf@jidanni.org> Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Jul 2011 15:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8862-submit@debbugs.gnu.org id=B8862.131152166813530 (code B ref 8862); Sun, 24 Jul 2011 15:35:02 +0000 Original-Received: (at 8862) by debbugs.gnu.org; 24 Jul 2011 15:34:28 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ql0hH-0003WA-G0 for submit@debbugs.gnu.org; Sun, 24 Jul 2011 11:34:28 -0400 Original-Received: from caiajhbdcagg.dreamhost.com ([208.97.132.66] helo=homiemail-a4.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ql0hA-0003Vq-Jd for 8862@debbugs.gnu.org; Sun, 24 Jul 2011 11:34:21 -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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 24 Jul 2011 11:35:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org 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 Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49590 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.)