gnu.emacs.bug
[Top] [All Lists]

bug#3844: 23.1.50; Sample of code in manual does not compile

Subject: bug#3844: 23.1.50; Sample of code in manual does not compile
From: Chong Yidong
Date: Tue, 14 Jul 2009 10:49:02 -0400
Newsgroups: gnu.emacs.bug

> On the page 
> http://www.gnu.org/software/emacs/manual/html_node/elisp/Simple-Macro.html#Simple-Macro
> is example usage of macro but macro called 'inc' does not compile in
> *scratch* by using C-x C-e.

I can't reproduce this problem.  Please provide the exact recipe for
seeing this bug.  What I tried is

1. emacs -Q
2. Insert this in the *scratch* buffer:
(defmacro inc (var)
  (list 'setq var (list '1+ var)))
3. C-x C-e

The word "inc" appears in the echo area.




<Prev in Thread] Current Thread [Next in Thread>