unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 12124@debbugs.gnu.org
Subject: bug#12124: 24.1.50; warning pollution
Date: Fri, 03 Aug 2012 12:37:18 +0200	[thread overview]
Message-ID: <87fw849s81.fsf@gmail.com> (raw)
In-Reply-To: <jwvbois1ext.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 03 Aug 2012 05:52:37 -0400")

Stefan Monnier <monnier@IRO.UMontreal.CA> 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?

>> It would also fix a problem of compatibility of compiled files between
>> 24.1 and 24.2.(All files containing flet or labels need recompilation).
>
> That's news to me: these macros should return code that's independent
> from CL, so they should not require recompilation.
> Please report with details.
It seems that a simple form of flet works without recompiling, but a
more complex form with a let* inside the flet clause seems to fail
silently. (not only maybe, but conjunction of other things)

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.

You can find the code of helm-M-x in helm-command.el.

NOTE: it use local var byte-compile-dynamic.

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 





  reply	other threads:[~2012-08-03 10:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-02 17:26 bug#12124: 24.1.50; warning pollution Ivan Kanis
2012-08-02 17:50 ` Thierry Volpiatto
2012-08-03  9:52   ` Stefan Monnier
2012-08-03 10:37     ` Thierry Volpiatto [this message]
2012-08-03 23:20       ` Stefan Monnier
2012-08-04  4:15         ` Thierry Volpiatto
2012-08-05  8:26     ` Ivan Kanis
2012-08-06 10:35       ` Stefan Monnier
2012-08-11 14:31         ` Ivan Kanis
2012-08-11 15:29           ` Stefan Monnier
2012-08-11 14:32         ` Ivan Kanis
2012-08-11 15:30           ` Stefan Monnier
2012-08-12  8:26             ` Ivan Kanis
2012-08-12 16:44               ` Stefan Monnier
2012-08-13 18:17                 ` Ivan Kanis
2021-12-06 23:36         ` bug#12124: *Compile Log* pops up for compile warnings from programatic calls to byte-compile Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fw849s81.fsf@gmail.com \
    --to=thierry.volpiatto@gmail.com \
    --cc=12124@debbugs.gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).