Re: defmacro is worse than my neighbours cat
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Re: defmacro is worse than my neighbours cat         


Author: Alan Mackenzie
Date: Sep 12, 2008 16:10

'Morning, Lennart!

On Fri, Sep 12, 2008 at 11:13:10PM +0200, Lennart Borgman (gmail) wrote:
> defmacro is worse than my neighbour's cat.

Miaow!!!
> When I think I everything is fine and I calm down they bite.
> I have a defmacro where I define a function and I want to build the doc
> string for this function in a certain way. This works fine - until I
> byte compile it. Can someone please try to explain to me how I can do
> what I want?
> Below is the defmacro. Look for "fix-me".
> (defmacro define-mumamo-multi-major-mode (fun-sym spec-doc chunks)
> "Define a function that turn on support for multiple major modes."
> (let* ((mumamo-describe-chunks (make-symbol "mumamo-describe-chunks"))

OK, here's a problem. You have _two_ symbols called
"mumamo-describe-chunks" here. One (uninterned) is the value of the
other. Why do this? Why not just declare the symbol directly inside the
let* form and use it?
Show full article (5.15Kb)
no comments