GNU bug report logs - #13663
24.2.93; Why warn `flet' is an obsolete macro at runtime?

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Sat, 9 Feb 2013 14:59:02 UTC

Severity: minor

Tags: moreinfo

Found in version 24.2.93

Done: Leo Liu <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13663 in the body.
You can then email your comments to 13663 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13663; Package emacs. (Sat, 09 Feb 2013 14:59:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo Liu <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 09 Feb 2013 14:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.93; Why warn `flet' is an obsolete macro at runtime?
Date: Sat, 09 Feb 2013 22:57:27 +0800
I am getting this when running emacs:

/usr/local/emacs/share/emacs/24.2.93/lisp/gnus/message.elc:Warning:
    `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or
    `cl-letf'.

Why a user needs to care about this?

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13663; Package emacs. (Sun, 10 Feb 2013 02:05:02 GMT) Full text and rfc822 format available.

Message #8 received at 13663 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 13663 <at> debbugs.gnu.org
Subject: Re: bug#13663: 24.2.93;
	Why warn `flet' is an obsolete macro at runtime?
Date: Sat, 09 Feb 2013 21:04:24 -0500
> I am getting this when running emacs:
> /usr/local/emacs/share/emacs/24.2.93/lisp/gnus/message.elc:Warning:
>     `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or
>     `cl-letf'.

> Why a user needs to care about this?

Good question.  Basically, the question is: why is this flet
macro-expanded so late (instead of during byte-compilation)?


        Stefan




Reply sent to Leo Liu <sdl.web <at> gmail.com>:
You have taken responsibility. (Sun, 10 Feb 2013 06:24:02 GMT) Full text and rfc822 format available.

Notification sent to Leo Liu <sdl.web <at> gmail.com>:
bug acknowledged by developer. (Sun, 10 Feb 2013 06:24:02 GMT) Full text and rfc822 format available.

Message #13 received at 13663-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 13663-done <at> debbugs.gnu.org
Subject: Re: bug#13663: 24.2.93;
	Why warn `flet' is an obsolete macro at runtime?
Date: Sun, 10 Feb 2013 14:22:55 +0800
On 2013-02-10 10:04 +0800, Stefan Monnier wrote:
[snipped 7 lines]
> Good question.  Basically, the question is: why is this flet
> macro-expanded so late (instead of during byte-compilation)?
>
>
>         Stefan

Looks like message.el needs recompilation. I have just done that and the
warning is gone.

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13663; Package emacs. (Mon, 11 Feb 2013 04:20:02 GMT) Full text and rfc822 format available.

Message #16 received at 13663 <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 13663 <at> debbugs.gnu.org
Subject: Re: bug#13663: 24.2.93;
	Why warn `flet' is an obsolete macro at runtime?
Date: Mon, 11 Feb 2013 12:18:43 +0800
On 2013-02-10 10:04 +0800, Stefan Monnier wrote:
> Good question.  Basically, the question is: why is this flet
> macro-expanded so late (instead of during byte-compilation)?

The problem can not be resolved by recompiling message.el. Looks more
serious.

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13663; Package emacs. (Mon, 11 Feb 2013 11:40:02 GMT) Full text and rfc822 format available.

Message #19 received at 13663 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 13663 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#13663: 24.2.93;
	Why warn `flet' is an obsolete macro at runtime?
Date: Mon, 11 Feb 2013 12:38:54 +0100
Leo Liu <sdl.web <at> gmail.com> writes:

> The problem can not be resolved by recompiling message.el. Looks more
> serious.

Perhaps the warning is actually triggered by some hook or advice?  There
is no use of flet anywhere in gnus.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13663; Package emacs. (Mon, 11 Feb 2013 12:10:02 GMT) Full text and rfc822 format available.

Message #22 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#13663: 24.2.93;
	Why warn `flet' is an obsolete macro at runtime?
Date: Mon, 11 Feb 2013 20:09:02 +0800
On 2013-02-11 19:38 +0800, Andreas Schwab wrote:
> Perhaps the warning is actually triggered by some hook or advice?  There
> is no use of flet anywhere in gnus.
>
> Andreas.

But message.el uses it:

(defun message-read-from-minibuffer (prompt &optional initial-contents)
  "Read from the minibuffer while providing abbrev expansion."
  ......)

Leo





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13663; Package emacs. (Mon, 11 Feb 2013 14:32:02 GMT) Full text and rfc822 format available.

Message #25 received at 13663 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 13663 <at> debbugs.gnu.org
Subject: Re: bug#13663: 24.2.93;
	Why warn `flet' is an obsolete macro at runtime?
Date: Mon, 11 Feb 2013 15:31:31 +0100
Leo Liu <sdl.web <at> gmail.com> writes:

> But message.el uses it:
>
> (defun message-read-from-minibuffer (prompt &optional initial-contents)

Right, I was looking at trunk where it has been removed.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13663; Package emacs. (Mon, 11 Feb 2013 17:12:02 GMT) Full text and rfc822 format available.

Message #28 received at 13663 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 13663 <at> debbugs.gnu.org
Subject: Re: bug#13663: 24.2.93;
	Why warn `flet' is an obsolete macro at runtime?
Date: Mon, 11 Feb 2013 12:10:52 -0500
Where is the recipe starting from emacs -Q?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13663; Package emacs. (Mon, 11 Feb 2013 17:27:01 GMT) Full text and rfc822 format available.

Message #31 received at 13663 <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 13663 <at> debbugs.gnu.org
Subject: Re: bug#13663: 24.2.93;
	Why warn `flet' is an obsolete macro at runtime?
Date: Tue, 12 Feb 2013 01:25:13 +0800
On 2013-02-12 01:10 +0800, Glenn Morris wrote:
> Where is the recipe starting from emacs -Q?

Unfortunately, I have no such recipe for this bug.

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13663; Package emacs. (Mon, 11 Feb 2013 17:38:06 GMT) Full text and rfc822 format available.

Message #34 received at 13663-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 13663-done <at> debbugs.gnu.org
Subject: Re: bug#13663: 24.2.93;
	Why warn `flet' is an obsolete macro at runtime?
Date: Tue, 12 Feb 2013 01:37:23 +0800
On 2013-02-12 01:10 +0800, Glenn Morris wrote:
> Where is the recipe starting from emacs -Q?

Seems as Andreas Schwab it is triggered by an advice I put on
message-bogus-recipient-p which has a flet.

Sorry for the noise. I have closed the bug.

Leo




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 12 Mar 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.