From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#31792: 27.0.50; Regression in #'labels, recent versions Date: 13 Jun 2018 16:57:03 -0000 Organization: muc.de e.V. Message-ID: <20180613165703.46841.qmail@mail.muc.de> References: <5b1f.0188.5dc11.f21c@parhasard.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1528908969 18761 195.159.176.226 (13 Jun 2018 16:56:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2018 16:56:09 +0000 (UTC) User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.1-RELEASE-p10 (amd64)) Cc: 31792@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 13 18:56:05 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 1fT940-0004mf-EG for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jun 2018 18:56:04 +0200 Original-Received: from localhost ([::1]:35726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT967-0007ZO-KN for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jun 2018 12:58:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT95y-0007YD-D0 for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2018 12:58:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fT95u-0002Qr-Bm for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2018 12:58:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38939) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fT95u-0002Pv-80 for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2018 12:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fT95u-0007qs-1m for bug-gnu-emacs@gnu.org; Wed, 13 Jun 2018 12:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jun 2018 16:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 31792-submit@debbugs.gnu.org id=B31792.152890902730117 (code B ref 31792); Wed, 13 Jun 2018 16:58:02 +0000 Original-Received: (at 31792) by debbugs.gnu.org; 13 Jun 2018 16:57:07 +0000 Original-Received: from localhost ([127.0.0.1]:46836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fT951-0007pg-5j for submit@debbugs.gnu.org; Wed, 13 Jun 2018 12:57:07 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:40122 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1fT94y-0007pX-Uy for 31792@debbugs.gnu.org; Wed, 13 Jun 2018 12:57:05 -0400 Original-Received: (qmail 46842 invoked by uid 3782); 13 Jun 2018 16:57:03 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug 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:147379 Archived-At: In article you wrote: > found 31792 25.3 > quit > Aidan Kehoe writes: >> When I do the same in the emacs 22.1.1 that Apple built and shipped with >> my OS, I get a compiled function object, as is much closer to being the >> correct behaviour. > Seems to have regressed in Emacs 25, cl-labels still works correctly. > Here's a smaller reproducer: > (labels ((foo () t)) > #'foo) ;=> foo > (cl-labels ((foo () t)) > #'foo) ;=> (lambda nil t) Just as a matter of interest, the doc strings for both these functions are poor. That for cl-labels says "make temporary function bindings" without saying what a "function binding" is (it's not obvious), without saying what functions (?or symbols) are being bound, and doesn't say whether they get bound one after the other (in `let*' fashion) or all at once (in `let' fashion). It goes on to say "The bindings can be recursive, ...". This is gibberish to me. Further, "the scoping is lexical". The scoping of what is lexical? And in what? I dare say I could fathom out most of these things with effort, but I shouldn't have to. Maybe this macro could be of use to me, but with the doc string as it is, I'll never find out. Pity. -- Alan Mackenzie (Nuremberg, Germany).