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#67455: (Record source position, etc., in doc strings, and use this in *Help* and backtraces.) Date: Tue, 26 Mar 2024 16:42:28 -0400 Message-ID: References: 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="8068"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 67455@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 26 21:43:21 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 1rpDdg-0001wn-Bf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Mar 2024 21:43:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpDdR-0001h2-HS; Tue, 26 Mar 2024 16:43:05 -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 1rpDdP-0001gp-Ee for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2024 16:43:03 -0400 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 1rpDdP-0007Ex-4L for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2024 16:43:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpDdO-0006Vh-Ps for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2024 16:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Mar 2024 20:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67455 X-GNU-PR-Package: emacs Original-Received: via spool by 67455-submit@debbugs.gnu.org id=B67455.171148575824975 (code B ref 67455); Tue, 26 Mar 2024 20:43:02 +0000 Original-Received: (at 67455) by debbugs.gnu.org; 26 Mar 2024 20:42:38 +0000 Original-Received: from localhost ([127.0.0.1]:35184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpDcz-0006Uk-SM for submit@debbugs.gnu.org; Tue, 26 Mar 2024 16:42:38 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:43645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpDcx-0006UW-GS for 67455@debbugs.gnu.org; Tue, 26 Mar 2024 16:42:36 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2152144301B; Tue, 26 Mar 2024 16:42:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1711485748; bh=2DvHqzO5mrIDfpcmkImvtambSDrx2k+GQhqCMSTBWwg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=UatEy8q+jCR6s3H6bmzAsoX/b/ATVsy8KxHynMPgP1apW5AavFvYyMV44bU1wEmJb qOtIePDtCpYM9wjz6aBYwNfbRI/HM4SF6q79tgQkqSKzOTY/RiSOJuvjCzfwBu5PqW 8Qb1Yo6OsaV8RnpVnyE1zOLqQ3tZCAS1Z1DWu12slshBc1pWVq7gTidV0SPiA/2C8g P1WorSGE8NlaLbTnkNhCqi9na9kS/jd1AN9lcNoPqA8Q3ImZPajW3YkilfqZIsE8cv ivzspvPoYZHx3fsUn3HPkJgFlq8Hb7ItXNtDCS69r38uC0gyiXAj9GH2z1BA9dvEWu CwF6SLr3JpHrA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C62D5443016; Tue, 26 Mar 2024 16:42:28 -0400 (EDT) Original-Received: from pastel (unknown [45.72.199.112]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9D1A31205FB; Tue, 26 Mar 2024 16:42:28 -0400 (EDT) In-Reply-To: (Alan Mackenzie's message of "Tue, 26 Mar 2024 20:21:50 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282114 Archived-At: > r-p-defined-s positions only lambdas and NAMEs defined by defun, > defmacro, defvar, .... (around 50 defining symbols). r-p-s positions > every symbol apart from nil. They have different purposes. r-p-d-s > gets info for the doc strings, which requires SWPs only for some > symbols. r-p-s is needed to get warning message locations. Were r-p-s > used for the doc string position information, most of the symbols would > need to be stripped of their positions before the form could be used. > It is simpler and faster not to position them at all. In terms of code, I can't see why it'd be simpler: we already have the r-p-s function, and we already have a function to strip that info when we don't need it any more, so it would be less new code to write if we just used r-p-s, I think. Stefan