From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.bugs Subject: bug#64198: Feature request: compile.el's "Find this in" prompt should be hookable. Date: Thu, 22 Jun 2023 10:11:29 -0700 Message-ID: <3D7A63CD-5B7B-412A-8C55-90EFFA294F09@boostpro.com> References: <837crx5a8x.fsf@gnu.org> <03EC2FC3-A297-4CD1-91FB-2262A319A6F3@boostpro.com> <83ilbf2zx6.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28799"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64198@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 22 19:12:19 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 1qCNr1-0007Jk-3V for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jun 2023 19:12:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCNqm-0000FL-Te; Thu, 22 Jun 2023 13:12: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 1qCNql-000078-1d for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 13:12:03 -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 1qCNqk-0003rf-Oq for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 13:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCNqk-0005kl-As for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 13:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dave Abrahams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jun 2023 17:12:02 +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.168745391222094 (code B ref 64198); Thu, 22 Jun 2023 17:12:02 +0000 Original-Received: (at 64198) by debbugs.gnu.org; 22 Jun 2023 17:11:52 +0000 Original-Received: from localhost ([127.0.0.1]:36624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCNqa-0005kH-63 for submit@debbugs.gnu.org; Thu, 22 Jun 2023 13:11:52 -0400 Original-Received: from mail-yw1-f172.google.com ([209.85.128.172]:47374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCNqW-0005jf-Nk for 64198@debbugs.gnu.org; Thu, 22 Jun 2023 13:11:49 -0400 Original-Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-5702116762fso78824017b3.3 for <64198@debbugs.gnu.org>; Thu, 22 Jun 2023 10:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boostpro-com.20221208.gappssmtp.com; s=20221208; t=1687453901; x=1690045901; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=H8wgNZMHmmzDk8Q1wnbKtS/AWEMwDjmjE0Q3yuN84cI=; b=2CoWgNCFie+2WWMsqdKOsxXvvwp/zb9SYDxNF/ofxT9V14PRoFOepZ/zJLqw68+q4l XXMC/t9qpS+vzHTBcFrJgvwhaRO1fk1EC9Ns9EoEdCb3ACvVO9vaehJQEIlR72l13XJf vIMGgmPOVVQFm1u37dzrY6EgRYBr6l8KS6zkvpbfw7P+spj/qLZJfVVTs06i7qWvBany 3vwfwCtseg7HcMZo7q2g64J+4pOv5c6Rkq6XcOTt/Q40sZZlEhf2Tsak75BUlcwH3qY+ 7sQclkM5Q8VHU8AFyBGtqdBFua1i9vXAWCPRTCl3VdraQq7vOszmcSKstgp4Ud4zg1BR Kkqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687453901; x=1690045901; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H8wgNZMHmmzDk8Q1wnbKtS/AWEMwDjmjE0Q3yuN84cI=; b=KpmL3N4xJSsUUwxkJKuqI2xtm5yvxtgiIC3djIUX2qPfytgp4gBSfskAe3tNxQ2wK9 /zAlBSdrfHg6lSoqq/Odt2rpEl4b/4fFFZ9ZTGmN63lEJwRCjKAinUCtmnJf4p2vBqHq fQmq04bFWl+Jz4F4IaUXkb/HFfH9XCR3XXk9FhlsxLQgYHoJAzB1p72T9Rg/U53jzq// b74ol7IEDgZkS60p8vxan75B31UBEDScMvLWIN408oLbbJcGtpK47nPo+HPV6X5nKF7t PfniTH6gJ6RCOE4jGVJn1/tg4uBGevbae/adtYbk8bLeLKwiKilcjpP9PzM8zlgpD4Oa ljNQ== X-Gm-Message-State: AC+VfDyQWcEaGj/yAjYkHRenKyEOvRpFriwI7DiKTG8mvuTLp83gs5U1 G7VZbl9RkMb9RC6+u7Cz5ZJaeg== X-Google-Smtp-Source: ACHHUZ4VrGccQc7IcbCegbYQ4MND1aR7VorGgaodhLzxp9Px72fKK11T9PqAiWhFdnNQ0ng6zFJS+w== X-Received: by 2002:a0d:db4e:0:b0:56d:464e:db7e with SMTP id d75-20020a0ddb4e000000b0056d464edb7emr20490266ywe.13.1687453900971; Thu, 22 Jun 2023 10:11:40 -0700 (PDT) Original-Received: from smtpclient.apple (69-209-31-205.lightspeed.sntcca.sbcglobal.net. [69.209.31.205]) by smtp.gmail.com with ESMTPSA id j206-20020a816ed7000000b0056d2eb86724sm1903829ywc.142.2023.06.22.10.11.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jun 2023 10:11:40 -0700 (PDT) In-Reply-To: <83ilbf2zx6.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.600.7) 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:263897 Archived-At: > On Jun 22, 2023, at 10:02 AM, Eli Zaretskii wrote: >=20 >> From: Dave Abrahams >> Date: Wed, 21 Jun 2023 09:09:08 -0700 >> Cc: 64198@debbugs.gnu.org >>=20 >> 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? >>=20 >> When Swift asserts, it doesn't write the path to the file into the = output, because=E2=80=A6 reasons I grudgingly >> accept. So one needs to guess at the file. = https://github.com/apple/swift/issues/66777 contains all the >> details, but if you want additional info, please ask. >=20 > I don't know what Swift is, and that issue talks about something > called #fileID, which I again have no idea about. So yes, please do > elaborate, and TIA. Swift is a programming language. When its assertions (like C's assert() = macro) fail, a diagnostic is output with a file ID and line. The file ID = looks like a path, but it's really not. If it's a path in the = filesystem, that's coincidental but it's likely to point to the right = file. I don't want to manually hunt down the file every time an = assertion fails; I'd rather emacs made an educated guess based on the = current project. It's obviously not the right answer for everyone, but = I'd like to have the hooks needed to implement that without too much = hackery.=