From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Saving the Messages buffer
Date: Wed, 22 Jan 2014 01:32:28 -0700 [thread overview]
Message-ID: <lbnvl9$teu$1@ger.gmane.org> (raw)
In-Reply-To: <87sish54c7.fsf@nl106-137-194.student.uu.se>
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
next prev parent reply other threads:[~2014-01-22 8:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.12519.1390326264.10748.help-gnu-emacs@gnu.org>
2014-01-21 22:18 ` Saving the Messages buffer Emanuel Berg
2014-01-21 22:58 ` Emanuel Berg
2014-01-22 8:32 ` Kevin Rodgers [this message]
[not found] ` <mailman.12551.1390379541.10748.help-gnu-emacs@gnu.org>
2014-01-22 17:30 ` Emanuel Berg
2014-01-22 18:35 ` Emanuel Berg
2014-01-21 17:43 Sivaram Neelakantan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='lbnvl9$teu$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.