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: auto save for shell buffers Date: Tue, 23 Jan 2018 13:01:36 -0600 Message-ID: <9AEC0F8C-556D-48F3-9097-6AA16D0C55D7@icloud.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_50619767-82E9-48B7-8493-A0E7B0ED3966" X-Trace: blaine.gmane.org 1516734038 6475 195.159.176.226 (23 Jan 2018 19:00:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 23 Jan 2018 19:00:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 23 20:00:34 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 1ee3o2-0000tD-Ol for ged-emacs-devel@m.gmane.org; Tue, 23 Jan 2018 20:00:26 +0100 Original-Received: from localhost ([::1]:46631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ee3q1-00064B-8w for ged-emacs-devel@m.gmane.org; Tue, 23 Jan 2018 14:02:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ee3pP-00063X-1F for emacs-devel@gnu.org; Tue, 23 Jan 2018 14:01:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ee3pJ-0007lA-FU for emacs-devel@gnu.org; Tue, 23 Jan 2018 14:01:51 -0500 Original-Received: from st42p59im-ztdg12250501.me.com ([17.36.65.27]:25427) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ee3pJ-0007hL-AN for emacs-devel@gnu.org; Tue, 23 Jan 2018 14:01:45 -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 <0P3000700VFVFV00@st42p59im-ztdg12250501.me.com> for emacs-devel@gnu.org; Tue, 23 Jan 2018 19:01:38 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=04042017; t=1516734098; bh=JamX5YPf/a1523AGMbTNsdxEmYk7LClJSOGN6FrQwsM=; h=From:Content-type:MIME-version:Subject:Message-id:Date:To; b=aDXWYYpy2WR1eRQnjbhP04eLGkrAHng/mSGYe8wck7xfdp9bFmwzXJsClbf0I1Mbm Es8zofgbI6jQ1dHoxr3X5So4VSnXKwiFgpVGszyl7oqPqXACQEOkebGz0VtDMx07o2 tCU6AgUslqE7fyBXgGVbpNkw8Zag1biNNbbz1L94+XDmyVza2LZ1n3/yXbWHw3xQOh Ck3XsUVuKJGQfScgCDq0RDoWwORVSfSPC1nQWmcSBkgogj7wxhY4sV19xyqF0nygsE nQc2I/ORb3l+6eaGTM+mq7ZyxbIdX/Dp5TeJDio67UQN8X9ZQDkE3uM7ADGlUZkaHT pa7xfjWseMihg== 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 <0P3000AONVIOEG50@st42p59im-ztdg12250501.me.com> for emacs-devel@gnu.org; Tue, 23 Jan 2018 19:01:38 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-23_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1031 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1801230260 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:222173 Archived-At: --Apple-Mail=_50619767-82E9-48B7-8493-A0E7B0ED3966 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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. The reason is because twice this past month my emacs had died. Usually = its not a big deal but in these last two cases, it was frustrating = enough to prompt me into trying to figure out a solution. Thank you in advance Perry --Apple-Mail=_50619767-82E9-48B7-8493-A0E7B0ED3966 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii

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.

The reason is because twice this past month my emacs had died. Usually its not a big deal but in these last two cases, it was frustrating enough to prompt me into trying to figure out a solution.

Thank you in advance
Perry


--Apple-Mail=_50619767-82E9-48B7-8493-A0E7B0ED3966--