Stefan Kangas <stefan@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 39189) by debbugs.gnu.org; 23 Jan 2020 01:06:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 22 20:06:00 2020 Received: from localhost ([127.0.0.1]:51515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1iuQwZ-0007K0-P4 for submit <at> debbugs.gnu.org; Wed, 22 Jan 2020 20:06:00 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:50032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefan@HIDDEN>) id 1iuQwY-0007Jl-3r for 39189 <at> debbugs.gnu.org; Wed, 22 Jan 2020 20:05:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vz73qptGRAsQl5R0jZBOHfnze8FPOXbS92JQZ16kEAA=; b=UQnW9no9aYE3W8mOnp76tP0vAN YhCWl6lV3US4CrusoR3K8el2M1yBZZdaIH2evvd/KvMZL3KDlNEWRL+xgl76zAgTbtBcllMv8vwg4 FdxsQpWMEyXK4w73YdQ3fYSZAjzZRvVflfytpds9CXCw22Ckct7lmJbDTmxcvi4bA4a+1WjAPoQc6 voSwkGGz00hqWOCP+PS5l1XMK/F12LTJ/gkGPZlGspY8sr4DzrFKw7P7dd/TEyK8NH8Qw1o3V5GYv J80fcXDkzUG6cMAkNnFxw1xImInnwaYT5lSHNGzjZTUMNXNTYmxmq0Jgws0wvOk70PTehRQqCX+Ik KoL2CSCg==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:46728 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from <stefan@HIDDEN>) id 1iuQwR-000JCC-OJ; Wed, 22 Jan 2020 20:05:52 -0500 From: Stefan Kangas <stefan@HIDDEN> To: ndame <emacsuser@HIDDEN> Subject: Re: bug#39189: 26.2; recentf should save the list periodically In-Reply-To: <AyNW2A.EKNcPedqkEA.8dkhgbLf0vcFfQu4Wbp0@HIDDEN> (ndame's message of "Sun, 19 Jan 2020 10:16:12 +0000 (GMT)") References: <AyNW2A.EKNcPedqkEA.8dkhgbLf0vcFfQu4Wbp0@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Thu, 23 Jan 2020 02:05:49 +0100 Message-ID: <87pnfbhthu.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@HIDDEN X-Authenticated-Sender: ted.gofardesign.uk: stefan@HIDDEN X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39189 Cc: 39189 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) ndame <emacsuser@HIDDEN> writes: > Currently, recentf saves the recentf list only when emacs exits. Sometimes, > when emacs crashes I lose recently opened files from the list, because > the list is not saved periodically. > > Emacs should save the list every 10 minutes or so when the user is idle, so > the recentf list is preserved even if there is a crash. Yes, that would be useful. I like the semantics of `bookmark-save-flag'. Perhaps we could implement something more similar to that for recentf. Best regards, Stefan Kangas
bug-gnu-emacs@HIDDEN
:bug#39189
; Package emacs
.
Full text available.Received: (at 39189) by debbugs.gnu.org; 19 Jan 2020 21:49:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 19 16:49:13 2020 Received: from localhost ([127.0.0.1]:43990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1itIRU-00059R-Ru for submit <at> debbugs.gnu.org; Sun, 19 Jan 2020 16:49:13 -0500 Received: from smarthost-b.hosting2go.nl ([83.137.198.202]:48005) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <pieter-l@HIDDEN>) id 1itIRT-00059E-K8 for 39189 <at> debbugs.gnu.org; Sun, 19 Jan 2020 16:49:12 -0500 X-ASG-Debug-ID: 1579470545-0a9db43b881b48ef0001-uXFFLO Received: from server24.hosting2go.nl (server24.hosting2go.nl [83.137.194.11]) by smarthost-b.hosting2go.nl with ESMTP id 89dq1N30ojmls3yK (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <39189 <at> debbugs.gnu.org>; Sun, 19 Jan 2020 22:49:05 +0100 (CET) X-Barracuda-Envelope-From: pieter-l@HIDDEN X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Apparent-Source-IP: 83.137.194.11 Received: (qmail 12666 invoked from network); 19 Jan 2020 21:49:05 -0000 Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 19 Jan 2020 21:49:05 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id ECE0FA74B0A1; Sun, 19 Jan 2020 22:49:04 +0100 (CET) From: Pieter van Oostrum <pieter-l@HIDDEN> To: ndame <emacsuser@HIDDEN> Subject: Re: bug#39189: 26.2; recentf should save the list periodically References: <AyNW2A.EKNcPedqkEA.8dkhgbLf0vcFfQu4Wbp0@HIDDEN> X-ASG-Orig-Subj: Re: bug#39189: 26.2; recentf should save the list periodically Date: Sun, 19 Jan 2020 22:49:04 +0100 In-Reply-To: <AyNW2A.EKNcPedqkEA.8dkhgbLf0vcFfQu4Wbp0@HIDDEN> (ndame's message of "Sun, 19 Jan 2020 10:16:12 +0000 (GMT)") Message-ID: <lxd0bfce27.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Barracuda-Connect: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Start-Time: 1579470545 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://83.137.198.202:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 1103 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_SC0_MISMATCH_TO B-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.79447 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39189 Cc: 39189 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) ndame <emacsuser@HIDDEN> writes: > Currently, recentf saves the recentf list only when emacs exits. Sometimes, > when emacs crashes I lose recently opened files from the list, because > the list is not saved periodically. > > Emacs should save the list every 10 minutes or so when the user is idle, so > the recentf list is preserved even if there is a crash. > I have the following code in my ~/.emacs.d/init.el: (defun delayed-recentf-save-list () "Save recent files list when Emacs is idle." (run-with-idle-timer 10 nil 'repeat-recentf-save-list)) (defun repeat-recentf-save-list () "Save recent files list when it was changed and Emacs is idle." (unless (equal recentf-saved-list recentf-list) (recentf-save-list) (setq recentf-saved-list recentf-list)) (run-at-time 120 nil 'delayed-recentf-save-list)) (delayed-recentf-save-list) It saves periodically (every 2 minutes), but only when the list has changed, and it waits until Emacs is idle for 10 seconds. -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4]
bug-gnu-emacs@HIDDEN
:bug#39189
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 19 Jan 2020 10:20:24 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 19 05:20:24 2020 Received: from localhost ([127.0.0.1]:42641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1it7gu-0001gk-9C for submit <at> debbugs.gnu.org; Sun, 19 Jan 2020 05:20:24 -0500 Received: from lists.gnu.org ([209.51.188.17]:53810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <emacsuser@HIDDEN>) id 1it7gq-0001gb-SD for submit <at> debbugs.gnu.org; Sun, 19 Jan 2020 05:20:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50073) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <emacsuser@HIDDEN>) id 1it7gp-0003PE-5F for bug-gnu-emacs@HIDDEN; Sun, 19 Jan 2020 05:20:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <emacsuser@HIDDEN>) id 1it7gn-0002tW-O3 for bug-gnu-emacs@HIDDEN; Sun, 19 Jan 2020 05:20:18 -0500 Received: from fmfe22.onbox.hu ([46.107.16.227]:64911 helo=web-out.onbox.hu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <emacsuser@HIDDEN>) id 1it7gn-0002qY-1q for bug-gnu-emacs@HIDDEN; Sun, 19 Jan 2020 05:20:17 -0500 X-fm-smtp-source: yes Received: from localhost (localhost [178.164.166.83]) by web-out.onbox.hu (Postfix) with SMTP id 480rQj2ym9zTKL for <bug-gnu-emacs@HIDDEN>; Sun, 19 Jan 2020 11:20:13 +0100 (CET) Date: Sun, 19 Jan 2020 10:16:12 +0000 (GMT) From: ndame <emacsuser@HIDDEN> Message-ID: <AyNW2A.EKNcPedqkEA.8dkhgbLf0vcFfQu4Wbp0@HIDDEN> Subject: 26.2; recentf should save the list periodically MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3_1806676041.1579428972037" To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN> X-AccountId: 57978162 X-Originating-Ip: 178.164.166.83 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrudefgddugecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdcuhfftgffgofetkffnnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhkffugggtvfhisegrtdersgdttddunecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppedujeekrdduieegrdduieeirdekfeenucfrrghrrghmpehhvghloheppdhinhgvthepudejkedrudeigedrudeiiedrkeefpdhmrghilhhfrhhomhepvghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuhdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/relaxed; t=1579429213; s=20181004; d=freemail.hu; h=Date:From:Message-ID:Subject:MIME-Version:Content-Type:To; l=980; bh=cpfu+1l2rO1eCE2C+KqCYTvCs9E7qg73b+CxfPlrI9g=; b=tK8gSK/5dkO2DY+OjjVfvHDVWndRG5kEPA6pYdEOlSOxCFVKW5ckND9g8srk6j+m VVwecdjdTv3bur4t181Y14YniGYWmDisbOfl4wk5xZsMqd+kfhJWUrfMA+a4VWUWFHZ 3aw5ZLj+L223AGNBQnnPCZVNbV3mApzSAembtjpspmqDn87I7nPrHO6EdhBlu+bE+QJ spegIpL9k0Q6vj0OxCNtMQwRjNSuwxF2GI8cPugemhoj2oKEFDb3NdmCiV5RKY3Cai9 hx5jV7koWeWky1IWzIMhxdP7WLuLdqFwSyIrUmB8MvudKzfCHgSt0PcpW6f5R7U4hhs WeJhcUQHLA== X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 46.107.16.227 X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) ------=_Part_3_1806676041.1579428972037 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Currently, recentf saves the recentf list only when emacs exits. Sometimes, when emacs crashes I lose recently opened files from the list, because the list is not saved periodically. Emacs should save the list every 10 minutes or so=C2=A0when the user is idl= e, so the recentf list is preserved even if there is a crash. ------=_Part_3_1806676041.1579428972037 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Currently, recentf saves the recentf list only when emacs exits. Sometimes,<br /> when emacs crashes I lose recently opened files from the list, because<br /> the list is not saved periodically.<br /> <br /> Emacs should save the list every 10 minutes or so when the user is idle, so<br /> the recentf list is preserved even if there is a crash. ------=_Part_3_1806676041.1579428972037--
ndame <emacsuser@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#39189
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.