all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: How to automatically write *Messages" buffer to a file?
Date: 24 Nov 2004 15:06:38 +0100	[thread overview]
Message-ID: <87sm6zl4sx.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: mailman.1150.1101268518.27204.help-gnu-emacs@gnu.org

Brad Collins <brad@chenla.org> writes:

> Is there is a simple way of getting Emacs to automatically append
> messages in the message buffer to a file so messages work as a log file?
> 
> I've been looking around and it seems this should be dead easy but I
> can't figure it out?

The best I can figure is that the simple way to do it would be to
modify the C source of emacs.  message is a buit-in function.  I know
of no way from emacs lisp to append a line to a file.  If you advised
the message function, you'd have to load the log file, append the
lines to the buffer and save back the buffer.  In addition, messages
coming from the other built-in functions would not be logged...

<ad>By the way, there's Hemlock (and PortableHemlock) that is an
emacs-like programmed entirely in Common-Lisp.  In Hemlock to add such
a feature would not have to go back to C, you could do it in Common-Lisp</ad>

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
The world will now reboot; don't bother saving your artefacts.

       reply	other threads:[~2004-11-24 14:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1150.1101268518.27204.help-gnu-emacs@gnu.org>
2004-11-24 14:06 ` Pascal Bourguignon [this message]
2004-11-24 15:52   ` How to automatically write *Messages" buffer to a file? Eli Zaretskii
2004-11-24 19:01     ` Joe Corneli
     [not found]     ` <mailman.1295.1101323448.27204.help-gnu-emacs@gnu.org>
2004-11-24 20:16       ` Stefan Monnier
2004-11-24 20:28         ` Joe Corneli
     [not found]         ` <mailman.1305.1101328729.27204.help-gnu-emacs@gnu.org>
2004-11-24 20:55           ` Stefan Monnier
2004-11-24 21:52             ` Joe Corneli
2004-11-24 22:19             ` Drew Adams
2004-11-25  4:56             ` Joe Corneli
     [not found]             ` <mailman.1370.1101359173.27204.help-gnu-emacs@gnu.org>
2004-11-25 20:20               ` Stefan Monnier
2004-11-24 22:00           ` Thien-Thi Nguyen
2004-11-25  4:52             ` Joe Corneli
2004-12-01 19:08 ` Kevin Rodgers
2004-11-24  3:43 Brad Collins

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=87sm6zl4sx.fsf@thalassa.informatimago.com \
    --to=spam@mouse-potato.com \
    /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.