From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47762: Doc of `macroexp-file-name' (Emacs 28) Date: Wed, 14 Apr 2021 09:22:21 +0300 Message-ID: <83a6q11j36.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19895"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47762-done@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 14 08:23:31 2021 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 1lWYvz-00051V-7p for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Apr 2021 08:23:31 +0200 Original-Received: from localhost ([::1]:38336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWYvy-0001bA-2L for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Apr 2021 02:23:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWYvX-0001aw-JD for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 02:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWYvW-0001ti-Im for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 02:23:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWYvW-0002ky-7W for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 02:23:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Apr 2021 06:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 47762 X-GNU-PR-Package: emacs Mail-Followup-To: 47762@debbugs.gnu.org, eliz@gnu.org, drew.adams@oracle.com Original-Received: via spool by 47762-done@debbugs.gnu.org id=D47762.161838136110545 (code D ref 47762); Wed, 14 Apr 2021 06:23:02 +0000 Original-Received: (at 47762-done) by debbugs.gnu.org; 14 Apr 2021 06:22:41 +0000 Original-Received: from localhost ([127.0.0.1]:33209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWYvB-0002k1-8w for submit@debbugs.gnu.org; Wed, 14 Apr 2021 02:22:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWYv9-0002jm-2y for 47762-done@debbugs.gnu.org; Wed, 14 Apr 2021 02:22:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37684) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWYv3-0001dM-K2; Wed, 14 Apr 2021 02:22:33 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3040 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lWYv2-0001Be-TV; Wed, 14 Apr 2021 02:22:33 -0400 In-Reply-To: (message from Drew Adams on Tue, 13 Apr 2021 22:34:57 +0000) 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:203996 Archived-At: > From: Drew Adams > Date: Tue, 13 Apr 2021 22:34:57 +0000 > > The doc string shown there is this: > > Return the name of the file from which the code comes. > Returns nil when we do not know. > A non-nil result is expected to be reliable when called from a macro in order > to find the file in which the macro's call was found, and it should be > reliable as well when used at the top-level of a file. > Other uses risk returning non-nil value that point to the wrong file. > > Please consider clarifying the doc for this function. For example, just > what code is meant here: "the file from which the code comes"? > ^^^^^^^^ This is explained by the text that you cited. Closing.