From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: How to automatically write *Messages" buffer to a file? Date: Wed, 24 Nov 2004 17:52:34 +0200 Message-ID: <01c4d23d$Blat.v2.2.2$c2b81b20@zahav.net.il> References: <87sm6zl4sx.fsf@thalassa.informatimago.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1101313240 17638 80.91.229.6 (24 Nov 2004 16:20:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2004 16:20:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 24 17:20:25 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 1CWzVL-0006NZ-00 for ; Wed, 24 Nov 2004 16:56:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWzeU-0007nS-AZ for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Nov 2004 11:05:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CWzeL-0007nI-OQ for help-gnu-emacs@gnu.org; Wed, 24 Nov 2004 11:05:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CWzeK-0007mk-Q0 for help-gnu-emacs@gnu.org; Wed, 24 Nov 2004 11:05:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWzeK-0007ma-Kp for help-gnu-emacs@gnu.org; Wed, 24 Nov 2004 11:05:44 -0500 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CWzUr-0002Xc-I0 for help-gnu-emacs@gnu.org; Wed, 24 Nov 2004 10:55:57 -0500 Original-Received: from zaretski ([80.230.156.45]) by legolas.inter.net.il (MOS 3.5.5-GR) with ESMTP id DEN34211 (AUTH halo1); Wed, 24 Nov 2004 17:55:22 +0200 (IST) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: <87sm6zl4sx.fsf@thalassa.informatimago.com> (message from Pascal Bourguignon on 24 Nov 2004 15:06:38 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:22279 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22279 > From: Pascal Bourguignon > Date: 24 Nov 2004 15:06:38 +0100 > > 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. How about an after-change function that'd do this only for the *Messages* buffer? > I know of no way from emacs lisp to append a line to a file. ??? What's wrong with append-to-file?