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: all I wanted to do was make the compilation-mode-hook the sole visible buffer Date: Wed, 30 Nov 2011 11:46:19 +0800 Message-ID: <87d3caff1w.fsf@jidanni.org> References: <87sjl7tcxe.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322625661 11616 80.91.229.12 (30 Nov 2011 04:01:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2011 04:01:01 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: ttn@gnuvola.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 30 05:00:55 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 1RVbLr-0006En-AU for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Nov 2011 05:00:55 +0100 Original-Received: from localhost ([::1]:47945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVbLp-00056c-4c for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Nov 2011 23:00:53 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVbLM-0004QU-Hc for help-gnu-emacs@gnu.org; Tue, 29 Nov 2011 23:00:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVb7o-0000wq-9z for help-gnu-emacs@gnu.org; Tue, 29 Nov 2011 22:46:25 -0500 Original-Received: from caiajhbdcaid.dreamhost.com ([208.97.132.83]:32950 helo=homiemail-a62.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVb7o-0000wg-09 for help-gnu-emacs@gnu.org; Tue, 29 Nov 2011 22:46:24 -0500 Original-Received: from homiemail-a62.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTP id C325B634079; Tue, 29 Nov 2011 19:46:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:cc:subject :references:date:message-id:mime-version:content-type; q=dns; s= jidanni.org; b=pnLeD/yDBm4O/88zmMZe3GO/WMoLPPYiLzPC09gaRKmUmP3Qt z0/e/qOAJiGAb8IFS6WfcW5YOPFPK4wL1NwAHTQ5WFLpuI34Mgt2fqtc6/T3jCfo VzrJMWH3PkJHWuRkcDzkNSDJmvrfwEPc4jFuHZ4zSX1rSHd7Ws6DbVA1Vo= 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; s=jidanni.org; bh=SHE1OqcCJU1mAnIB5vG+yYfD03k=; b=cXS6qeVV+XHOA 5T5Yl0yoHVifOLjgSmYn6lM9FrL+tlRnYGCyeyw3bdFupnXfcuWi42kZy7qrhDqr 4ZL3PLjBdcWseIa+p7g3qvF05upYaRJrxlFUVLcyt6+d7obH/6ehGmvN38H2Ks99 RejsLeQRFWHB0sXvnUsj/i95dcSRgE= Original-Received: from jidanni.org (218-163-18-244.dynamic.hinet.net [218.163.18.244]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTPSA id 6F02B634075; Tue, 29 Nov 2011 19:46:22 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.97.132.83 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:83097 Archived-At: >>>>> "TN" == Thien-Thi Nguyen writes: TN> (add-to-list 'same-window-buffer-names "*compilation*") It turns out that is not what I want. I want it to be the sole window visible. OK, I can use (add-hook 'compilation-mode-hook (function (lambda () (switch-to-buffer "*compilation*");alas, forget using any personal compilation-buffer-name-function (delete-other-windows))))