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: crash-proof emacs use Date: Sun, 11 Sep 2022 19:13:32 -0700 Message-ID: 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="26139"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 12 04:14:11 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 1oXYxf-0006cq-6E for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Sep 2022 04:14:11 +0200 Original-Received: from localhost ([::1]:55942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXYxd-0004hB-PN for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Sep 2022 22:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXYx8-0004h2-NJ for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 22:13:38 -0400 Original-Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:40655) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXYx6-0000ED-TC for help-gnu-emacs@gnu.org; Sun, 11 Sep 2022 22:13:38 -0400 Original-Received: by mail-lj1-x22d.google.com with SMTP id y29so8921999ljq.7 for ; Sun, 11 Sep 2022 19:13:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=PvqGOpt2Xq1RXuA6DIHohMjAskXjkvIqHnx7LmNEIM0=; b=TMcd7yoFW9Dd5Ln8uASk0vL6MXklh9vA3bgBzzQf/rnY+0m9S3Cj/ymsw/lji7WPwU H2FYU7Nk4xTLkUGFNIy41/IliiG/pu3Q9HwRE7dzpSX3liLBxv8y9dQrdGuLGYZPr4FE PAAX0O7acA2wMz4jyH4CqGEznqb2vtNG1gjA5WhJ73Ukx4hbGpQ97FBg6TrcETyxPmYo 6RSJQhSU1+i4SaJZEY5rYzKg+SPK4UL8hpv2TZIqynn8LJsLz4HVy+a1RcL0/kPIBMus SWLpKDzSr+ypKrXBg0t6pqB4a8YV2ztaSaJzWihaCS9c/mTiXyVsS92o5PCRVri3Nf57 7V9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=PvqGOpt2Xq1RXuA6DIHohMjAskXjkvIqHnx7LmNEIM0=; b=m1a+Waiczd/NBL/nFm7wcFyptaC8ictkQmEhDiqaN6PFsLE8jK/OtX3ssPabOlH8ep qX8FCV5gsM0+/zZlUc8wFWjOUpx9KyPeQjr+ujE7t2ibU1TTRD15rAP2qtGaw4Xmb3HJ t4XcAl6lLBrQCXLYD/VNqZNiDW0/2lqp5eaaQu6NcR0RdcvQft+hJaQxnBZHFF5AuAhG zag2dHuZt+D95SZU9N85hZXnxqTUhVF9s493UsAsS7719+/SYzOXavWQe8vod5HMjxKE 5xeglU48xrdC94v/Bsh1s/xY3ycNGeByKe3m0ht2r6HacRmtkPSMsDlpUUfGEG2yB1An AoJQ== X-Gm-Message-State: ACgBeo0XYmIG9Rik+6QLGDyznL4CqIdBTw6w+XrPPcyWmm4L5/aOIV65 tQF1UWCr3RjtXVsPxmfxchPnUu7YE/Jf2h9KTkzdsOzcK6UYzg== X-Google-Smtp-Source: AA6agR4fg24br/DvbDp+hbNTpKYGuNxcG/gOcVvD3RD53n9iux340YMiqhEjU4YuiX1hSR77iqalfhhIVbQRHsSkprs= X-Received: by 2002:a05:651c:a08:b0:26c:d2d:f240 with SMTP id k8-20020a05651c0a0800b0026c0d2df240mr294414ljq.361.1662948813541; Sun, 11 Sep 2022 19:13:33 -0700 (PDT) Original-Received: by 2002:aa6:c2eb:0:b0:21e:73da:40af with HTTP; Sun, 11 Sep 2022 19:13:32 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=samologist@gmail.com; helo=mail-lj1-x22d.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:139390 Archived-At: suppose you want to move something from one place to another. in org, you can often use org-refile. that is more or less an atomic operation. but suppose that for whatever reason you cannot do that, so you use traditional emacs. which is to say you kill and then yank. this is not stateless. if you have short-term memory issues [a big one] or computer issues or get interrupted or whatever, there are possible failure states where you lose data. this can be detected with git, rsnapshot, zfs, auto-save files, backup files, diff, and the like, but i was thinking, i wonder if anybody has thought about this problem, especially the stm part, and implemented some kind of crash-proof moving. this is open-ended, but would mean something like, you kill some text with a "about to move" command so that killing is not conflated with moving, and it gets marked as "move operation started". then you go to the location to yank to, and you [if your stm is operating ok] yank in the new place with a message that this is supposed to be crash-proof. as part of that yanking, the old text gets deleted. this is just a silly example. there are many flaws in that design, but it is an examlpe of something i was wondering if anybody has thought about. it is an issue i deal with frequently. detecting after the fact is ok but there are edge cases where it is insufficient. so it is an open-ended q about whether anybody has implemented crash-proof moving, or follows some kind of discipline /all the time/, or some kind of non-theoretical sw for this, and it doesn't require detecting after the fact. idk if this will lead to anything but perhaps there is something out there that works really well for those who have stm issues. -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com