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.bugs Subject: bug#63896: [PATCH] Support annotating and sorting the project list during completion Date: Fri, 16 Jun 2023 18:23:41 +0300 Message-ID: <83o7lfsa6a.fsf@gnu.org> References: <83v8g240g6.fsf@gnu.org> <83legmutrp.fsf@gnu.org> <83bkhgt10s.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34576"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63896@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 16 17:24:24 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qABJI-0008lY-8H for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Jun 2023 17:24:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qABIy-0003Tr-Tr; Fri, 16 Jun 2023 11:24:04 -0400 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 1qABIw-0003TT-Vc for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 11:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qABIw-0007oJ-Ng for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 11:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qABIw-0004EE-6o for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2023 11:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Jun 2023 15:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63896 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63896-submit@debbugs.gnu.org id=B63896.168692903316238 (code B ref 63896); Fri, 16 Jun 2023 15:24:02 +0000 Original-Received: (at 63896) by debbugs.gnu.org; 16 Jun 2023 15:23:53 +0000 Original-Received: from localhost ([127.0.0.1]:50222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qABIn-0004Dp-GP for submit@debbugs.gnu.org; Fri, 16 Jun 2023 11:23:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qABIl-0004Dd-AI for 63896@debbugs.gnu.org; Fri, 16 Jun 2023 11:23:52 -0400 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 1qABIf-0007ki-Cc; Fri, 16 Jun 2023 11:23:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=oFaJjj7qKY1rvMLNG0/mgWL7kudNR8RFSGwXZ6zVmCY=; b=LxXZtGQ6ndA9 VUNB5t08dgJNtLDfIkM9IT7PkYYUQvyUq5pei0kOUEPlePY0NKIHMEuHEyeyUKAkSjxCEkRKgNlSn ripCAQjs/RAZMhl+zVhnxPks2tSNqxNbV3Jx88v1kaQwnyh6XYoLE9q7X+90/fwBCfD6Ix+KxfonP NHoxzleNMXMk4DRDaRx25xoaTkCnbhLfyggJJ/qIuPTyfUO9o2QkxSJCTRqa0kwQzfMA0uJ3DRqhI 0QcdNtxH5uLTF4nlV1L6JIXC5+/wLYzfQhsAwOFT/Jzup/Qu+DJjuC18QifEKDATcfrVGPKE1GNDU VHmycOR7Q8uTIGDTUipbfQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qABIe-0002Sx-ED; Fri, 16 Jun 2023 11:23:44 -0400 In-Reply-To: (message from Spencer Baugh on Fri, 16 Jun 2023 10:26:05 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263476 Archived-At: > From: Spencer Baugh > Cc: 63896@debbugs.gnu.org > Date: Fri, 16 Jun 2023 10:26:05 -0400 > > Eli Zaretskii writes: > > > > If project.el wants to access data from an exited compilation, it > > needs to record that when the compilation exits (via the > > compilation-finish-functions hook, for example). Calling > > format-mode-line will not help you, because if the process doesn't > > exist, its data cannot be accessed, and relying on what's displayed on > > the mode line is a bad idea: it could be outdated or even irrelevant. > > So please don't use such kludges, even though they might look > > convenient at first sight. > > Would it be OK for compile.el to start storing this data in a variable? > The number of errors/warnings/infos is already stored; also storing the > exit status would probably be useful for all kinds of things. I think it would be okay to store data about the process in a buffer-local variable, but we need to make sure we store everything that might be useful.