unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to use "dolist" if it's elements are also list
@ 2009-11-04  4:31 Chris
  2009-11-04  5:00 ` Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Chris @ 2009-11-04  4:31 UTC (permalink / raw)
  To: help-gnu-emacs

Hello the group.

I want to add a function to several hooks using dolist, but it doesn't 
work as I thought. I know the reason is that the hook in the list is not 
recgonized as a list, but I don't know how to fix it. Any help?

(dolist
    (the-hook
     '(c-mode-common-hook
       java-mode-hook
       perl-mode-hook
       php-mode-hook
       emacs-lisp-mode-hook))
  (add-hook 'the-hook 'my-common-key-binding))




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

end of thread, other threads:[~2009-11-04  5:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.10024.1257309084.2239.help-gnu-emacs@gnu.org>
2009-11-04  4:56 ` how to use "dolist" if it's elements are also list Pascal J. Bourguignon
2009-11-04  4:31 Chris
2009-11-04  5:00 ` Drew Adams
2009-11-04  5:54   ` Chris

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