From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#33164: 26.1; Compiled function information in *Help* Date: Fri, 26 Oct 2018 08:05:39 -0700 (PDT) Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1540566484 9386 195.159.176.226 (26 Oct 2018 15:08:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 Oct 2018 15:08:04 +0000 (UTC) To: 33164@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 26 17:08:00 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 1gG3iQ-0002Hf-JS for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Oct 2018 17:07:59 +0200 Original-Received: from localhost ([::1]:60588 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gG3kX-0000HY-4q for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Oct 2018 11:10:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gG3hk-0005Jl-PT for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 11:07:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gG3hW-0001pi-8t for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 11:07:15 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39969) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gG3hW-0001pT-4Z for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 11:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gG3hV-0004kB-SS for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 11:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Oct 2018 15:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154056638218185 (code B ref -1); Fri, 26 Oct 2018 15:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Oct 2018 15:06:22 +0000 Original-Received: from localhost ([127.0.0.1]:44227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gG3gs-0004jE-0R for submit@debbugs.gnu.org; Fri, 26 Oct 2018 11:06:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gG3gp-0004iz-Qn for submit@debbugs.gnu.org; Fri, 26 Oct 2018 11:06:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gG3gi-0001Ck-91 for submit@debbugs.gnu.org; Fri, 26 Oct 2018 11:06:14 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40919) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gG3gg-0001Ba-3S for submit@debbugs.gnu.org; Fri, 26 Oct 2018 11:06:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gG3gc-0004Sh-SI for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 11:06:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gG3gM-00012V-Br for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 11:05:57 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:57474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gG3gL-00010x-Un for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 11:05:50 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9QEwgwb147855 for ; Fri, 26 Oct 2018 15:05:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=268HnFEhQD76dhgsvf3IKpbFw/zVRTopgRFZS1aSOTQ=; b=QiuOAied9XEBsUFRTE6/Cv2iwrSveiAHY5zkJez6ubbVv8B/TETnvjKK/n/4R4GEqbAm YnqMW4RKs1MAGCCS3Imp6LdFXQxFJb9MgjyQWHd880uo0LgdazE7n2bF13dDj8JjakBc 7bMm7e2UMRCUTfqZiRCreFA74+zkuCcnnO233cZe4wcm+y3x3TYQzkAZnI/Qvq0q1uus Ak/uz4gCXr0ziSPEXv6cqXT71wE1+qQd3onCmcmn7fGCW4AeGCg82XekcCOUoZSxccvA sCyq6sum1ske7oJsQTxFkoxSpsbqQx3e5XJw/q8wjvn9OOrkSh7xHiNThcQtpE2Tv3Z5 lg== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2n7vaqfs6n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 26 Oct 2018 15:05:46 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9QF5ewt013118 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 26 Oct 2018 15:05:40 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9QF5e4G007631 for ; Fri, 26 Oct 2018 15:05:40 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4756.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9057 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=958 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810260128 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:151644 Archived-At: emacs -Q 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. This is a bit more helpful than what we had in Emacs 24 (which was the byte-code, printed). 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 completion-annotate-function is a variable defined in `minibuffer.el'. Its value is (lambda (var) (and (custom-variable-p (intern-soft var)) " (option)")) Such description provided lots of helpful information, and we've lost that now. I guess this comes from eager macroexpansion (?). But is there no way for our help system to know what the function name or original lambda expression is, and print that? Yes, it would be helpful for it to _also_ provide the info that the value is actually the byte-compilation of that function, when that is the case, and to provide a link to the disassembly of that byte-code. 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? Our help system should not become _less_ helpful just because we find ways to optimize Emacs or make other improvements. From a help perspective, this is a step backward for users. 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 GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 built on CIRROCUMULUS Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor 'Microsoft Corp.', version 10.0.16299