🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #864

cl.elc is not behaving like a compiled cl.el

#864
From: Cliff Krumvieda
Date: Mon, 16 Nov 1992 04:17
26 lines
1395 bytes
Howdy:

We're running emacs-18.59 on sparcs and SunOS 4.1.1.  Consider the
following elisp code:

======================================================================
(require 'cl)
(when (not (fboundp 'message-no-log))
  (setf (symbol-function 'message-no-log)
	(symbol-function 'message)))
======================================================================

Emacs-18.58 has no problem evaluating this, but emacs-18.59 complains
with:

 No `setf' update-function for `(symbol-function (quote message-no-log))'

I checked around and discovered that, although, emacs-18.58/lisp/cl.el
and emacs-18.59/lisp/cl.el are identical files,
emacs-18.58/lisp/cl.elc and emacs-18.59/lisp/cl.elc differ.  I then
recomplied emacs-18.59/lisp/cl.el, started a new emacs, loaded the new
.elc file, and evaluated the code above without problems.

Is this a bug with some optimizing byte-compiler?

						--Cliff Krumvieda
Technical Details
Message-ID: <9211161417.AA02701@ask.cs.cornell.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.cornell.edu!cliff

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.cornell.edu!cliff
From: cliff@cs.cornell.edu (Cliff Krumvieda)
Subject: cl.elc is not behaving like a compiled cl.el
Message-ID: <9211161417.AA02701@ask.cs.cornell.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 16 Nov 1992 04:17:09 GMT
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 27