From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Panagiotis Koutsourakis Newsgroups: gmane.emacs.help Subject: Re: disappearing lines Date: Tue, 17 Jan 2023 10:20:54 +0200 Message-ID: <87k01lo9ll.fsf@panoramix.zarniwoop.org> References: <87a62iaa7t.fsf@a16n.net> <86pmbe1kpt.fsf@gnu.org> <878ri26ztj.fsf@a16n.net> <871qnukz1n.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39175"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 17 09:21:39 2023 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 1pHhDs-0009vA-O9 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 17 Jan 2023 09:21:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHhDK-0003R5-FG; Tue, 17 Jan 2023 03:21:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHhDJ-0003Qw-JP for help-gnu-emacs@gnu.org; Tue, 17 Jan 2023 03:21:01 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHhDH-0002t1-BM for help-gnu-emacs@gnu.org; Tue, 17 Jan 2023 03:21:01 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 656A45C00E0 for ; Tue, 17 Jan 2023 03:20:58 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 17 Jan 2023 03:20:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= slartibartfast.net; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm1; t=1673943658; x=1674030058; bh=GGgnEfa5yYSZwuoNBxjIPA8b7 qcMDsu70X1GTUgR0Bg=; b=ZfqlB5hJfQNfVldLh0BEbvGvqaDWKMmH6DD2Ph5Hs JepoErmUXaGongsy6D0rTUVRMrvkbLCGZdcTkrTQ58YElGulg3gVDom29Rt2ikaK CGHFs/Sn1vvYUaIuA79qMSG+6GB0dBI98MUnn30Ba5qeZ/x83Tdxehjw8vOPQiXq /8Gkuk2VTmu1crsKky7QQpYzMShBn1p+xIrCTKBNOAPOKqXJUS9HZStaQWP/DPyl Ljrx4R48OHdv/O6h7PZhw1LtUTin7lZiB/k21O+ogr8EF8wypTB/p2BoJJ+MnrBO fy2ZctTDBbRkZIt0RKL0jMijG3b9mGs1FwcXZdq1kBKtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1673943658; x=1674030058; bh=G GgnEfa5yYSZwuoNBxjIPA8b7qcMDsu70X1GTUgR0Bg=; b=l9vwz9QCwHu50edv9 NU/k2QZ8/diOak6v4yQ4U/b+EwLNfb80sMHMXwoCTmx2X6lqL4BpLMjS1HqJLA6e 4BslP/FAK06nvm+3S5wKWG6EsoNz/+0RYiSMaJYJqzHAe7TG2mQJyW/wI7BFHuYp D9sx4AKRm5MSYjrXkuUjKicQASKcQE8BSyLvaBKYKmzDbh6PEaA7n1fr0DY8TXq2 wPPrF8COi5Inu20XPHMstLi4wg0P691wsgNd5Fj4pGcR5/0GIB1vpOQKbDaQa810 5wfTJEo9HiBfA6y6GBOxe6FWwfyLLwA5Ll5ERiHcW7gEojmnRvOWgxRPY7uS+l23 zyrKA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddthedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhffkfgfgggtgfesth hqredttderjeenucfhrhhomheprfgrnhgrghhiohhtihhsucfmohhuthhsohhurhgrkhhi shcuoehkuhhtshhurhgrkhesshhlrghrthhisggrrhhtfhgrshhtrdhnvghtqeenucggtf frrghtthgvrhhnpeeugfdutefgfeefgeeiveffueffieeggeekkeeuveduffejgeeiiefg tdfhtdegffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehkuhhtshhurhgrkhesshhlrghrthhisggrrhhtfhgrshhtrdhnvght X-ME-Proxy: Feedback-ID: iaac9463b:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 17 Jan 2023 03:20:57 -0500 (EST) In-Reply-To: <871qnukz1n.fsf@mbork.pl> (Marcin Borkowski's message of "Mon, 16 Jan 2023 21:24:52 +0100") Received-SPF: pass client-ip=66.111.4.28; envelope-from=kutsurak@slartibartfast.net; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142298 Archived-At: On Mon, Jan 16 2023, Marcin Borkowski wrote: > On 2023-01-16, at 20:31, Peter M=C3=BCnster wrote: > >> On Mon, Jan 16 2023, Arash Esbati wrote: >> >>> You can check your last keystrokes with `C-h l': >> >> This is not so easy, it works only in the same emacs session. >> Last time, I've discovered the disappearance of the lines 9 days later. >> I make daily backups, so I've used the diff between backup of 9 days ago >> and 8 days ago, to restore my file. It's annoying, because it's a very >> big file, with all things that I need to remember. About 20k lines. >> And about 300 lines have vanished... >> I would really like to understand, how this could happen... > > I know that won't help you /right now/, but I had similar problems in > the past, and I pretty much got rid of them by commiting all my Org mode > files to Git every day (well, almost every day - my average over the > last 640 days is 0.90 times per day, although I'm getting closer to 1 I have something like this in my emacs configuration: (run-at-time t 600 (lambda () (org-save-all-org-buffers) (call-process "org-git-sync.sh" nil "*Org git sync*" nil))) The script org-git-sync.sh performs a git commit. Essentially this autosaves my org directory every 10 minutes. One nice property is that if nothing has changed in the last 10 minutes git commit will fail, so I only get meaningful history in my git repository. > recently). It would be great if Org mode had some way to warn me when > I delete something that is invisible (or undo in invisible parts of the > buffer), but I know of no such feature, so I do what I do. It takes > literally a minute or two every day, and I find it a very useful habit. There is the option `org-fold-catch-invisible-edits' (`org-catch-invisible-edits' in older versions of org mode) that will warn you or throw an error or both if you make changes in an invisible part of the org buffer. I am not sure if it works for undo, though. > > Hth, --=20 Best regards, Panos.