Hello list, dear Amy I don't understand it. I wrote an answer this noon, and it still hasn't arrived on the list. On Sun, Oct 07, 2007 at 08:53:53PM -0400, Amy Templeton wrote: > > (defun start-mutt (&optional bg) > "Start an ansi-term running the mutt mailreader, in a buffer called \"*Mutt*\" > Given an argument (assuming the buffer called \"*Mutt*\" doesn't already exist), > will start in the background" > (interactive "P") > (if (get-buffer "*Mutt*") > (switch-to-buffer "*Mutt*") > (let ((buf (current-buffer))) > (ansi-term "/usr/bin/mutt" "Mutt") > (if bg (switch-to-buffer buf))))) This works perfectly. Thank you very much. > - Try to go through this code and understand it, one step at a time. That's what I did today. And I was able to write some other functions according to your model. > > Anyway, I hope that's helpful. Yes, you brought me a great step further to understand lisp. I know this is quite an easy code. But, anyway, I have started to understand. Greetings, Sven