From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.help Subject: Re: package that writes *Messages* to a file Date: Thu, 27 Oct 2005 01:15:49 GMT Organization: NTL Message-ID: <87k6fzwydy.fsf@bzg.ath.cx> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130376091 9070 80.91.229.2 (27 Oct 2005 01:21:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2005 01:21:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 27 03:21:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUwRW-00073m-Kz for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2005 03:20:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUwRW-0001Gr-0X for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Oct 2005 21:20:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!hwmnpeer01.ams!news-out.ntli.net!newsrout1-gui.ntli.net!ntli.net!newspeer1-win.ntli.net!newsfe2-gui.ntli.net.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:rVyDV8WKXDcWca4QQPFcBPAxLQg= Original-Lines: 19 Original-NNTP-Posting-Host: 81.109.110.238 Original-X-Trace: newsfe2-gui.ntli.net 1130375749 81.109.110.238 (Thu, 27 Oct 2005 02:15:49 BST) Original-NNTP-Posting-Date: Thu, 27 Oct 2005 02:15:49 BST Original-Xref: shelby.stanford.edu gnu.emacs.help:135013 Original-To: help-gnu-emacs@gnu.org 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: news.gmane.org gmane.emacs.help:30602 Archived-At: Harry Putnam writes: > Is there a package available that writes the *Messages* buffer to > file as an emacs session progresses? Maybe this? (defun my-save-messages-to-file () "Save *message* buffer to a file." (interactive) (save-window-excursion (switch-to-buffer "*Messages*") (write-file "~/emacs_messages.txt" nil))) ;; for me i won't use that, but... (run-at-time nil 600 'my-save-messages-to-file) -- Bastien