Subject: bug#411: closed (Re: bug#411: 23.0.60; flet and byte-compilation)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 31 Oct 2012 03:59:02 +0000

Your bug report

#411: 23.0.60; flet and byte-compilation

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
411: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=411
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#411: 23.0.60; flet and byte-compilation
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Tue, 30 Oct 2012 23:56:06 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 24.3

It seems to work (somehow) with the new hotness cl-lib and cl-flet
rather than the old and busted cl and flet.

>From [email-masked] Sat Jun 14 08:17:46 2008
From: Michael Heerdegen <[email-masked]>
To: [email-masked]
Subject: 23.0.60; flet and byte-compilation
Reply-to: [email-masked]
Date: Sat, 14 Jun 2008 17:17:12 +0200
Sender: [email-masked]

A much simplified version of the original problem, but still a bug:

Create a file test.el with the following contents:

(defun f (x y)
  (flet ((+ (a b) (- a b)))
    (+ x y)))

Bytecompile it and load f.elc.

Evaluate the expression (f 1 2). This should yield -1, but the result
will be 3.

In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
 of 2008-05-17 on debian
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: C
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Help

Minor modes in effect:
  hl-line-mode: t
  minibuffer-indicate-depth-mode: t
  shell-dirtrack-mode: t
  display-time-mode: t
  msb-mode: t
  mouse-sel-mode: t
  icomplete-mode: t
  show-paren-mode: t
  recentf-mode: t
  auto-image-file-mode: t
  partial-completion-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  view-mode: t