From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.devel Subject: Re: auto save for shell buffers Date: Wed, 24 Jan 2018 13:13:26 -0600 Message-ID: <6BE0267D-3411-48DC-A0AD-1C06D648EFED@icloud.com> References: <9AEC0F8C-556D-48F3-9097-6AA16D0C55D7@icloud.com> <87a7x3sm80.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1516821114 18753 195.159.176.226 (24 Jan 2018 19:11:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 Jan 2018 19:11:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 24 20:11:49 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeQSW-0004I2-O2 for ged-emacs-devel@m.gmane.org; Wed, 24 Jan 2018 20:11:44 +0100 Original-Received: from localhost ([::1]:39618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeQUX-0001It-6Q for ged-emacs-devel@m.gmane.org; Wed, 24 Jan 2018 14:13:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeQUO-0001Hx-DP for emacs-devel@gnu.org; Wed, 24 Jan 2018 14:13:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeQUK-00016B-6A for emacs-devel@gnu.org; Wed, 24 Jan 2018 14:13:40 -0500 Original-Received: from st42p59im-ztdg12250501.me.com ([17.36.65.27]:41384) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eeQUK-00015c-0E for emacs-devel@gnu.org; Wed, 24 Jan 2018 14:13:36 -0500 Original-Received: from process-dkim-sign-daemon.st42p59im-ztdg12250501.me.com by st42p59im-ztdg12250501.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0P3200F00QPLGL00@st42p59im-ztdg12250501.me.com> for emacs-devel@gnu.org; Wed, 24 Jan 2018 19:13:29 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=04042017; t=1516821209; bh=iIgnL3XsFzWH3CU2GVBeUz4t+Hd71Owgs6lOB1yVAyo=; h=Content-type:MIME-version:Subject:From:Date:Message-id:To; b=GRsTVndfOQA5IKuQF4MJ74EMFpPDmW3to8qthx3Mrlp04z+dGGX1J+Bo2y/fXf4L9 ft3WdQiuzJ1w+9biubQb8Yww61N/v5cjwjVEC8pfWbrjnht8qXgzavsnFrVSdCmvKa G80QXgITv6pu1c64L/hB2AZpBDy8XJpy1Nw+B8Hp3MJFr66py/lkZS196WAMXfuSV/ wBU6nvpXtRvEzKK4twCaQyfARsAgbXN41QRUTNR1wH1+z1SnqyQsluDPOVRutifrOs oGat5gdqha5xYK6OcH6IOx2S/SLR6NrOHn1HnmDpUv4TZyGEDm5Kw4SmVOrbpCQ0vi +YgDXoRm3F4Fw== Original-Received: from icloud.com ([127.0.0.1]) by st42p59im-ztdg12250501.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) with ESMTPSA id <0P3200DBOQQFWK20@st42p59im-ztdg12250501.me.com>; Wed, 24 Jan 2018 19:13:29 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-24_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1031 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1801240254 In-reply-to: X-Mailer: Apple Mail (2.3445.5.20) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 17.36.65.27 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222201 Archived-At: > On Jan 24, 2018, at 3:19 AM, Andreas Schwab wrote: >=20 > On Jan 24 2018, Robert Pluim wrote: >=20 >> Perry Smith writes: >>=20 >>> How can I set things up so the buffer being used to run an inferior = shell will be autosaved periodically to a file? >>>=20 >>> The file to save in could be named "shell-2018-01-22". >>>=20 >>> I thought this would be trivial but it seems the autosave concept is >>> deeply tied into the visiting file concepts which of course, doesn't >>> apply for the buffer being used by the inferior shell. >>>=20 >>=20 >> I'm not sure why you think that. You can save the shell buffer to a >> file, and it will be autosaved. Note that the shell buffer doesn't >> have to be called "*shell*" >=20 > Also, auto-save handles non-file buffers as well. So, based upon Robert=E2=80=99s input, I did a write buffer to a file = and it is now auto saving the buffer. But Andreas=E2=80=99 reply had me even more curious. So I started = another shell and just did =E2=80=9Cauto-save-mode=E2=80=9D which turned = on auto-save mode (dahhh) and now there is a file called = #%2Ashell%2A#38994078EmN# in that directory. YIPPIE!!! Perry