Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!acevedo From: acevedo@athena.mit.edu (Gabriel) Newsgroups: comp.emacs Subject: Re: info needed on "message" function Message-ID: Date: 1 May 91 16:53:53 GMT References: <71902@eerie.acsu.Buffalo.EDU> Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 23 In-Reply-To: triantos@acsu.buffalo.edu's message of 19 Apr 91 17:42:42 GMT Hello. I am trying to make a new function to replace "message", which will put the message on the bottom line, but also append it to a *message* buffer if a variable is set. Maybe there's already someone else who's done that, but I'd like to try to do it myself. My problem: I can't find where the defun or defmacro for message is. Any suggestions? `message' is written in C, not elisp. You have to bind a variable to the (symbol-function 'message), then re-defun message to do what you want with the *message* buffer, and then `funcall' the variable which has the original (symbol-function 'message). I have code that does something similar; instead of putting it in a buffer, it puts in a list. If you want a copy of it, send me mail. -- Raul Acevedo acevedo@athena.mit.edu "Remember, Information is not knowledge; Knowledge is not Wisdom; Wisdom is not truth; Truth is not beauty; Beauty is not love; Love is not music; Music is the best." - Frank Zappa