From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: auto save for shell buffers Date: Wed, 24 Jan 2018 10:19:52 +0100 Message-ID: References: <9AEC0F8C-556D-48F3-9097-6AA16D0C55D7@icloud.com> <87a7x3sm80.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1516785536 32169 195.159.176.226 (24 Jan 2018 09:18:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 Jan 2018 09:18:56 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 24 10:18:52 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 1eeHCZ-0007NE-3c for ged-emacs-devel@m.gmane.org; Wed, 24 Jan 2018 10:18:39 +0100 Original-Received: from localhost ([::1]:36374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeHEZ-00052x-E7 for ged-emacs-devel@m.gmane.org; Wed, 24 Jan 2018 04:20:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeHDr-00050O-Bm for emacs-devel@gnu.org; Wed, 24 Jan 2018 04:20:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeHDn-0002ij-6o for emacs-devel@gnu.org; Wed, 24 Jan 2018 04:19:59 -0500 Original-Received: from mx2.suse.de ([195.135.220.15]:54166) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eeHDm-0002eC-Vp for emacs-devel@gnu.org; Wed, 24 Jan 2018 04:19:55 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4D775ACC6 for ; Wed, 24 Jan 2018 09:19:52 +0000 (UTC) X-Yow: I've gotta GO, now!! I wanta tell you you're a GREAT bunch of guys but you ought to CHANGE your UNDERWEAR more often!! In-Reply-To: <87a7x3sm80.fsf@gmail.com> (Robert Pluim's message of "Wed, 24 Jan 2018 09:19:11 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 195.135.220.15 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:222182 Archived-At: On Jan 24 2018, Robert Pluim wrote: > Perry Smith writes: > >> How can I set things up so the buffer being used to run an inferior shell will be autosaved periodically to a file? >> >> The file to save in could be named "shell-2018-01-22". >> >> 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. >> > > 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*" Also, auto-save handles non-file buffers as well. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."