From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#12124: 24.1.50; warning pollution Date: Sat, 04 Aug 2012 06:15:37 +0200 Message-ID: <877gtfb8d2.fsf@gmail.com> References: <87txwlkxwd.fsf@kanis.fr> <87ipd19o8s.fsf@gmail.com> <87fw849s81.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1344053788 14505 80.91.229.3 (4 Aug 2012 04:16:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Aug 2012 04:16:28 +0000 (UTC) Cc: 12124@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 04 06:16:28 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SxVmu-0005P3-5o for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Aug 2012 06:16:28 +0200 Original-Received: from localhost ([::1]:58839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxVmt-0003Gl-0P for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Aug 2012 00:16:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxVmq-0003Gg-DT for bug-gnu-emacs@gnu.org; Sat, 04 Aug 2012 00:16:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxVmp-0000lg-40 for bug-gnu-emacs@gnu.org; Sat, 04 Aug 2012 00:16:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxVmp-0000lb-0m for bug-gnu-emacs@gnu.org; Sat, 04 Aug 2012 00:16:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SxVuE-0005RX-58 for bug-gnu-emacs@gnu.org; Sat, 04 Aug 2012 00:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Aug 2012 04:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12124 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12124-submit@debbugs.gnu.org id=B12124.134405421420880 (code B ref 12124); Sat, 04 Aug 2012 04:24:02 +0000 Original-Received: (at 12124) by debbugs.gnu.org; 4 Aug 2012 04:23:34 +0000 Original-Received: from localhost ([127.0.0.1]:60442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxVtl-0005Qi-WC for submit@debbugs.gnu.org; Sat, 04 Aug 2012 00:23:34 -0400 Original-Received: from mail-wi0-f180.google.com ([209.85.212.180]:60189) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxVtj-0005Qa-1C for 12124@debbugs.gnu.org; Sat, 04 Aug 2012 00:23:32 -0400 Original-Received: by wibhm6 with SMTP id hm6so87565wib.15 for <12124@debbugs.gnu.org>; Fri, 03 Aug 2012 21:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=YmM2V4qpGpcC0WlscUZn2Bw4ZK02+fhymwDbWn02tpc=; b=wZ8xS+AR3UtFZDHKhZLD6830a2MtRyiLS7laM1rhMuN/LdKzSnt7EmFt5vF/UyQRsf d1K7h1Ore23d4brHkNcxftYaU0hc+o2Ilav9BeAbl27iEdKUrxx5mD72qwHQ9R18QbS3 NxD/qCClZcgjCVvwrW9krdKYoghHyClJvdEUXl3wrh3svKzwzyt15PPc9BhoSUSPvreD JIEfj3n35G6utoVRE2VM0KA6Z71KffZQhZTbb/x/rPHgoZp5QrSozK0Uxz7sqEBwC+SB CqlFrTgkjpL6hcv2P+9Y65CILbQJ5ENPOWb99YNEOw5BOgnm3uCZP8LzQle0rUp76/BP Wluw== Original-Received: by 10.180.78.170 with SMTP id c10mr1663786wix.3.1344053750741; Fri, 03 Aug 2012 21:15:50 -0700 (PDT) Original-Received: from thierry-MM061 (lbe83-2-78-243-104-167.fbx.proxad.net. [78.243.104.167]) by mx.google.com with ESMTPS id b7sm1521308wiz.9.2012.08.03.21.15.48 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 03 Aug 2012 21:15:49 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 03 Aug 2012 19:20:11 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62807 Archived-At: Stefan Monnier writes: >>>> Why instead of keeping old definitions of labels and flet don't we use >>>> aliases for cl-flet/labels (among others)? >>> Because they do not do the same (almost, but not quite). >> But the warnings say to use cl-flet/labels instead, so it should works >> as expected, what is the difference? > > Warnings about obsolete features just point to the replacement feature, > but in many/most cases a human needs to adjust the code accordingly. > > Some of the differences are that `labels' defines lexically-scoped vars > which can be captured in closures using the lexical-let machinery, > whereas `cl-labels' relies on lexical-binding to get the same effect, so > the vars won't get captured if the file doesn't use lexical-binding. > > `flet' does something vaguely related to common-lisp's `flet' but in > a very different way (basically with dynamic scoping rather than > lexical scoping). `cl-flet' works like common-lisp's `flet'. As you > know, lexical and dynamic scoping often can be used interchangeably, but > not always. Ok that's clear, thanks. >> You can try with helm: >> install it and byte compile it. >> Do M-x helm-M-x and type some commands. >> You should have completion on your command. > >> Now switch to another emacs and run the same command: >> It is not working, no completion. >> So it is not the flet itself that doesn't work but the function that is >> called inside this flet clause. >> recompile with this emacs and restart emacs. >> It is working. > > Please make a separate bug-report for that. And please give a more > detailed recipe (especially regarding the "install it, byte compile it > and do M-x ..." where it's not clear where and how "emacs" is started). Ok will do that today, thanks. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997