From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: How to automatically write *Messages" buffer to a file? Date: 24 Nov 2004 15:06:38 +0100 Organization: [posted via Easynet Spain] Message-ID: <87sm6zl4sx.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101305464 25154 80.91.229.6 (24 Nov 2004 14:11:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2004 14:11:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 24 15:10:49 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CWxr6-0004ap-00 for ; Wed, 24 Nov 2004 15:10:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWy0F-0002g4-Jp for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Nov 2004 09:20:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!irazu.switch.ch!switch.ch!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!easynews.net!easynet-isham!195.40.4.120.MISMATCH!easynet-quince!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 22 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=U;cnYJCV>X:EDdT9RV:nI?;b`^ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22273 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22273 Brad Collins writes: > Is there is a simple way of getting Emacs to automatically append > messages in the message buffer to a file so messages work as a log file? > > I've been looking around and it seems this should be dead easy but I > can't figure it out? The best I can figure is that the simple way to do it would be to modify the C source of emacs. message is a buit-in function. I know of no way from emacs lisp to append a line to a file. If you advised the message function, you'd have to load the log file, append the lines to the buffer and save back the buffer. In addition, messages coming from the other built-in functions would not be logged... By the way, there's Hemlock (and PortableHemlock) that is an emacs-like programmed entirely in Common-Lisp. In Hemlock to add such a feature would not have to go back to C, you could do it in Common-Lisp -- __Pascal Bourguignon__ http://www.informatimago.com/ The world will now reboot; don't bother saving your artefacts.