In article , Sharon Kimble wrote: > --8<---------------cut here---------------start------------->8--- > #+begin_src emacs-lisp > (defun qdot/clear-kill-ring () > "Clear the kill ring variable" > (setq kill-ring nil)) > (global-set-key (kbd "s-/") 'qdot/clear-kill-ring) > #+end_src > --8<---------------cut here---------------end--------------->8--- > > However when I do "s-/" emacs replied with > > ¢~¢w¢w¢w¢w > ¢x(wrong-type-argument commandp qdot/clear-kill-ring) in > ad-Advice-call-interactively > ¢¢¢w¢w¢w¢w > > So what should I have in my function please to get it working properly? You forgot to put (interactive) in qdot/clear-kill-ring, to indicate that it's a command, not just an ordinary function. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***