From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kiso Katsuyuki Newsgroups: gmane.emacs.devel Subject: Re: Selecting *Compile-log* buffer automatically Date: Mon, 25 Dec 2023 07:03:26 -0600 Message-ID: References: <86wmtlrqpc.fsf@mail.linkov.net> <86wmt4hl5e.fsf@mail.linkov.net> <86o7efse5r.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b568ab060d5531b4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16145"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 25 14:04:25 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 1rHkd6-0003yI-Qs for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Dec 2023 14:04:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rHkcR-0003QM-Vq; Mon, 25 Dec 2023 08:03:44 -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 1rHkcP-0003Q4-BO for emacs-devel@gnu.org; Mon, 25 Dec 2023 08:03:41 -0500 Original-Received: from mail-yb1-xb36.google.com ([2607:f8b0:4864:20::b36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rHkcN-0007V6-OU for emacs-devel@gnu.org; Mon, 25 Dec 2023 08:03:41 -0500 Original-Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-dbd4a10735eso2692863276.1 for ; Mon, 25 Dec 2023 05:03:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703509418; x=1704114218; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7R18qRXEMTZdZxfwBqficWcAilpcC4i7rBOsyEA0am0=; b=GAA0lScrFCXp+q4IVArF3vbafPAuvpz4p4Shl1cEZTU9nR05i4sx0drSfi2BF5D9A6 V2JVKB4/Uf8kIcwhVQSyBciu29yav4BYG3PUsgzjmtM4UpDChgJQSmydfp02YfMjfYZR ZyB8SNLF7xqL4WPedJb20zBp5JjdLsEQNF4HA33yq9/geZ12JJC/O+x3QCJg9rl+B1QH Esi0eVhxJ4nvaDq3mTiV0eb4jkvDn34n2nmVzgf5vjC0XKk86NrrS4emSJZAfZ/VnAaJ vSMDSKwFQoJTtWU0IHY3X6Tb6ZtVcquraNLMr9scQ0ELnwScWvu8K3SHBay9FilIm3na DhDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703509418; x=1704114218; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7R18qRXEMTZdZxfwBqficWcAilpcC4i7rBOsyEA0am0=; b=q7F8qn5JMV7tX9Y4A7lBuptG8PmA6Rss5CzMr8IpBYiAZ0woJoFx0CGKEq30A7bCqM +bJtOHGI+nh/kCQJgyjHdkIuS/YDvjHN8Ph8K/C+ecXyuBT+nGniY490YHrfCBbkloMU ly7KC/2cPUHTPESZrEZQHXuL1HKeWcTLADQdN1D988E6YvZRbQVN7Yxln/2jwvoodPig K7sFk5MnKVSxO7dsBTIaYS5ST05cpM+ElaqAlgTthtS5wZXJ0BCrKmB1jGXHMQNzfqbf X1oCgLvfP6sWa2tN0HD3tyxqatsX61h1M3WXAXrIfro0O5KXI98z5kiodJfWP8QxFNzL unDg== X-Gm-Message-State: AOJu0Yx/JcsG4hj50akKjjYqYThguw+ZsbVOksrF3Oy0tJ/R0iLZIaXn MZQyXLvvnuit4GK7QyzM2BqQ1ofHro/CbiD0iZWlJ6zvxmOIsw== X-Google-Smtp-Source: AGHT+IFWSM6XzGzoAGWuJhzVvaSTo9YzbmDILnuvZQy1l7Le+rQD+M9KHt10U1uve0YY6QeMSyvmd3SNqt7Z1RuHk3Y= X-Received: by 2002:a25:9345:0:b0:dbd:980b:53fb with SMTP id g5-20020a259345000000b00dbd980b53fbmr2483846ybo.70.1703509417616; Mon, 25 Dec 2023 05:03:37 -0800 (PST) In-Reply-To: <86o7efse5r.fsf@mail.linkov.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::b36; envelope-from=katsuyuki2388@gmail.com; helo=mail-yb1-xb36.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:314205 Archived-At: --000000000000b568ab060d5531b4 Content-Type: text/plain; charset="UTF-8" >Indeed, you can't select arbitrary windows in every display-buffer, >because code after every display-buffer expects certain buffers >to be selected. This was discussed in bug#33258, and the only >possible solution is to select the window when the current command >finishes. This is implemented in bug#67993. I checked #67993, used the patch, and the *Compile-Log* buffer was selected successfully without the error. If #67993 is implemented, I'll use display-buffer-alist. Otherwise I'll modify bytecomp.el without using display-buffer-alist. I figured out that the post-command-hook is useful. --000000000000b568ab060d5531b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>Indeed, you can't select arbitrary windows in ever= y display-buffer,
>because code after every display-buffer expects ce= rtain buffers
>to be selected.=C2=A0 This was discussed in bug#33258,= and the only
>possible solution is to select the window when the cur= rent command
>finishes.=C2=A0 This is implemented in bug#67993.
I checked #67993, used the patch, and the *Compile-Log* buffer was select= ed
successfully without the error. If #67993 is implemented, I'll us= e display-buffer-alist.
Otherwise I'll modify bytecomp.el without us= ing display-buffer-alist.
I figured out that the post-command-hook is us= eful.
--000000000000b568ab060d5531b4--