From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#33164: 26.1; Compiled function information in *Help* Date: Sun, 28 Oct 2018 09:27:45 -0400 Message-ID: <877ei2jj5a.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1540733197 9073 195.159.176.226 (28 Oct 2018 13:26:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2018 13:26:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 33164@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 28 14:26:33 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGl5K-0002F0-Rq for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Oct 2018 14:26:31 +0100 Original-Received: from localhost ([::1]:40145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGl7Q-0000d4-NZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Oct 2018 09:28:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGl7G-0000cW-Km for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2018 09:28:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGl79-0007fH-Nl for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2018 09:28:28 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGl6o-00078H-UZ for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2018 09:28:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gGl6o-00024q-Ho for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2018 09:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Oct 2018 13:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33164-submit@debbugs.gnu.org id=B33164.15407332767971 (code B ref 33164); Sun, 28 Oct 2018 13:28:02 +0000 Original-Received: (at 33164) by debbugs.gnu.org; 28 Oct 2018 13:27:56 +0000 Original-Received: from localhost ([127.0.0.1]:46826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGl6h-00024Q-Dy for submit@debbugs.gnu.org; Sun, 28 Oct 2018 09:27:55 -0400 Original-Received: from mail-it1-f169.google.com ([209.85.166.169]:40564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGl6f-000244-2h; Sun, 28 Oct 2018 09:27:53 -0400 Original-Received: by mail-it1-f169.google.com with SMTP id i191-v6so6575478iti.5; Sun, 28 Oct 2018 06:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=AalOzwAQ+NxDu1CKiy8K0Qmz+arRWlD198gigm0Wwls=; b=WmxPV7Dq00BQwqFHlQ/bWMK/fwjrei8D2fcBJt35o7emSuqxSucyiqXX2dypDcWvIg q5jaXGv+sfS7CmzrzompbTXnPtPAieriMjulY+m7bQf0nq6sonufRjqipQpChBMHdZb1 R7PNGlZwPUYMeVzqAN82KOJO4iNYnQmqlhm1PzyQ4nH9BRc4xvTMCufLqGpWV3OUZ/S7 epWgr9dCf2t2/OXxH4SUXT4yD710KNK9PmONR1gGq19UU51St2SFGkxkClLX8ffH+9Uu QJi1NrzfNbDVcTNCgBhrgMTQCew9AD2a/W/+/6H7oEOeMZwPkctyPAmpj8jOmZVGafBa Fg7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=AalOzwAQ+NxDu1CKiy8K0Qmz+arRWlD198gigm0Wwls=; b=t6/dNCd7HHcQieKdE6nQz8876ObAooXyiFZmGVvRoPjyDN4kEX2l1AIRluZIgJuK/b gkCbWjjWpWXrB1rIwwqA31SD+DAgx+H3ZNhMyv12vPrVaZyq5WlUeG1rvG2h++FQ1FKK A5mqYuEnMcH2ivHFoNAOgPVBdXmlFNOrsucewK8A9d/pl+ADxWoseUbNrnLOLZtT4mWY e9c3x9d0rPWJ/LCoDc0/djqbE86FTM2MTMJMwZwoqHrDyZYKcCudjF6lUzDqWfXP1o6i bwS/UdpiNdYvvax5RCe3IaYqdpyBbwYrpdDi3AlPFG8hqfwLOJDzVBo7VfNlBxlkHyRn Sqig== X-Gm-Message-State: AGRZ1gLtne6wX/zsgeEc2ai+G1NcMYrwcWQ8D0rsv/uoJCAu7GH5J3bo j/VowQc8Ctoe/27XkMZDgrA1sYc8 X-Google-Smtp-Source: AJdET5f/YkJ6C06bPL+lDhtaaczr8jbABLMLpFRwgOwWImN2VkPfbswtoeAqge44S5YOZBjIbQlXpQ== X-Received: by 2002:a02:39b:: with SMTP id e27-v6mr3413905jae.3.1540733267416; Sun, 28 Oct 2018 06:27:47 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id j75-v6sm5181671itj.33.2018.10.28.06.27.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Oct 2018 06:27:46 -0700 (PDT) In-Reply-To: (Drew Adams's message of "Fri, 26 Oct 2018 08:05:39 -0700 (PDT)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151743 Archived-At: retitle 33164 Compiled function value information in *Help* quit Drew Adams writes: > C-h v region-extract-function tells me: > > region-extract-function is a variable defined in 'simple.el'. > Its value is #f(compiled-function (method) #) > ... > > There is a link to `simple.el'. And the # is also a link, > to the disassembled byte-code. > But it is less helpful than what we had back in Emacs 23, which printed > the name or the lambda expression of the function that is the value of > the variable. Examples: > > comment-line-break-function is a variable defined in `simple.el'. > Its value is comment-indent-new-line This one is still the same in newer Emacs versions. > But just showing the byte code, even disassembled, is not so helpful. > What if a user wants to go to the function definition, to use it as a > model for defining a new value for the variable or just to study it? Similarly, C-h v float-pi tells me float-pi is a variable defined in =E2=80=98float-sup.el=E2=80=99. Its value is 3.141592653589793 It doesn't show me (* 4 (atan 1)) for study. > But maybe I'm missing something? Is there currently some way to get to > the source code defining the function that is the variable value? In this case, the link to `simple.el' takes you there because it's the default value. But in general, no, that information is not saved anywhere. The easiest fix is to say we should never assign anonymous functions to variables (there have already been a couple of cases where some anonymous function values were given names), so then they would all show a symbol like comment-line-break-function.