unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* eval trouble
@ 2008-08-25 16:56 Lennart Borgman (gmail)
  2008-08-25 17:08 ` Lennart Borgman (gmail)
       [not found] ` <mailman.17509.1219684131.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 15+ messages in thread
From: Lennart Borgman (gmail) @ 2008-08-25 16:56 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

I expected the code below to give me a function named
mumamo-repl4-my-own9-mode. It does not. Can someone please explain what
I am doing wrong?

Interestingly if I do describe-variable on xx and then use the shown value t

  (setq xx THE-SHOWN-VALUE

then

   (eval xx)

does what I want.

Here is the code that does NOT work:

(defun mumamo-define-no-mode (mode-sym)
  (let ((mumamo-repl4 (make-symbol (format "mumamo-repl4-%s" mode-sym)))
        (lighter (format "No %s" mode-sym))
        (doc
         (format
	  "MuMaMo replacement for the mode %s which was not found."
          mode-sym)))
    (setq xx
      `(define-derived-mode ,mumamo-repl4 fundamental-mode ,lighter ,doc))
    (message "xx=%s" (pp-to-string xx))
    (eval xx)
    ))

(mumamo-define-no-mode 'my-own9-mode)




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-09-22 19:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-25 16:56 eval trouble Lennart Borgman (gmail)
2008-08-25 17:08 ` Lennart Borgman (gmail)
     [not found] ` <mailman.17509.1219684131.18990.help-gnu-emacs@gnu.org>
2008-08-25 17:43   ` Pascal J. Bourguignon
2008-08-25 17:45     ` Lennart Borgman (gmail)
2008-08-25 18:47       ` Pascal J. Bourguignon
2008-08-25 18:34         ` Lennart Borgman (gmail)
     [not found]     ` <mailman.17512.1219686348.18990.help-gnu-emacs@gnu.org>
2008-08-25 19:50       ` David Kastrup
2008-08-25 20:59         ` Lennart Borgman (gmail)
     [not found]         ` <mailman.17522.1219697977.18990.help-gnu-emacs@gnu.org>
2008-08-25 21:36           ` David Kastrup
2008-08-25 21:43             ` Lennart Borgman (gmail)
2008-09-14 20:57           ` David Combs
2008-09-14 22:20             ` Drew Adams
2008-09-17  7:51               ` Kevin Rodgers
     [not found]               ` <mailman.19402.1221638109.18990.help-gnu-emacs@gnu.org>
2008-09-22 19:59                 ` David Combs
2008-08-25 19:48   ` David Kastrup

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).