From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Selecting *Compile-log* buffer automatically Date: Mon, 11 Dec 2023 13:56:02 +0200 Message-ID: <83plzduf59.fsf@gnu.org> References: <83r0jtvoom.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12760"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Kiso Katsuyuki Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 11 12:57:10 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rCeuK-00033m-Lr for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Dec 2023 12:57:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCeta-0000On-7A; Mon, 11 Dec 2023 06:56:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCetU-0000Mw-7E for emacs-devel@gnu.org; Mon, 11 Dec 2023 06:56:17 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCetT-0008Ii-VT; Mon, 11 Dec 2023 06:56:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=XQC3DsY0pQAeDSTawi/0HxTMObMDvMbi1a+clW7O0BI=; b=SfpBoIAnpKnqgonHMXtv /cc7oZ6+4DmSH3Gjh4Kt1MdZJ0ltXlq1RalqXlsm8cE9O5leOTO3GQNdEx46CXxCiUzU8Sm4esX+q HKo2NP7NGdDD9tpFMogFdMZgF/+pUHID/1KuqrK8eVKv4IlK1hL/eFfFngH6yLaRkI6O179SBfdNN EcCzcUje1+3xtD4odb6kE9xdr9yAV0SdRLQ6/PU24IhsH/nmrRQmknoyBh9sq+MDPu/GEU9Wtokhz ZjbW5dbqBMyXDl72rn2Ux6iivY6JK6q0ZHeYvbHvjQci3v9x8Axx0sE5RMzaUVs4279lIMbMVkfcN nzCXJKU10qywNQ==; In-Reply-To: (message from Kiso Katsuyuki on Sun, 10 Dec 2023 19:07:31 -0600) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313703 Archived-At: > From: Kiso Katsuyuki > Date: Sun, 10 Dec 2023 19:07:31 -0600 > Cc: emacs-devel@gnu.org > > >Can you elaborate why you needed to select it? Emacs has commands to > >scroll non-selected windows, you should be able to view the > >compilation log without the need to select its window. > > In almost all my byte-compile, warnings like "Warning: assignment to free variable...", > "Warning: the function ‘foo’ might not be defined at runtime", and etc. occur. > Warnings and Errors have Emacs display the *Compile-log* buffer > (this is the default behavior). I usually ignores this kind of warnings, > so I just move focus to the *Compile-log* buffer window, bury it (keybind "q" by default), > and then I can restore the original window configuration. I want to skip the step to move focus to > the *Compile-log* buffer window. So maybe we should indeed add an optional behavior, for those case. Do you agree that the compile log window should be only selected if there are actually warnings or errors during the last compilation?