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#64198: Feature request: compile.el's "Find this in" prompt should be hookable. Date: Wed, 21 Jun 2023 14:24:14 +0300 Message-ID: <837crx5a8x.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34295"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64198@debbugs.gnu.org To: Dave Abrahams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 21 13:25:29 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 1qBvxo-0008aa-Vc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Jun 2023 13:25:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBvxT-00018G-HZ; Wed, 21 Jun 2023 07:25:07 -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 1qBvxO-00017i-IC for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 07:25: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 1qBvxO-0000TQ-8s for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 07:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBvxN-0001Nj-NR for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 07:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jun 2023 11:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64198 X-GNU-PR-Package: emacs Original-Received: via spool by 64198-submit@debbugs.gnu.org id=B64198.16873466695264 (code B ref 64198); Wed, 21 Jun 2023 11:25:01 +0000 Original-Received: (at 64198) by debbugs.gnu.org; 21 Jun 2023 11:24:29 +0000 Original-Received: from localhost ([127.0.0.1]:60768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBvwq-0001Mq-M8 for submit@debbugs.gnu.org; Wed, 21 Jun 2023 07:24:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBvwo-0001MX-E2 for 64198@debbugs.gnu.org; Wed, 21 Jun 2023 07:24:27 -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 1qBvwf-0000Ig-IW; Wed, 21 Jun 2023 07:24:20 -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=yurkDmh40J/JhycNyfNYyOgU+TuhusabpkyDxWpJFgs=; b=NNojFzWcCQjo JMvZufuQeA9zYcwb1eCb3kdj4lL7IeP/xf8O8t1Du9yUmbVGgDSNGf/MA3NLuFaQ0EESHuWCdvqJh UpjGq3t9j4UvbzOvSBhtu4zdSKFW/4n5kneDl2bu1+DJg6IgOXrjLng8RTmEKCUp+0KZfXs7Oc8qr aI4fPW1/3o/a7UIzYXcpd3JMCXliIspCytdsr2MWocn0VfLEvnH/pEz1TO024dORJlpBbaZyVzf3a IVdZJsJO+CzGS5TdM1nq/g0l15BZLsQn2YrknBo0fQpLKqZqkEWB7OlVWF/sxhgMAIKMLHH6zuPZz mzzCGWPYyT5JB5U2DgoEfg==; 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 1qBvwW-000801-BJ; Wed, 21 Jun 2023 07:24:17 -0400 In-Reply-To: (message from Dave Abrahams on Tue, 20 Jun 2023 15:30:58 -0700) 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:263801 Archived-At: > From: Dave Abrahams > Date: Tue, 20 Jun 2023 15:30:58 -0700 > > [I hope this is the right venue for feature requests. If not, sorry!] This is the right place. > When a file can't be found via the path given in a diagnostic, I'd like to be able to override the prompt that emacs gives to locate the file. compilation-parse-errors-filename-function happens too early, while the buffer is being initially parsed. A similar compilation-locate-file-function would be great. If there's interest I could try to develop a patch. Before discussing patches, could you please describe your situation? Specifically, how does it happen that neither the compilation directory plus the file name shown by the diagnostics nor the search of compilation-search-path succeed to locate the file? And what would the hook function you suggest adding do to resolve this, i.e. how would it know where to look for the file? Thanks.