Article View: gnu.emacs.bug
Article #99247(none)
From: nixpbe!uucp
Date: Tue, 16 Oct 1990 21:57
Date: Tue, 16 Oct 1990 21:57
35 lines
1798 bytes
1798 bytes
>From uucp Wed Oct 17 05:40 WST 1990 remote from nixsin
To: nixpbe!unido!gnu-emacs-bug
Path: nixsin!nixpbe!nixbur!linus!agate!ucbvax!tut.cis.ohio-state.edu!ALTDORF.AI.MIT.EDU!markf
From: markf@ALTDORF.AI.MIT.EDU
Newsgroups: gnu.emacs.bug
Subject: Nested defun.
Message-ID: <9010031651.AA14155@life.ai.mit.edu>
Date: 3 Oct 90 16:51:44 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: markf@zurich.ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 20
In emacs version 18.55, the following code will work if it is directly
interpreted, but it will not work if it is byte compiled (I get an
error message of "Symbol's value as variable is void: new-defun"):
(defun test-defun()
(if t
(defun new-defun ()
"grumble"
(message "success"))))
I know that in lisps in general nested defuns are not allowed (and I
know the proper way to do this). If this is the intention in emacs
lisp then the interpreter should complain. In addition, the
documentation on emacs and emacs lisp should mention the restriction
on the use of defun.
I discovered this problem in trying to use a package that someone else
wrote.
-Mark
Technical Details
Message-ID:
<9010162157.AW26152@unido.informatik.uni-dortmund.de>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!relay.eu.net!nixpbe!uucpShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,f1dbc4b61e8e8143 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-10-16 14:57:12 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!relay.eu.net!nixpbe!uucp From: nixpbe!uucp@relay.eu.net Newsgroups: gnu.emacs.bug Subject: (none) Message-ID: <9010162157.AW26152@unido.informatik.uni-dortmund.de> Date: 16 Oct 90 21:57:12 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 35 Approved: bug-gnu-emacs@prep.ai.mit.edu Posted: Tue Oct 16 22:57:12 1990