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: emacs.desktop non-functional Date: Fri, 18 Mar 2016 21:35:29 -0400 Message-ID: <56ECACE1.4090005@mousecar.com> References: <56EA0AA1.2020101@mousecar.com> <83fuvpai3i.fsf@gnu.org> <56EB1C37.3030308@mousecar.com> <8360wk9pvb.fsf@gnu.org> <56EC5550.5030801@mousecar.com> <83lh5f8rn2.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: 8bit X-Trace: ger.gmane.org 1458351366 26466 80.91.229.3 (19 Mar 2016 01:36:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2016 01:36:06 +0000 (UTC) To: Eli Zaretskii , GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 19 02:35:50 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 1ah5nx-0006rz-6I for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2016 02:35:49 +0100 Original-Received: from localhost ([::1]:47092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah5nw-0002b8-HM for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Mar 2016 21:35:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah5nk-0002b3-Ty for help-gnu-emacs@gnu.org; Fri, 18 Mar 2016 21:35:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ah5nh-0008Rf-AE for help-gnu-emacs@gnu.org; Fri, 18 Mar 2016 21:35:36 -0400 Original-Received: from mout.perfora.net ([74.208.4.197]:51991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah5nh-0008Rb-2W; Fri, 18 Mar 2016 21:35:33 -0400 Original-Received: from nv.mousecar.net ([66.219.160.17]) by mrelay.perfora.net (mreueus003) with ESMTPSA (Nemesis) id 0M9peg-1aW3Ap2fyC-00B3Eq; Sat, 19 Mar 2016 02:35:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: <83lh5f8rn2.fsf@gnu.org> X-Provags-ID: V03:K0:Emb293Vqadu9PPGoB9RyMcPseVhXl36H5RMrzNNAYGRaXMR10oh Gxsk7A5iadxLO/Cffho328DRcu6OEyeC7+NyjjIzeQq4ZNJF2CBcRQBqv9FFLl+fWuHB0GX TMFjQNYD+9ry4PYNxHTbXZCZnn9alq8JI5Cb3kCxdK1wPSor6IYevtHe4H/LI7+DEO6s24P UFaHo9Pkc2iSnJxhZkhpQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:LHoKDySXP+M=:tEkMozuHpobzO8bbKajrL6 9QbFieS0DUe+AB8sUJT5xEUgD4+cSy8AGB7hTpRIPQ48grLuU41LX6RkQfC2/fuuJ+tST7tAB eH5M9Plt/tWEFuGB232A6fEhgjQQdu+adQhXSxP06zS4HvBbEpOIILn+FU/NV8znTF9CQ6Pnl N+vLj5ktrRXr7YHWqV2OSCW/tRF1/p0xhdeHQRqe/xgfeAnNDnnAyo9z7MNDzKfsIYc+7FBd1 IS1WVTOrdcHqVK9wBtijWecPKkPwBZpeoMA0NedmE/dup3GhUdjmaQdHs8G1SKOGBcvMTbVuv TAQkt93fM8rdijTu+ETrOqn+jcPi+eDeJtgtvVyqS5B9aDbG7zWGaeO/cDh6rCSL2vrsnZaAR oyXABwrg2GRx04ONhsAA6VRzC08mSdzqQt+K1nNewMVym95TP6lmLGHIFkBGHdn5XBWmJQq+f rBDHXOmEvUpiIOyix1M/VCgDvMQ/1G8H1SGca5qaeMNlITk90nwmUxBLht614RapyD3oNLwgI j979hZVT8YwhmiD744k1eD6kXerVAwwsPLO8j1ygvSXIUMo6RdA96pecxf8yGYhDI0fpbHz0P roWoUj4QdRHcQsmT05bH/WzIh7QxrqDpdnBVO29tvwRIm+1x6q+m0xM60SaWc5Jh/bzygTJDD iXjjbHBOrygBiM9xq3+iHrKSWL4Agw5NZ8zKxdVR6Thhxj7xgymhATP90RvJ6s6t+zcec1wWN 18EfmYqUszsVofDn 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.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109629 Archived-At: On 03/18/2016 04:20 PM, Eli Zaretskii wrote: >> From: ken >> Date: Fri, 18 Mar 2016 15:21:52 -0400 >> >>> Do you have a .emacs.desktop file created when you exit a session? In >>> what directories on your system do you have a file by that name? And >>> what happens if you invoke desktop-save manually from a running Emacs >>> session -- does that file get created/updated somewhere? >>> >>> Also, what exactly does it mean the "functionality is gone" in your >>> case? What did you try to do and what happened? >> >> https://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html > > I don't think we will make any progress in investigating the reason(s) > that prevent desktop from working by quoting from the manual. I just wanted to explain what I was expecting and what wasn't happening without having to type so much. I thought too some other people on the list jwould be interested in what we're talking about. > > I asked the questions and hoped that I will get detailed answers. > Like how do you invoke Emacs, in which directory, etc. This is > important information that is supposed to lead to the problem. There's an icon in the Applications menu that I click on when I have to. But "emacs" is also in that group of applications which gnome starts automatically. > >> "Use the desktop library to save the state of Emacs from one session to >> another. Once you save the Emacs desktop—the buffers, their file names, >> major modes, buffer positions, and so on—then subsequent Emacs sessions >> reload the saved desktop. By default, the desktop also tries to save the >> frame and window configuration...." >> >> It doesn't do any of that. Does your emacs do all of that? > > Please note that the manual on-line is for version 24.5, whereas you > have 24.3. So not all of what is described is supposed to be working > in your version. Perhaps consider upgrading to 24.5. The functionality is the same, so it's not necessary for that sreason. I'd rather not upgrade. There are often dependency problems. I figure if Redhat doesn't see a reason to upgrade, that's good enough for me. Also the functionality I'm after is already in the version I have... or should be. > >> Whenever I start emacs (not emacs-client) I >> get at most one file (buffer) from a previous session loaded. > > What if you invoke desktop-read by hand -- does that restore the > previous session's buffers? No. No new buffers, just all the same ones which were already opened. The minibuffer says "Warning: desktop file appears to be in use by PID 4074. Using it may cause conflicts. Use it anyway?" PID 4074 doesn't exist... probably from a crashed session. Did some testing. When I open a new buffer and type somethign in it but before saving the buffer to a file, the buffer name is not to be found in any of the emacs.desktop files. If I then save taht buffer to a file, still nothing-- neither the buffer name nor its filename-- is saved to any emacs.desktop file. So I'm guessing then that if the system suddenly goes down at this point, there will be no record in .emacs.desktop of that newly opened file. (This is actually the initial case I'm wondering about.) Is that how it works for you as well? This might be strange too: $ ps -ef|grep emacs xx 2887 2453 0 Mar17 ? 00:00:00 /usr/bin/emacs --smid=1019c4f12271782266145082947974782600000023660023 --no-splash --chdir=/home/zl --daemon xx 2944 2453 0 Mar17 ? 00:00:00 emacsclient -c --alternate-editor= xx 2951 2944 0 Mar17 ? 00:00:00 emacs --daemon xx 3100 2951 0 Mar17 ? 00:00:00 emacs --daemon xx 3101 2887 0 Mar17 ? 00:00:00 /usr/bin/emacs --smid=1019c4f12271782266145082947974782600000023660023 --no-splash --chdir=/home/zl --daemon xx 4074 2687 0 09:26 ? 00:00:25 emacs Isn't that a lot of processes for having just four files open?