From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.help Subject: Re: can shell mode keep a log? Date: Wed, 7 Sep 2022 17:40:03 -0700 Message-ID: References: <87bkrrp0r2.fsf@posteo.net> <83illzgi16.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38019"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 08 02:41:04 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 1oW5bM-0009h0-A3 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 02:41:04 +0200 Original-Received: from localhost ([::1]:51934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oW5bK-0005dr-6k for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 20:41:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oW5aV-0005dh-Oz for help-gnu-emacs@gnu.org; Wed, 07 Sep 2022 20:40:11 -0400 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:33395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oW5aR-0001mA-T1; Wed, 07 Sep 2022 20:40:11 -0400 Original-Received: by mail-lj1-x235.google.com with SMTP id v6so4581724ljj.0; Wed, 07 Sep 2022 17:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date; bh=ofKBbAgXqg18TweY+TmYYY5fj7JgYw2wKl8MNoWPE60=; b=o/B35G8Wuoc1CyTsi59qWRhOODVpuTmcGmvWzd1000Ju6oktFhKQK+h7hxqRmJlm7K J/JN/X03uf6if2lx+9D0+4rWt5mC5F224IH1WXt3EGQ2786znuMVeDxynfCNalO3J351 iZlV9IwUzBf779oUgc/1VZLrYEKTeHDcqKHM+u+Jo8U7ixJvMxS09roRvnKJYsud1/vS GvGHJm3XkB5x0++Q7yLMACp6Ok8SioYMgNIt4oyKOFcioe05tOegAsaGDOH5IScqxjRF gKd1f9hxzxsToek7jODcPS9Jf5p+aGNwpjWiADHSgqZJPzpQcelw08JVSOB/9RFPVmM5 /nKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=ofKBbAgXqg18TweY+TmYYY5fj7JgYw2wKl8MNoWPE60=; b=z46b24bseiT7JOPGfT5yoWYx58D25UIMslAZLOgUzpZqknCFO+5pB3HzClk6JPzSM1 UNq5uP1gXZxf51etSVGJrL9goVkW3Dk5eEpkelNRd+9QwdRUT3mtsIx39xTM+AliQqy0 VRP6UFEtXH6DdaWegR7PqFphP6/vQaee1rGldw6Y05NizvuLBJo5Xhn2WdWbYjPD09KS Ifr1LlEjr9HDJtHubgSEsdTGLINiJjJP1LO5vsjMJEMML0LCBIxQaJZi+x/WhwQV+BMI fFQOfukNnF0W6a5DR0XNE9U/WYMq3CrowOOgG4a5f+mnp1lYtfHUVLje7YJx1Y7pwFdf yFRw== X-Gm-Message-State: ACgBeo0Cr6kk9crBab/7hdF1jTvXZjp3Jxchn6HoDH/W5YiLn2BXNsGm d2HvjDsMXUoLbSVHo6VoqsUGkxpz+Pm5gUpyRhYECtTWBV0TJw== X-Google-Smtp-Source: AA6agR7BXNBC1lvX54yZuL5038m0p8Mm9tVpYaEJCA+gEn39cD6xbTKRuBM7H5vUVrCfHUOg5akb3pIjyX6zM3DVsiA= X-Received: by 2002:a05:651c:ba0:b0:26a:aefd:e81d with SMTP id bg32-20020a05651c0ba000b0026aaefde81dmr1811238ljb.75.1662597604377; Wed, 07 Sep 2022 17:40:04 -0700 (PDT) Original-Received: by 2002:a05:6520:709:b0:215:af4a:870d with HTTP; Wed, 7 Sep 2022 17:40:03 -0700 (PDT) In-Reply-To: <83illzgi16.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=samologist@gmail.com; helo=mail-lj1-x235.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:139314 Archived-At: thank you all for your replies. here are why i think those soliutions will not work. i need ti to be automatic, for the entire shell session, for all comand including prompts, sort of like typescrpt ut that would likely have issues i am unware of such as commands outputtig to termianl or osehting. iow a complete history o the shell sessions in my shell buffers, saved continuously or continually to files efficiently. it is not for a ingle command. i would indeed use tee for such things. soign write-file is good for manual saves and i should remember it morel although i think that changes the visited filename or so. but it is not the automatic solution i am looking or. i want a log of the session. thank youl. On 9/7/22, Eli Zaretskii wrote: >> 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. > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com