bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Byte-compile problem


From: Luc Teirlinck
Subject: Byte-compile problem
Date: Thu, 11 Nov 2004 10:35:43 -0600 (CST)

I suspect that the reason why you see the bug and Andreas does not, is
that you must have tried to byte compile the entire file, whereas
Andreas only compiled the one function you sent.

The bug is known and caused by a recent change in bytecomp.el.
See the threads "Change in bytecomp.el breaks Gnus" on
emacs-pretest-bug and "Byte compiling started doing strange things."
on emacs-devel.

The following patch was proposed by Katsumi Yamaoka on emacs-pretest-bug.
I have not yet tried it out.

*** bytecomp.el~        Tue Nov  9 21:53:14 2004
--- bytecomp.el Thu Nov 11 11:17:58 2004
***************
*** 3720,3726 ****
    (if (and (consp (cdr form)) (consp (nth 1 form))
           (eq (car (nth 1 form)) 'quote)
           (consp (cdr (nth 1 form)))
!          (symbolp (nth 1 (nth 1 form))))
        (let ((constant
             (and (consp (nthcdr 2 form))
                  (consp (nth 2 form))
--- 3720,3727 ----
    (if (and (consp (cdr form)) (consp (nth 1 form))
           (eq (car (nth 1 form)) 'quote)
           (consp (cdr (nth 1 form)))
!          (symbolp (nth 1 (nth 1 form)))
!          (not (byte-code-function-p (nth 2 form))))
        (let ((constant
             (and (consp (nthcdr 2 form))
                  (consp (nth 2 form))

Sincerely,

Luc.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]