From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55492: 29.0.50; apropos-documentation with universal argument shows an error Date: Tue, 17 May 2022 22:19:45 -0400 Message-ID: References: <87tu9ng3yg.fsf@gnus.org> <87pmkbg38c.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26952"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 55492@debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 18 04:20:12 2022 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 1nr9IJ-0006r1-Kw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 May 2022 04:20:11 +0200 Original-Received: from localhost ([::1]:40994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nr9II-0007BW-5J for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 May 2022 22:20:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nr9IA-00079s-5J for bug-gnu-emacs@gnu.org; Tue, 17 May 2022 22:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36343) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nr9I9-0005vE-Rw for bug-gnu-emacs@gnu.org; Tue, 17 May 2022 22:20:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nr9I9-0000vs-Iw for bug-gnu-emacs@gnu.org; Tue, 17 May 2022 22:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 May 2022 02:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55492 X-GNU-PR-Package: emacs Original-Received: via spool by 55492-submit@debbugs.gnu.org id=B55492.16528403973570 (code B ref 55492); Wed, 18 May 2022 02:20:01 +0000 Original-Received: (at 55492) by debbugs.gnu.org; 18 May 2022 02:19:57 +0000 Original-Received: from localhost ([127.0.0.1]:58473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr9I5-0000vW-15 for submit@debbugs.gnu.org; Tue, 17 May 2022 22:19:57 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr9I2-0000vI-Sp for 55492@debbugs.gnu.org; Tue, 17 May 2022 22:19:56 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 01002441786; Tue, 17 May 2022 22:19:49 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DA52B44175D; Tue, 17 May 2022 22:19:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1652840386; bh=4o2KYp7jV1Cge4Wj6B0k9dKIg4hwDPzmoxfrMah6Nmo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=W1F2Xk2URkxZrzwJMjzkoLh73zz3/QcqE1MWfCFp/z41P12CjgpYaAyTxcOhmga9q fb5qT0NzAkprtB10UWiWAIx5nllHl+KyEaIxoOAK975ygZqdBzPmVj/lgAVjj4Mjf5 jFvgq2JUG4N8MT8mF6+/Wf89MDHBoize5tvhRW3/KM81746G7n5vhZXN+8JWJY+JON K7GeIyLSWkReQt0eS3f4dhykr+6hZeEsj18FsXSlFiJEEOG/ksBfNGSO/OO/Ns8Erg vH1y8hEvRXhE3MijkvqrYNUkufr+M8bwUJtrcnJAQvZ8f9NjukSpxktHoTGVh5BMK+ mr6+QQalBaiIA== Original-Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id AD15A1204F0; Tue, 17 May 2022 22:19:46 -0400 (EDT) In-Reply-To: <87pmkbg38c.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 18 May 2022 01:15:47 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:232515 Archived-At: > Right. Then perhaps the error is just in: > > (apropos-documentation-check-elc-file "simple.elc") > > It assumes a full file name, and doesn't look into the load path, which > it could trivially do. Looking up the `load-path` should be of last resort because it's not reliable (e.g. when you have foo/bar/comp.elc it's not clear if it's emacs-lisp/comp.elc or semantic/wisent/comp.elc). > But before I fix that -- is (aref (symbol-function 'kill-current-buffer) > 4) supposed to be the full file name or just the leaf name? The file name should be absolute for all files except the preloaded ones, and those should be relative to `lisp-directory` (because the preloaded files are loaded before we know where the Lisp files will be available at run-time). Stefan