all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Sam Steingold <sds@gnu.org>
Cc: 15262-done@debbugs.gnu.org
Subject: bug#15262: 24.3.50; desktop does not save buffer-display-time
Date: Sun, 18 Aug 2019 19:26:25 +0200	[thread overview]
Message-ID: <CADwFkmm4JH3JKv2HGrm_Mji23zueaOnD_rEi6y2Coa-3s6MDtw@mail.gmail.com> (raw)
In-Reply-To: <878uzdg1si.fsf@gnu.org>

Sam Steingold <sds@gnu.org> writes:

> On Tue, Sep 3, 2013 at 4:30 PM, Glenn Morris <rgm@gnu.org> wrote:
>> Sam Steingold wrote:
>>
>>>> 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 <sds@gnu.org>
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

Thanks,
Stefan Kangas





  parent reply	other threads:[~2019-08-18 17:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-03 19:09 bug#15262: 24.3.50; desktop does not save buffer-display-time Sam Steingold
2013-09-03 19:26 ` Glenn Morris
2013-09-03 19:46   ` Sam Steingold
2013-09-03 19:51     ` Glenn Morris
2013-09-03 20:04       ` Sam Steingold
2013-09-03 20:30         ` Glenn Morris
2013-09-03 20:39           ` Sam Steingold
2013-09-03 22:55             ` Stefan Monnier
2019-08-18 17:26 ` Stefan Kangas [this message]
2019-08-18 20:58   ` Juri Linkov
2019-08-21 21:10     ` Stefan Kangas
2019-08-21 22:28       ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADwFkmm4JH3JKv2HGrm_Mji23zueaOnD_rEi6y2Coa-3s6MDtw@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=15262-done@debbugs.gnu.org \
    --cc=sds@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.