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: Sat, 10 Sep 2022 19:08:44 -0700 Message-ID: References: <87bkrrp0r2.fsf@posteo.net> <83illzgi16.fsf@gnu.org> <87a677n8dw.fsf@gmx.net> 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="12586"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , help-gnu-emacs@gnu.org To: James Thomas Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 11 04:09:21 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 1oXCPR-00034M-3A for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 04:09:21 +0200 Original-Received: from localhost ([::1]:54654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXCPP-0001kC-Kf for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 10 Sep 2022 22:09:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXCOw-0001k3-V5 for help-gnu-emacs@gnu.org; Sat, 10 Sep 2022 22:08:50 -0400 Original-Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:45859) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXCOv-0006XG-5d; Sat, 10 Sep 2022 22:08:50 -0400 Original-Received: by mail-lj1-x22e.google.com with SMTP id y18so6630886ljh.12; Sat, 10 Sep 2022 19:08:48 -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=OnkvY7IhFRZoPIdWKSFaccSkpPiRt0treh+kNpxqmYA=; b=C4l7vUzWzrSX+OvL7kg0zb+cqE+i+FnOzfwcoBlN8x63LnrxdOj025K9n3ie2ufANu mAAa/bkYXOLiY+IeCmAHgHH63lIOluXtfsVIJDN9rj3gk4sxP04VUWggClcdQNrl+N4T vorAnfjS5ArbSVaBDFPVCQBI3dKJRMg+KYsejphAPdHhQLJNjrNdkkIRvsQO3ZI6GjRb 7kSBcKzhlaYZJNGprv9ovwh+g/8PGeiA6p6yxi5HYG0VoxfuGGUa4qlK6sMIF3b0g2Xa d04VFT1djeXdHBFSK0insmB2ZV82rBKx7vPzsZMgzc+oBnmv/GDHa85JBM9k4dRKeVHs CeGg== 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=OnkvY7IhFRZoPIdWKSFaccSkpPiRt0treh+kNpxqmYA=; b=WeluKSl1KrCZRbjniGOmid9poGhkoAn5NjVHi7rOMoz4lAniNjf6SMkgjOdue4Tufm 81wkwZG7goNzjIllvEsOA7hz9khbAw84mnmUeFBur67rL8RN0E28bSxTPqKzOkdxIpcd oVdTgB/CfVcHmdAn+RmN8xTE/eNqKiU1bQItw1BHNV8sHOBcSCiecdBEdoFl+PbNirXC eEFt9k0KJJg9AweqLKhk4VDHMH+n8Tvj4gXNao8p2oVA4WX7ieABFnl12HCNZtCoG6bc mK32i+BSy4GSH3pSY7VD/F0tYYhnvc9fz9n/sFq9e9Jv1Kxt3CLosjM5A4qYel2m3UG0 HJEQ== X-Gm-Message-State: ACgBeo0Jj4T1SDM2/hl160zjYUe7wbWbvwiYgqDz5fkOyUIZRN34Aiia XMtlgHJ9jhyej05SX0NRtv7VhVg7rGoP3IS0ALQ= X-Google-Smtp-Source: AA6agR7dxVjSOFct1BhVXl+L4EcVZjQGplB6iV0yMuUpSoi+vTmOqV/x6MGqwgqxd9Oil2e8TKD5jA95O96I56Lxw/E= X-Received: by 2002:a05:651c:205:b0:26b:cba8:65e8 with SMTP id y5-20020a05651c020500b0026bcba865e8mr4697145ljn.208.1662862126490; Sat, 10 Sep 2022 19:08:46 -0700 (PDT) Original-Received: by 2002:aa6:c2eb:0:b0:21e:73da:40af with HTTP; Sat, 10 Sep 2022 19:08:44 -0700 (PDT) In-Reply-To: <87a677n8dw.fsf@gmx.net> Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=samologist@gmail.com; helo=mail-lj1-x22e.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:139353 Archived-At: comint scrolls off top. would auto save mode take that into account? idk about shell-mode-hook, but i was thinking comint-preoutput-filter-functions would maybe allow saving each set of output [idk if per chunk of output or per prompt pair], but this definitely seems like a feature only i need. :/ On 9/9/22, James Thomas wrote: > Samuel Wales wrote: > >> 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. > > You can enable auto-save-mode in the shell buffer. Make sure to read the > manual about the options to control its application. > >> 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. > > Once you use write-file, from then on, auto-save-mode is enabled in it > by default. > >> iow a complete history o the shell sessions in my shell buffers, saved >> continuously or continually to files efficiently. > > You can probably use shell-mode-hook to do one of the above in all such > buffers. > > -- > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com