From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#15262: 24.3.50; desktop does not save buffer-display-time Date: Sun, 18 Aug 2019 23:58:02 +0300 Organization: LINKOV.NET Message-ID: <87pnl2gpu1.fsf@mail.linkov.net> References: <878uzdg1si.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="144747"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: sds@gnu.org, stefan@marxist.se To: 15262@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 18 23:11:30 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hzSSY-000bVO-DV for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Aug 2019 23:11:30 +0200 Original-Received: from localhost ([::1]:42918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzSSW-0007Om-OD for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Aug 2019 17:11:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37239) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzSS6-0007Mq-Si for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2019 17:11:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzSS5-0007sO-UL for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2019 17:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzSS5-0007sG-Qm for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2019 17:11:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hzSS5-0003sj-Ko for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2019 17:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Aug 2019 21:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15262 X-GNU-PR-Package: emacs Original-Received: via spool by 15262-submit@debbugs.gnu.org id=B15262.156616261814868 (code B ref 15262); Sun, 18 Aug 2019 21:11:01 +0000 Original-Received: (at 15262) by debbugs.gnu.org; 18 Aug 2019 21:10:18 +0000 Original-Received: from localhost ([127.0.0.1]:58840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hzSRO-0003rf-4d for submit@debbugs.gnu.org; Sun, 18 Aug 2019 17:10:18 -0400 Original-Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:23739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hzSRK-0003rO-Tb for 15262@debbugs.gnu.org; Sun, 18 Aug 2019 17:10:16 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B85446A20A8; Sun, 18 Aug 2019 21:10:13 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com (100-96-89-43.trex.outbound.svc.cluster.local [100.96.89.43]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id B2E686A1EC1; Sun, 18 Aug 2019 21:10:09 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Sun, 18 Aug 2019 21:10:13 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Shoe-Keen: 0b8d9d1d662bd4c5_1566162610145_786008339 X-MC-Loop-Signature: 1566162610145:3200298662 X-MC-Ingress-Time: 1566162610145 Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTP id 1A46383CE9; Sun, 18 Aug 2019 14:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=8LGtBeCXCMHovMrweAMzHqvDe40=; b= brwJdOJTBzY120NL0xrWJtHppdpgsQEONd2cz07e6MN2p32MDihchPkDTc7z8yX7 bzvSi489sqmZqcERdDSSY5L88s68svS8bY5FkpTMfcZcTJbg37TF+Gl/nZSMv7fI Zqg50t1Yn4IHkEUDxrqV+mC+RSgRdR/bAA+7GIYa348= Original-Received: from mail.jurta.org (m91-129-109-163.cust.tele2.ee [91.129.109.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTPSA id E19EF834BA; Sun, 18 Aug 2019 14:10:02 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a11 In-Reply-To: (Stefan Kangas's message of "Sun, 18 Aug 2019 19:26:25 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudefjedgudehiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdelrdduieefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtledrudeifedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopeduhedviedvseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165355 Archived-At: >>>>> Maybe someone wants starting a new Emacs to reset the clocks on all >>>>> their buffers, so none are considered "old". >>>> >>>> why would one want to do that? >>> >>> You don't think there's anyone alive who would think it weird to start >>> an Emacs at 11.59pm, then have a bunch of buffers killed 1 minute later >>> as "too old"? >> >> well, let's see: the last time the user saw the buffers was 3 days ago. >> and he explicitly (by enabling midnight) requested that they are purged. >> what's weird? >> ah, I see! suppose the user have not used emacs for a week. >> then all buffers will be killed. >> maybe it would make sense to advance the saved buffer-display-time >> by the period while emacs was inactive. > > The changes suggested by Sam Steingold above is now on master, and I'm > therefore closing this bug report. > > commit cd726ef68ece4fff6772bd08c0051c294e925505 > Author: Sam Steingold > Date: Sat Oct 15 23:14:48 2016 -0400 > > Save and restore buffer-display-time > > * desktop.el (desktop-locals-to-save): Add `buffer-display-time' > (desktop-read): Set `desktop-file-modtime' before loading the desktop file > (desktop-create-buffer): Adjust `buffer-display-time' for the > downtime I used to show buffer-display-time in the customized buffer list. After that change buffer-display-time displayed weird times, so I had to replace buffer-display-time with visited-file-modtime instead. But I think this issue has a minuscule importance, so unless somebody wants to add a new attribute inactive-time, it was ok to close this.