GNU bug report logs - #64198
Feature request: compile.el's "Find this in" prompt should be hookable.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Dave Abrahams <dave@HIDDEN>; dated Tue, 20 Jun 2023 22:32:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 64198 <at> debbugs.gnu.org:


Received: (at 64198) by debbugs.gnu.org; 21 Jun 2023 11:24:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 21 07:24:28 2023
Received: from localhost ([127.0.0.1]:60768 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qBvwq-0001Mq-M8
	for submit <at> debbugs.gnu.org; Wed, 21 Jun 2023 07:24:28 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44962)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qBvwo-0001MX-E2
 for 64198 <at> debbugs.gnu.org; Wed, 21 Jun 2023 07:24:27 -0400
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 <eliz@HIDDEN>)
 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==;
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 <eliz@HIDDEN>)
 id 1qBvwW-000801-BJ; Wed, 21 Jun 2023 07:24:17 -0400
Date: Wed, 21 Jun 2023 14:24:14 +0300
Message-Id: <837crx5a8x.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dave Abrahams <dave@HIDDEN>
In-Reply-To: <ABE677EB-2864-4A85-A02F-F1B53449530F@HIDDEN> (message from
 Dave Abrahams on Tue, 20 Jun 2023 15:30:58 -0700)
Subject: Re: bug#64198: Feature request: compile.el's "Find this in" prompt
 should be hookable.
References: <ABE677EB-2864-4A85-A02F-F1B53449530F@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64198
Cc: 64198 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Dave Abrahams <dave@HIDDEN>
> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64198; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Jun 2023 22:31:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 20 18:31:18 2023
Received: from localhost ([127.0.0.1]:60126 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qBjsb-0001L4-Ug
	for submit <at> debbugs.gnu.org; Tue, 20 Jun 2023 18:31:18 -0400
Received: from lists.gnu.org ([209.51.188.17]:57862)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dave@HIDDEN>) id 1qBjsZ-0001Kw-Rt
 for submit <at> debbugs.gnu.org; Tue, 20 Jun 2023 18:31:16 -0400
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 <dave@HIDDEN>) id 1qBjsZ-0003bC-M3
 for bug-gnu-emacs@HIDDEN; Tue, 20 Jun 2023 18:31:15 -0400
Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <dave@HIDDEN>) id 1qBjsW-0000kd-Om
 for bug-gnu-emacs@HIDDEN; Tue, 20 Jun 2023 18:31:14 -0400
Received: by mail-oa1-x34.google.com with SMTP id
 586e51a60fabf-19a427d7b57so3499206fac.2
 for <bug-gnu-emacs@HIDDEN>; Tue, 20 Jun 2023 15:31:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=boostpro-com.20221208.gappssmtp.com; s=20221208; t=1687300270; x=1689892270; 
 h=to:date:message-id:subject:mime-version:content-transfer-encoding
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=jSCyLAiqpqE45vkBL4p8oCWhWlDyYRgK4FwLIR3fQnA=;
 b=4uS2ZLasNIhVMxUri4jWZp7tj847J3mgGc+HhkU1Qlvjtyi0P7YYXcXyZtorLD/1Qb
 Ds8Up74buS9Q9/yVH9hP216P/Og858dx2okYpHhDYjoqSmED1LA+ESCofp5KGL0DcRBl
 AxSQOEXkrkxQNIMv4NuI6ufC3fos75utMRyD0BJzOjVdlQirYc2hcCI15hV6XZ6rqj90
 0K+NR1rg1nYpQceUaOMEwkd/M4umZMDy7Q99prJO6XLiYVdMgttvu6AXA2pVjRAu5UxC
 3AHBeO9Wc6oQiOqut55r/mg/9FstER98tjYkMylgmZC8j7zrJY5+eg2Rwz2w5qLJM1ei
 0VeQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1687300270; x=1689892270;
 h=to:date:message-id:subject:mime-version:content-transfer-encoding
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=jSCyLAiqpqE45vkBL4p8oCWhWlDyYRgK4FwLIR3fQnA=;
 b=DW/Q/YuY32n3yTCu37glZ+mwoMMp8DWWm+4faThsnXdv/CWn8cg9rpZH3DmOsw4Y7g
 QfPOH/3HowBYFrHH0P35Q7ijcC0pAyNgvTe6cd3y6V39OnIYK769YO4rdAY4EBKgmCi6
 FKhufId+LPKMlZSyEveExI6Zt/juHM1LGa4hzkTqnjQO57Az+RMSEmtuZ2ox9TmKCSoi
 r7lwfpUGk+aJPjy0yV52ulJMmxdZNWcTteemdZS1s+5LcZR9jUwTKaSrExY2Xr51dC1b
 1kSN+zHB24ciqz13/Ly3g7RUDCrMByW/ibtg72JmrtmaPSK6kCEJcUXWZS1fWKJ5Ge5n
 rqrA==
X-Gm-Message-State: AC+VfDxu5ovLSt5CTCnj5vteDi9wS27x9P1ZCdvpyqHLUV1xPEgVFXWZ
 h8fHZN5QB+PDZhCnONCIS8rAnRWCkyywCY2snMs=
X-Google-Smtp-Source: ACHHUZ5szXtZmKBzfEyShj6OBeiymKNsGtxCC7H5RZ+waUJ3Nv6aYmb6ULqHEvW/JrTDqub3rq0F/g==
X-Received: by 2002:a05:6871:616:b0:1ad:544:f643 with SMTP id
 w22-20020a056871061600b001ad0544f643mr1066931oan.14.1687300269724; 
 Tue, 20 Jun 2023 15:31:09 -0700 (PDT)
Received: from smtpclient.apple
 (69-209-31-205.lightspeed.sntcca.sbcglobal.net. [69.209.31.205])
 by smtp.gmail.com with ESMTPSA id
 c204-20020a814ed5000000b0057060bb2874sm748601ywb.37.2023.06.20.15.31.09
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 20 Jun 2023 15:31:09 -0700 (PDT)
From: Dave Abrahams <dave@HIDDEN>
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\))
Subject: Feature request: compile.el's "Find this in" prompt should be
 hookable.
Message-Id: <ABE677EB-2864-4A85-A02F-F1B53449530F@HIDDEN>
Date: Tue, 20 Jun 2023 15:30:58 -0700
To: bug-gnu-emacs@HIDDEN
X-Mailer: Apple Mail (2.3731.600.7)
Received-SPF: none client-ip=2001:4860:4864:20::34;
 envelope-from=dave@HIDDEN; helo=mail-oa1-x34.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[I hope this is the right venue for feature requests.  If not, sorry!]

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.=




Acknowledgement sent to Dave Abrahams <dave@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#64198; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 21 Jun 2023 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.