unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: Andreas Schwab <schwab@suse.de>, bug-gnu-emacs@gnu.org
Subject: Byte-compile problem
Date: Thu, 11 Nov 2004 10:35:43 -0600 (CST)	[thread overview]
Message-ID: <200411111635.iABGZhM07395@raven.dms.auburn.edu> (raw)

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	other threads:[~2004-11-11 16:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-11 16:35 Luc Teirlinck [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-11-11 11:30 Byte-compile problem Sun Yijiang
2004-11-11 13:11 ` Andreas Schwab

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=200411111635.iABGZhM07395@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=schwab@suse.de \
    /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).