From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#66750: Unhelpful text in C-h v for variables with a lambda form as value Date: Mon, 25 Mar 2024 12:03:50 +0000 Message-ID: References: <83il6k8yyd.fsf@gnu.org> <837cn08o13.fsf@gnu.org> <831qd88dt5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14409"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acorallo@gnu.org, Eli Zaretskii , 66750@debbugs.gnu.org, Stefan Kangas , acm@muc.de To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 25 17:04:24 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 1romoA-0003bR-Rp for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Mar 2024 17:04:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1romo1-0007ym-Tk; Mon, 25 Mar 2024 12:04:14 -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 1romns-0007xp-49 for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2024 12:04:08 -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 1romnr-0006Lq-9u for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2024 12:04:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1romnp-0006jA-QQ for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2024 12:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Mar 2024 16:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66750 X-GNU-PR-Package: emacs Original-Received: via spool by 66750-submit@debbugs.gnu.org id=B66750.171138264025853 (code B ref 66750); Mon, 25 Mar 2024 16:04:01 +0000 Original-Received: (at 66750) by debbugs.gnu.org; 25 Mar 2024 16:04:00 +0000 Original-Received: from localhost ([127.0.0.1]:35820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1romno-0006iv-8U for submit@debbugs.gnu.org; Mon, 25 Mar 2024 12:04:00 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:65141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1romnm-0006id-FK for 66750@debbugs.gnu.org; Mon, 25 Mar 2024 12:03:59 -0400 Original-Received: (qmail 11041 invoked by uid 3782); 25 Mar 2024 13:03:51 +0100 Original-Received: from acm.muc.de (pd953a51e.dip0.t-ipconnect.de [217.83.165.30]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 25 Mar 2024 13:03:50 +0100 Original-Received: (qmail 28908 invoked by uid 1000); 25 Mar 2024 12:03:50 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:282057 Archived-At: Hello, everybody. On Thu, Nov 02, 2023 at 23:20:36 -0400, Stefan Monnier wrote: > > How do you feel about this, Stefan (M.)? > Seems like it would leave `lambda` as well as the closure > objects unchanged, so it looks good to me. > The one thing I'd point out is: try to pick a format for the "data in > docstring" that is easily/naturally extensible (contrary to what I did > for the arglists), so that when we get around to adding support for > things like debugging info we could add it there without having to > invent a new format. I've just committed a provisional fix to this bug in branch feature/positioned-lambdas. On starting Emacs and doing C-h v org-mode-hook RET, the following gets displayed: org-mode-hook is a variable defined in `org.el'. Its value is shown below. Not documented as a variable. This variable may be risky if used as a file-local variable. You can customize this variable. Value: ({org-ctags.el 7605} #f(compiled-function () #) {org-mouse.el 30108} #f(compiled-function () #) {org.el 844741} #f(compiled-function () #) {ob-core.el 59418} #f(compiled-function () #) org-babel-result-hide-spec org-babel-hide-all-hashes) Original value was nil .. Each anonymous function is annotated with a buffer name and offset which indicates the position of the source of the function. Clearly there is room for improvement: The display is not well filled; a file name may be better than a buffer name; line/column numbers may be better than buffer offsets. There is also a possibility for putting buttons on the text fields to bring up the source code. -- Alan Mackenzie (Nuremberg, Germany).