From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74504: 31.0.50; Wrong source directory in *Help* Date: Sun, 24 Nov 2024 08:12:39 +0100 Message-ID: Reply-To: Eshel Yaron Mime-Version: 1.0 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="9121"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier To: 74504@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 24 08:13:32 2024 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 1tF6oG-0002EQ-NB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Nov 2024 08:13:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tF6nr-0006mh-DB; Sun, 24 Nov 2024 02:13:07 -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 1tF6no-0006lS-6Q for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 02:13:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tF6nn-0004jJ-Ob for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 02:13:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=P6C5UewDngqoUJmCJBxc+ZVr+aW6KI5qZQ9vF+Yir7s=; b=t2ZGDCMq1zXWWlkBXzQSyur7MNljGuW1rZwGWnRAEA9Vru4sI7Mg9uAVdJ/DQN1Fsre8RQGkSEVgl7Sk7Gcv2dgfP8Eh64DWoJEKwthj9Lr815Dlqfg4IDjnghA35w0c47U8yw6FeXf8PqvjJqroA4DSiOC5dGomN/Azoeql/dF5OrF/wll1CItXS4GIqSQArMhsiaeJKbuWWyoT2JMtg98cjKcgtj0Ru/Z1HsqWgnMT1x1Wb9nA5lkfP33hyfQJJtLeZq9HzkPgiV6NEtFG8b4rmGrNnzfZwa3GIJs0Rnz3Ur+vEk99Vlzl7RKh0bwOEYVNEUlaJd6+8S/YuDOmJQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tF6nm-0002NJ-Iy; Sun, 24 Nov 2024 02:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: monnier@iro.umontreal.ca, bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Nov 2024 07:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74504 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Stefan Monnier Original-Received: via spool by submit@debbugs.gnu.org id=B.17324323699103 (code B ref -1); Sun, 24 Nov 2024 07:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Nov 2024 07:12:49 +0000 Original-Received: from localhost ([127.0.0.1]:60510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tF6nY-0002Ml-Mx for submit@debbugs.gnu.org; Sun, 24 Nov 2024 02:12:48 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:54962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tF6nW-0002Ma-NF for submit@debbugs.gnu.org; Sun, 24 Nov 2024 02:12:47 -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 1tF6nU-0006eo-Pk for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 02:12:45 -0500 Original-Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tF6nS-0004hs-LN for bug-gnu-emacs@gnu.org; Sun, 24 Nov 2024 02:12:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1732432361; bh=pPXtgSLk1NtwI9dxniS78cUaNJNgmlFr8AKk86RXBiA=; h=From:To:Subject:Date:From; b=k869zFtnByK8D81+mad/cO0+SWMm4edxDXRvK5zcTNCGh5UeuA1Nh93bDr+wwDuSa xG7he0GlJcUa7/AbIwVZHabPQVFihwEHz+TGYVpK0zHOkRiCK9YbD5eoXQ8sPai1pt OPPkghIdlpsK5T8nDmww2Wo9g1rCjTmZuqMc9acebmiRlfbdjvXN0l9B6+4ygiX2f8 XCQLx1aHBZbw2CxjizCKNpT/WpM8bNzQxn9wbL7DnfWNVH7z/5y7TB214ft6J78gsU hJZ4fE931Cus1LjpaN57Hh0t+nHSzMuVoBH5L9HpOTKr4OFgsVIAN2A1l2/KiBl15E okyPksLuZfLMg== Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:295889 Archived-At: Hi, I think that commit e807d62c leads to the following regression: 1. Build Emacs 2. Run src/emacs -Q 3. In the *scratch* buffer say M-x cd /tmp (/tmp here is just an arbitrary directory that is not the Emacs sources directory) 4. C-h f make-overlay Now the first line in the *Help* buffer says: "make-overlay is a primitive-function in =E2=80=98C source code=E2=80=99= ." So far so good. 5. Switch to the *Help* buffer and type s, this finds buffer.c 6. Switch back to the *Help* buffer and type g The first line in *Help* now says: "make-overlay is a primitive-function in =E2=80=98/tmp/src/buffer.c=E2= =80=99." ^^^^^ <-- Wrong! =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 Note that the reported file name starts with whatever default-directory happens to be in the *Help* buffer, which is incorrect. Before commit e807d62c, we'd get a file name relative to source-directory, so just src/buffer.c in this case. Best, Eshel