From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: can shell mode keep a log? Date: Wed, 07 Sep 2022 21:23:49 +0300 Message-ID: <83illzgi16.fsf@gnu.org> References: <87bkrrp0r2.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33871"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 07 20:24:46 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVzjB-0008cX-No for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 20:24:45 +0200 Original-Received: from localhost ([::1]:37112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVzjA-0001Mr-Lc for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 14:24:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVziX-0001Mf-8r for help-gnu-emacs@gnu.org; Wed, 07 Sep 2022 14:24:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVziX-0003k4-0A for help-gnu-emacs@gnu.org; Wed, 07 Sep 2022 14:24:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=D1EklmFFDs57jdDB7EMhsDn+QrvL6S5BSRos5VTwgGc=; b=HNdVEbQtbUh7 og+RcExon/hlsoBWMceH1HTuuQmzovMHyEYBgaRyYt0UYfHgJwpgdtu66P+iLPXZDJIMO1NnYV4YP YvWnKwyxDyOBYgsfd1g8esXe6WudbpiSMJ7DQbtEnxy5Si90eDnykfe3ixzr76H5hAM705MBSzU6v s/1ocWrgxj3sLjcY3XRlN9NMsrxBQgLi6bwYJjhU6qkyaGuY/W9dvPTM6i0fruqfbJjiSh2aIB2UY XsEqtFxWnl15Ym06TsDq7cXokCV6z3+Qn3mpbs2ai3mJCyVQ0mZ1aHJUvdfM4xieIo2xjiSlXS7O2 3NAB4iTdMvfhy5XSBWPGxg==; Original-Received: from [87.69.77.57] (port=1289 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVziW-00032Z-7q for help-gnu-emacs@gnu.org; Wed, 07 Sep 2022 14:24:04 -0400 In-Reply-To: <87bkrrp0r2.fsf@posteo.net> (message from Philip Kaludercic on Wed, 07 Sep 2022 17:12:17 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139311 Archived-At: > From: Philip Kaludercic > Cc: help-gnu-emacs@gnu.org > Date: Wed, 07 Sep 2022 17:12:17 +0000 > > Samuel Wales writes: > > > is it possible and reasonable to log everything in every shell buffer > > to a file? i can imagine lots of output, but i could have the logs go > > into an auto-expired dir. but would performance ok? > > Does it have to be automatic? If not, you can always just write out the > contents of a buffer using M-x write-file. A slightly more "automatic" alternative is to save the buffer using the facilities in midnight.el or something similar.