From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Saving the Messages buffer
Date: Tue, 21 Jan 2014 23:18:55 +0100 [thread overview]
Message-ID: <87iotdvuzb.fsf@nl106-137-194.student.uu.se> (raw)
In-Reply-To: mailman.12519.1390326264.10748.help-gnu-emacs@gnu.org
Sivaram Neelakantan <nsivaram.net@gmail.com> writes:
> Is there an option to simply save the messages buffer
> after certain number of lines/chars? I'm running
> into some strange issues when ntemacs kicks off
> openssl in cygwin and I'd like to save the messages
> buffer to debug the issue.
>
> Simply saving the buffer to the same named file with
> overwrite option?
One way to do it would be to use the auto-save which
Emacs already uses.
;; These are my values (which are probably default) but
;; even if you already have them, and the mode enabled,
;; it might be interesting to see - use `C-x e' with
;; point to the right of the symbol's names to echo
;; their values. (Otherwise just setup as you please.)
(auto-save-mode) ; enable auto-save
(setq auto-save-interval 300) ; auto-save every 300 keydowns
(setq auto-save-timeout 30) ; or after 30 seconds of idle
;; whenever so, save the messages buffer
(add-hook 'auto-save-hook
(lambda ()
(with-current-buffer "*Messages*"
(write-file "~/emacs_messages" nil) ))) ; nil: no confirm
--
underground experts united:
http://user.it.uu.se/~embe8573
next parent reply other threads:[~2014-01-21 22:18 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 ` Emanuel Berg [this message]
2014-01-21 22:58 ` Saving the Messages buffer Emanuel Berg
2014-01-22 8:32 ` Kevin Rodgers
[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=87iotdvuzb.fsf@nl106-137-194.student.uu.se \
--to=embe8573@student.uu.se \
--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.