From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How does one find out what file a library has been loaded from? Date: Sun, 24 Jul 2022 14:50:12 -0400 Message-ID: References: <83sfmxm79z.fsf@gnu.org> <83fsiwncem.fsf@gnu.org> <83mtd3ngcw.fsf@gnu.org> <838rommjxj.fsf@gnu.org> <83k084i1ed.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4291"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Alan Mackenzie , Eli Zaretskii , emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 24 20:51:46 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oFghe-0000th-6n for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Jul 2022 20:51:46 +0200 Original-Received: from localhost ([::1]:46016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFghd-0005eA-5g for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Jul 2022 14:51:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFggE-0004Yt-Or for emacs-devel@gnu.org; Sun, 24 Jul 2022 14:50:22 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:15986) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFggC-0002If-VR; Sun, 24 Jul 2022 14:50:18 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A7CE6440F0A; Sun, 24 Jul 2022 14:50:14 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 80A6E440D17; Sun, 24 Jul 2022 14:50:13 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1658688613; bh=GE5JIyJduOrpC/RzSIvr7kjogFVbtHRemWRsn/EVPlA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=hoLIs441vtAk22y7GuM9OFvT6fnFMel500AFy+KmccL+u7jXKVxeXdPwyPOQWmpAU WRfEdKyEROCYauf37K6njc0m10zK8ev8IdzPD6A2aSh9t9Ok+pGNhN7UGBLQFbXdyO kW2OmmXXAGnBeEaoZk30MhwYtorsZRLOmb087e3oCs12iZGDM4Fqa6Wd71mSDQc2cF 1/5xSXZrwHSrIhqiivTlIsOcl9igHVLYEmjs1vy1T06uHyLISGaEb7iODqkTE9v9ow xXuLKvyIox4vX47oGpB9ejdI8bzyIRyKR87Ze4jTzbP03iBh97AV9woNffEJsGfOUg jyQKx1mzi4r5w== Original-Received: from pastel (unknown [45.72.195.111]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4887A120234; Sun, 24 Jul 2022 14:50:13 -0400 (EDT) In-Reply-To: (T. V. Raman's message of "Sun, 24 Jul 2022 11:21:01 -0700") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292613 Archived-At: > if find-function knows where the function is, shouldn't it be possible > to then tell what file it came from, and so consequently doesn't that > answer the more general question of what library a file came from? There are different notions of origin at play here. `find-function` tries to find the source code origin. Alan seems to want to know the origin of the code in a shape as close as possible to that present in the Emacs session. Stefan