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: Emanuel Berg
Subject: Re: Saving the Messages buffer
Date: Tue, 21 Jan 2014 23:58:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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) ))

-- 
underground experts united:
http://user.it.uu.se/~embe8573


reply via email to

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