From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: emacs startup: how to get rid of compile window despite of warnings Date: Wed, 22 Mar 2017 23:08:34 +0100 Message-ID: References: <8cd89045-b012-6389-8264-5aab7796a049@openmailbox.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490220584 12696 195.159.176.226 (22 Mar 2017 22:09:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Mar 2017 22:09:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 22 23:09:38 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqoRa-0001d1-Q3 for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Mar 2017 23:09:26 +0100 Original-Received: from localhost ([::1]:53475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqoRf-0006ge-B5 for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Mar 2017 18:09:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqoRD-0006gO-0b for help-gnu-emacs@gnu.org; Wed, 22 Mar 2017 18:09:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cqoR8-0006tc-TT for help-gnu-emacs@gnu.org; Wed, 22 Mar 2017 18:09:02 -0400 Original-Received: from [195.159.176.226] (port=32863 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cqoR8-0006rQ-Mh for help-gnu-emacs@gnu.org; Wed, 22 Mar 2017 18:08:58 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cqoQs-0005xf-5o for help-gnu-emacs@gnu.org; Wed, 22 Mar 2017 23:08:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 68 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:SLGaMBRF/VFvA9HN2wf0WllSHAA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112634 Archived-At: Krishnakant wrote: > I have seen some answers for my question on > stack overflow and the likes. OK, but just what is your question exactly? > But all of them have the solution to kill the > compile buffer only when there are no errors > and no warnings. There is probably a miscommunication (terminology) issue here. The *compilation* buffer is what pops up when you compile code in Emacs. You don't want to automatically close this, especially not when it reports warnings. > But I have a different requirement. > > I wish that the compile buffer closes even if > there are just warnings. Here is some work on the debugger to make it less noisy. You can fine tune it to not report certain very harmless "errors". But just so not have you confused this is an all-Emacs thing that does not apply only to when Emacs starts! http://user.it.uu.se/~embe8573/conf/emacs-init/error.el Also, this is a matter of suppressing certain errors which you don't consider errors. It isn't suppressing ALL errors which isn't a sound attitude. > This I need to have when emacs starts. > > Which is the right hook to call is one part > and how do I exactly kill the buffer is > another one. It is a better attitude to find out what warnings you get and solve them one by one. This makes you a better programmer with a better system. Here is some more init stuff that might help you or give you some ideas what to do: ;; no fanfare / init (setq inhibit-startup-screen t) (setq inhibit-startup-echo-area-message "incal") ;; scratch buffer (setq initial-scratch-message nil) (kill-buffer "*scratch*") For `inhibit-startup-echo-area-message', use your username, I think what is in `user-login-name'. But you should spell it out. -- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 69 Blogomatic articles - with: #moasen @ irc.freenode.net 6667