unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* newbie elisp question
@ 2005-09-08  1:59 B. T. Raven
  2005-09-08  2:20 ` Drew Adams
  2005-09-08  4:19 ` Pascal Bourguignon
  0 siblings, 2 replies; 7+ messages in thread
From: B. T. Raven @ 2005-09-08  1:59 UTC (permalink / raw)



With the following forms in my .emacs, which the *scratch* buffer
evaluates without complaint, (from which I infer that they are at least
syntactically correct)

(defconst *vowels* '(?a ?e ?i ?o ?u ?y)
  "A list of the English vowels in lowercase.")

...
(defun vowelp (char)
  (memq (downcase char) *vowels*))

(defun goto-vowel
"Skip to next vowel after point."
(interactive)
(while (not (vowelp (char-after))) (forward-char))
)

(define-key global-map [f11] 'goto-vowel)

...

I get this error message:

"call-interactively: Invalid function: (lambda "Skip to next vowel after
point." (interactive) (while (not (vowelp (char-after)))
(forward-char)))"

What am I not understanding here?

Thanks,

Ed

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

end of thread, other threads:[~2005-09-09 17:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-08  1:59 newbie elisp question B. T. Raven
2005-09-08  2:20 ` Drew Adams
2005-09-08  4:19 ` Pascal Bourguignon
2005-09-08 22:40   ` B. T. Raven
2005-09-09  0:08     ` Pascal Bourguignon
2005-09-09 16:28       ` B. T. Raven
2005-09-09 17:32         ` Pascal Bourguignon

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