From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: desktop-save problems Date: Wed, 13 Jul 2016 18:24:28 -0400 Message-ID: <5786BF9C.3070701@mousecar.com> References: <576087FA.5020106@mousecar.com> <831t3yebgf.fsf@gnu.org> <57869B44.7050907@mousecar.com> <83poqh8fxc.fsf@gnu.org> Reply-To: gebser@mousecar.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1468448743 13591 80.91.229.3 (13 Jul 2016 22:25:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2016 22:25:43 +0000 (UTC) To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 00:25:27 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bNSas-00080o-FL for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 00:25:26 +0200 Original-Received: from localhost ([::1]:50319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNSar-0004wh-Ms for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 18:25:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNSaG-0004ux-M5 for help-gnu-emacs@gnu.org; Wed, 13 Jul 2016 18:24:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNSaF-0000bM-Gr for help-gnu-emacs@gnu.org; Wed, 13 Jul 2016 18:24:48 -0400 Original-Received: from mout.perfora.net ([74.208.4.197]:53007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNSaA-0000ZX-JY; Wed, 13 Jul 2016 18:24:42 -0400 Original-Received: from nv.mousecar.net ([96.27.75.237]) by mrelay.perfora.net (mreueus001) with ESMTPSA (Nemesis) id 0Lb3jb-1azM1o1Cpd-00kWm3; Thu, 14 Jul 2016 00:24:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: <83poqh8fxc.fsf@gnu.org> X-Provags-ID: V03:K0:QRMHSljDfT27IVoThrqplJMO5XY3tcwuVdUA9XdQbrX2rK/N1P/ 9v+eECPvrHKYOiTY6CyiR71DemZZRgM7G6bwRPmikR7V2g+aIAJE0ZWlGUhSaUPwXs7YK0k x0olnygrJvOopYwbJVngM2bCkenQcAr7IKinUm4KNSEe6fcKOtp+yYC/X+1bmmNDG/6mi07 WLMBkxep5lcJld9Hz/8ZQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:8goZp8jNTqA=:DbkpIRCWNOWivDXeIyA+bO AC1HJYW51Tq25e6bd8jq+BeG1o+QQEdrwsew6a0RjesV+OLw17/4AzLjCkX1U1hbu8lndqhq0 VUjCuLLbBwMWm9kkA6D5UGxtJboBuaXVfcS6dCXzH/W+2wXLgGGJXx7z17VT8I0gppJN/hQzV ej0QqZ6LRif8iFY+vGK2Xpt8UFRO0QeboxiM4QgX8BtOTuEkscKGe7+6f4DqLt9OCZG9yhUxY Oj1y0NfYl3xx0DONfeJXHJMpC8ZqeClMUmPltq8VC6mDDYzcL1E5Es1Guz2WlWu2I74doyich DuOaTPXRl5+xlgQ+YLguSKCRdxJYXVwGLcUEZFiBgPGflj+FW+ZWWcX8eWKuf0MPohlgRKA2e qDeSgLhlJIYNyVhCJxCMzn53SqNi5JKproQw52PbWBWuyp/ckRuXCWVFS/+xM/Us0r0YjczcZ 0cw07nzFbxO+HkkP+2b8zaImPv5EQ4yRWhv8G9HN3Op7M4yj7eDUmXd/swAntMth5Zv2KXglT 6+G6L2qPoHyK9EsC6FSql8nuJFQEjHI291Kmxt+BizRJ8dE3snWT3u6R059u60KYSmxEHTjG0 dsXVmFSVte+CtNhyZEsVma2/ZMdGlbhNV5ZO0Nc4JKZjw6zMFvhrqUBTtSN+JraLPQ11WppkE kTTH+0K/eWRV66kWKQz5NfCfnDY320bVRyqM8vuisSW8TYoXXO0bMvaEvBiL47KhYK0IETDyB hvr5bcyjSe/V0wEj X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 74.208.4.197 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110822 Archived-At: On 07/13/2016 04:02 PM, Eli Zaretskii wrote: >> From: ken >> Date: Wed, 13 Jul 2016 15:49:24 -0400 >> >>> The way I do it is turn on desktop-save-mode, then Emacs will save the >>> desktop when I exit automatically. >> This means that the desktop isn't saved when the system crashes, e.g., >> the power suddenly goes out, yes? > If this is frequent enough, you can save manually at strategic times. Years ago desktop-save and desktop-read both worked properly out of the box... didn'tl even have to invoke anything. It just kept track of what files/buffers were open and opened them again in the next session, whether the previous session was graceful or a crash... files opened via tramp too. How/Why did things get messed up? >> Also, in my emacs (24.3.1) I'm always prompted for the directory to save >> the desktop in. Is there a way to specify one directory where the >> desktop is saved so I don't have this prompt come up? > It doesn't prompt me, it uses the ~/.emacs.d/ directory by default; > the directory from which the desktop was read overrides that. I'm > never asked any such questions. Something is wrong with your setup. This is how it works when I start emacs with "emacs -Q". >>>> Second, is there a way for "desktop-save" to be run programmatically >>>> whenever I open a new file/buffer or kill a buffer? >>> In a new enough version of Emacs, the desktop is periodically saved >>> even when no buffer is killed. >> Which version is "new enough"? > 24.4 and later. > >> Also, wouldn't it make more sense for desktop-save to work when file or >> buffer is opened or closed? > Since we now save periodically, we don't need to resolve this dilemma. Just curious... how often is the desktop saved in your version? > .... Thanks for your help.