From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kevin Layer Newsgroups: gmane.emacs.devel Subject: Re: comint shell buffers autosaved to a file? Date: Tue, 27 Mar 2018 16:39:32 -0700 Message-ID: References: <87k1tx9ko8.fsf@linux-m68k.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045c55ec06753705686d6701" X-Trace: blaine.gmane.org 1522193859 3460 195.159.176.226 (27 Mar 2018 23:37:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2018 23:37:39 +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 Mar 28 01:37:35 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 1f0y9m-0000pM-Pm for ged-emacs-devel@m.gmane.org; Wed, 28 Mar 2018 01:37:35 +0200 Original-Received: from localhost ([::1]:36555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0yBq-0001aw-6r for ged-emacs-devel@m.gmane.org; Tue, 27 Mar 2018 19:39:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0yBj-0001aV-29 for Emacs-devel@gnu.org; Tue, 27 Mar 2018 19:39:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0yBi-0003hs-5N for Emacs-devel@gnu.org; Tue, 27 Mar 2018 19:39:35 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:55067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0yBh-0003hX-VW for Emacs-devel@gnu.org; Tue, 27 Mar 2018 19:39:34 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id h76so1650927wme.4 for ; Tue, 27 Mar 2018 16:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=known.net; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HOJ6KJy0I4tImS5+L4rdODPtyEWlMifM3rb/608W0GA=; b=YxPWSBArs1ce7e2m/sU9M8ia4c8hfb0uFQtscxg2JC2AW91svx9iaQQzFV2QJf3iNm mLq/zG6QzUF5KtMsQ/ixkEI4ZG/qo3eYLi7JCPR3tkU1AGNb9vyc4OoSk8m++d9RdDa8 l9+29RKNLNq9o1J+kxmO3yEaU40BkxBuT5o88= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HOJ6KJy0I4tImS5+L4rdODPtyEWlMifM3rb/608W0GA=; b=EbmTY9f/BvW2RoMVVJHsrgCLCh2skpTOLHEHv+AyWhfFGoCK7ylAplHMc5DBHreupQ meEScKO9gTECTQHZEoeTz/PJGbgnzUGQlkSOP0xnnXRZGratTF8cmXgS2RP0ymsIs7en /czv9XeBnWFIjtEZahj9eSKvlJ8FaqHbi+EpSkr9HS0YmqiIyzaPLkG5x8szPk44+y27 vmm+flEjz1D5bEI/4zJBXVSQZdZTp+AmQVj4h2lh0MKH5C/95n2wZj0/XTgStzS01qDH CoefnMt38Y8x2grnPwW23gs1EU50OpXaICLTV2zutNa5Z/EBblUiZ1l0j8vXvy7rT8X3 V2jQ== X-Gm-Message-State: AElRT7GhW1ykTAfe4qZU+4zWXzOznQ8yPBqBpbkojGgwU9U848W0oOJa U0A5PQ+Kwcma31tvOnoZqcLOwNbzkJvHBGJiHhlVHg== X-Google-Smtp-Source: AIpwx4+gtV1CugWlwp+MUjLDcxAsR1uAxYRHcMlli6rJRvVwIVOGx8VDMbqjNIKeSaiYp06bC6n2FnQV5B7hgJp7cJg= X-Received: by 10.80.144.195 with SMTP id d3mr1068729eda.54.1522193972746; Tue, 27 Mar 2018 16:39:32 -0700 (PDT) Original-Received: by 10.80.173.137 with HTTP; Tue, 27 Mar 2018 16:39:32 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::233 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:224117 Archived-At: --f403045c55ec06753705686d6701 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I see this buffer local variable: (buffer-auto-save-file-name . "/net/freon/home/layer/src/emacs/#%2Ashell%2A#8376MSi#") but I generated a lot of output in the buffer and that file doesn't exist. I'm thinking of using comint-output-filter-functions to implement this directly, so the command output is saved when it is received by emacs. On Tue, Mar 27, 2018 at 4:36 PM, Kevin Layer wrote: > There's no file associated with a shell buffer, so where does it auto-sav= e > to? > > On Tue, Mar 27, 2018 at 4:13 PM, Andreas Schwab > wrote: > >> On M=C3=A4r 27 2018, Kevin Layer wrote: >> >> > Any ideas on this? I'm willing to do some work to add it, if it's not >> too >> > hard. >> >> Just enable auto-save-mode. >> >> Andreas. >> >> -- >> Andreas Schwab, schwab@linux-m68k.org >> GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4E= D5 >> "And now for something completely different." >> > > --f403045c55ec06753705686d6701 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I see this buffer local variable:

=C2= =A0 =C2=A0(buffer-auto-save-file-name . "/net/freon/home/layer/src/ema= cs/#%2Ashell%2A#8376MSi#")

but I generate= d a lot of output in the buffer and that file doesn't exist.
=
I'm thinking of using=C2=A0comint-output-filter-function= s to implement this directly, so the command output is saved when it is rec= eived by emacs.

On Tue, Mar 27, 2018 at 4:36 PM, Kevin Layer &l= t;layer@known.net&= gt; wrote:
There&= #39;s no file associated with a shell buffer, so where does it auto-save to= ?
<= br>
On Tue, Mar 27, 2018 at 4:13 PM, Andreas Schw= ab <schwab@linux-m68k.org> wrote:
On M=C3=A4r 27 2018, Kevin Layer <layer@known.net> wrote:

> Any ideas on this?=C2=A0 I'm willing to do some work to add it, if= it's not too
> hard.

Just enable auto-save-mode.

Andreas.

--
Andreas Schwab, = schwab@linux-m68k.org
GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756=C2=A0 01D3 44D5 214B 8276 = 4ED5
"And now for something completely different."


--f403045c55ec06753705686d6701--