From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28945: 25.2; desktop auto save timer does not work Date: Mon, 23 Oct 2017 22:35:59 +0300 Message-ID: <83a80hac80.fsf@gnu.org> References: <87k1znuphh.fsf@gmail.com> <8360b7ayzq.fsf@gnu.org> <87efpvulk1.fsf@gmail.com> <83376bawts.fsf@gnu.org> <871slt64v1.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1508787434 30219 195.159.176.226 (23 Oct 2017 19:37:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2017 19:37:14 +0000 (UTC) Cc: 28945@debbugs.gnu.org To: Peter Neidhardt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 23 21:37:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6iX6-00075M-Vi for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Oct 2017 21:37:09 +0200 Original-Received: from localhost ([::1]:40287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6iXE-0004BH-Fq for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Oct 2017 15:37:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6iX5-0004AF-62 for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 15:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6iX0-0002wR-Lh for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 15:37:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49335) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6iX0-0002wL-Hh for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 15:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e6iX0-000659-Bc for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 15:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Oct 2017 19:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28945 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28945-submit@debbugs.gnu.org id=B28945.150878739323319 (code B ref 28945); Mon, 23 Oct 2017 19:37:02 +0000 Original-Received: (at 28945) by debbugs.gnu.org; 23 Oct 2017 19:36:33 +0000 Original-Received: from localhost ([127.0.0.1]:58016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6iWX-000642-Je for submit@debbugs.gnu.org; Mon, 23 Oct 2017 15:36:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6iWW-00063q-9k for 28945@debbugs.gnu.org; Mon, 23 Oct 2017 15:36:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6iWM-0002dn-IL for 28945@debbugs.gnu.org; Mon, 23 Oct 2017 15:36:27 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6iWM-0002di-E4; Mon, 23 Oct 2017 15:36:22 -0400 Original-Received: from [176.228.60.248] (port=3436 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e6iWJ-00036J-Bq; Mon, 23 Oct 2017 15:36:22 -0400 In-reply-to: <871slt64v1.fsf@gmail.com> (message from Peter Neidhardt on Mon, 23 Oct 2017 20:28:34 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 208.118.235.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:138905 Archived-At: > From: Peter Neidhardt > Cc: 28945@debbugs.gnu.org > Date: Mon, 23 Oct 2017 20:28:34 +0100 > > > > I notice it when I resume typing during the time desktop.el > > auto-saves. The response to my typing is "sluggish", because once the > > timer function starts running, it runs to completion, before Emacs > > notices I typed something and responds. > > Correct me if I'm wrong: > > - If you keep using Emacs for hours (that is "typing/moving the point > around") without taking a 30 sec break, then the timer won't trigger > the desktop saving. Right? Right. > - The sluggishness would only be noticed if you happen to do nothing for > more than `desktop-auto-save-timeout' but for less than > desktop-auto-save-timeout + "time needed for saving". It seems > improbable that this happens _often_. It happens quite often to me. Believe it or not, I tend to think a lot when I type in Emacs ;-) 30 sec is not such a long period for thinking about your next word or phrase or implementation detail. > - I've used desktop-mode for years and I've never noticed any > sluggishness as it takes less than a fraction of a second to save. > I've had crappy computers, but admitedly most of them had an SSD. My > current timeout is 5 and I don't see any performance impact even on a > bad computer with an even worse HDD. How many frames and how many buffers do you typically have in a session? > Either way, the default value is not that important since every user is free > to change the value. What is more important is to document it > properly. No argument here. > > If you experience any irresponsiveness everytime desktop gets saved, > > increase the timeout. > > If not, it's safe to have it around 10. This kind of advice generally belongs in the manual, not in the doc string, IMO.