help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving the Messages buffer


From: Kevin Rodgers
Subject: Re: Saving the Messages buffer
Date: Wed, 22 Jan 2014 01:32:28 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20

On 1/21/14 3:58 PM, Emanuel Berg wrote:
Aha, so `auto-save-mode' says that auto-save should
apply to the current buffer. So that doesn't make sense
in my previous post, but the hook should still work, as
long as there are buffers "under the influence" all
round, which is likely.

But, using that to solve the problem of the OP, if the
message buffer could be associated with a file, and
then itself subjected to auto-save-mode, that would be
even better. Try:

(let ((buffer "*Messages*"))
   (with-current-buffer buffer
     (set-visited-file-name buffer t) ; no confirmation
     (auto-save-mode) ))

The first arg to set-visited-file-name is FILENAME, not BUFFER.

--
Kevin Rodgers
Denver, Colorado, USA




reply via email to

[Prev in Thread] Current Thread [Next in Thread]