GNU bug report logs - #15319
Problem with loading emacs session

Previous Next

Package: emacs;

Reported by: Petr Hracek <phracek <at> redhat.com>

Date: Tue, 10 Sep 2013 08:48:02 UTC

Severity: minor

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15319 in the body.
You can then email your comments to 15319 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15319; Package emacs. (Tue, 10 Sep 2013 08:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Petr Hracek <phracek <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 10 Sep 2013 08:48:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Petr Hracek <phracek <at> redhat.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Problem with loading emacs session
Date: Tue, 10 Sep 2013 10:47:08 +0200
Hi developers,

I have a problem with Emacs sessions:
emacs version which I have currently installed is emacs-24.3

1. create a new directory, cd into it
2. emacs
3. edit a new file with a few lines, save it under the dir, stay in the file's buffer
4. M-x desktop-save, choose the created dir
5. C-x C-c
6. stay in the created dir
7. emacs

scratch buffer should be opened but it does not work at all.

I did not tested this on trunk yet.


-- 
Best regards / S pozdravem
Petr Hracek





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15319; Package emacs. (Tue, 10 Sep 2013 11:42:02 GMT) Full text and rfc822 format available.

Message #8 received at 15319 <at> debbugs.gnu.org (full text, mbox):

From: Petr Hracek <phracek <at> redhat.com>
To: 15319 <at> debbugs.gnu.org
Subject: Re: bug#15319: Problem with loading emacs session
Date: Tue, 10 Sep 2013 13:41:01 +0200
Finally, I tried that bug also in trunk and problem is reproducible.

I would like to solve that problem. Is it a lisp code?
What is the responsible function for that?

Petr

On 09/10/2013 10:47 AM, Petr Hracek wrote:
> Hi developers,
>
> I have a problem with Emacs sessions:
> emacs version which I have currently installed is emacs-24.3
>
> 1. create a new directory, cd into it
> 2. emacs
> 3. edit a new file with a few lines, save it under the dir, stay in 
> the file's buffer
> 4. M-x desktop-save, choose the created dir
> 5. C-x C-c
> 6. stay in the created dir
> 7. emacs
>
> scratch buffer should be opened but it does not work at all.
>
> I did not tested this on trunk yet.
>
>


-- 
Best regards / S pozdravem
Petr Hracek





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15319; Package emacs. (Tue, 10 Sep 2013 15:30:03 GMT) Full text and rfc822 format available.

Message #11 received at 15319 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Petr Hracek <phracek <at> redhat.com>
Cc: 15319 <at> debbugs.gnu.org
Subject: Re: bug#15319: Problem with loading emacs session
Date: Tue, 10 Sep 2013 18:29:21 +0300
> Date: Tue, 10 Sep 2013 10:47:08 +0200
> From: Petr Hracek <phracek <at> redhat.com>
> 
> I have a problem with Emacs sessions:
> emacs version which I have currently installed is emacs-24.3
> 
> 1. create a new directory, cd into it
> 2. emacs
> 3. edit a new file with a few lines, save it under the dir, stay in the file's buffer
> 4. M-x desktop-save, choose the created dir
> 5. C-x C-c
> 6. stay in the created dir
> 7. emacs
> 
> scratch buffer should be opened but it does not work at all.

What do you mean by "does not work at all"?  Are you saying that you
get an Emacs session where "C-x b *scratch* RET" says there's no such
buffer?  If so, I cannot reproduce this on my system.

Also, I assume that you have a call to desktop-read or to
desktop-save-mode in your init file, otherwise the saved session will
not be restored.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15319; Package emacs. (Tue, 10 Sep 2013 16:26:01 GMT) Full text and rfc822 format available.

Message #14 received at 15319 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 15319 <at> debbugs.gnu.org, Petr Hracek <phracek <at> redhat.com>
Subject: Re: bug#15319: Problem with loading emacs session
Date: Tue, 10 Sep 2013 12:25:23 -0400
Eli Zaretskii wrote:

>> scratch buffer should be opened but it does not work at all.
>
> What do you mean by "does not work at all"?  Are you saying that you
> get an Emacs session where "C-x b *scratch* RET" says there's no such
> buffer? 

Presumably this is:
https://bugzilla.redhat.com/show_bug.cgi?id=999932

which actually says the opposite:
   Actual results:
   *scratch* buffer opens, there's no buffer created with the new files

> Also, I assume that you have a call to desktop-read or to
> desktop-save-mode in your init file, otherwise the saved session will
> not be restored.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15319; Package emacs. (Tue, 10 Sep 2013 17:39:01 GMT) Full text and rfc822 format available.

Message #17 received at 15319 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 15319 <at> debbugs.gnu.org
Cc: phracek <at> redhat.com, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#15319: Problem with loading emacs session
Date: Tue, 10 Sep 2013 13:38:20 -0400
Assuming the OP has enabled desktop-save-mode in .emacs, I imagine the
issue here is this change from NEWS in 24.3:

  ** `desktop-path' no longer includes the "." directory.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15319; Package emacs. (Wed, 11 Sep 2013 06:36:02 GMT) Full text and rfc822 format available.

Message #20 received at 15319 <at> debbugs.gnu.org (full text, mbox):

From: Petr Hracek <phracek <at> redhat.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 15319 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#15319: Problem with loading emacs session
Date: Wed, 11 Sep 2013 08:35:03 +0200
On 09/10/2013 07:38 PM, Glenn Morris wrote:
> Assuming the OP has enabled desktop-save-mode in .emacs, I imagine the
> issue here is this change from NEWS in 24.3:
>
>    ** `desktop-path' no longer includes the "." directory.
Yes, that's correct desktop-save-mode is in .emacs file.
Does it mean that when I am in some directory and desktop file is 
created then buffer is not loaded into *scratch*
again?

Sorry for mistification I forgot to add reference from bugzilla.

greetings

-- 
Best regards / S pozdravem
Petr Hracek





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15319; Package emacs. (Thu, 12 Sep 2013 16:25:02 GMT) Full text and rfc822 format available.

Message #23 received at 15319 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Petr Hracek <phracek <at> redhat.com>
Cc: 15319 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#15319: Problem with loading emacs session
Date: Thu, 12 Sep 2013 12:24:06 -0400
Petr Hracek wrote:

> On 09/10/2013 07:38 PM, Glenn Morris wrote:
>> Assuming the OP has enabled desktop-save-mode in .emacs, I imagine the
>> issue here is this change from NEWS in 24.3:
>>
>>    ** `desktop-path' no longer includes the "." directory.
> Yes, that's correct desktop-save-mode is in .emacs file.
> Does it mean that when I am in some directory and desktop file is
> created then buffer is not loaded into *scratch*
> again?

It's not really anything to do with scratch.
Try the original recipe again, but in your home directory, and you
should see how it works.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15319; Package emacs. (Mon, 23 Sep 2013 14:29:01 GMT) Full text and rfc822 format available.

Message #26 received at 15319 <at> debbugs.gnu.org (full text, mbox):

From: Petr Hracek <phracek <at> redhat.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 15319 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#15319: Problem with loading emacs session
Date: Mon, 23 Sep 2013 16:28:00 +0200
On 09/12/2013 06:24 PM, Glenn Morris wrote:
> Petr Hracek wrote:
>
>> On 09/10/2013 07:38 PM, Glenn Morris wrote:
>>> Assuming the OP has enabled desktop-save-mode in .emacs, I imagine the
>>> issue here is this change from NEWS in 24.3:
>>>
>>>     ** `desktop-path' no longer includes the "." directory.
>> Yes, that's correct desktop-save-mode is in .emacs file.
>> Does it mean that when I am in some directory and desktop file is
>> created then buffer is not loaded into *scratch*
>> again?
> It's not really anything to do with scratch.
> Try the original recipe again, but in your home directory, and you
> should see how it works.
Hello Glenn,

thank you very much for your time.

I have tried your proposal but neither storing desktop file into ~/
nor into ~/.emacs.d/ helps me.

When I am in some directory like ~/abc/def
and open emacs and write some character and press M-x desktop-save
then when I open the emacs (after closing) any character is visible on 
the emacs screen (GUI)

Could you please help me what I made wrongly?

My .emacs file looks like:
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(send-mail-function (quote mailclient-send-it)))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(desktop-save-mode 1)
(put 'upcase-region 'disabled nil)

Thank you in advance

-- 
Best regards / S pozdravem
Petr Hracek





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15319; Package emacs. (Wed, 09 Oct 2013 17:27:02 GMT) Full text and rfc822 format available.

Message #29 received at 15319 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Petr Hracek <phracek <at> redhat.com>
Cc: 15319 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#15319: Problem with loading emacs session
Date: Wed, 09 Oct 2013 13:26:33 -0400
Petr Hracek wrote:

> I have tried your proposal but neither storing desktop file into ~/
> nor into ~/.emacs.d/ helps me.
>
> When I am in some directory like ~/abc/def
> and open emacs and write some character and press M-x desktop-save
> then when I open the emacs (after closing) any character is visible on
> the emacs screen (GUI)

It only restores _files_ that are open at the time you use M-x desktop-save.
This feature has nothing at all to do with the scratch buffer.


The only thing that I think should be changed here is that M-x
desktop-save should not default to saving in PWD, as it does now, but to
~/.emacs.d/.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15319; Package emacs. (Thu, 10 Oct 2013 01:05:02 GMT) Full text and rfc822 format available.

Message #32 received at 15319 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 15319 <at> debbugs.gnu.org
Cc: Petr Hracek <phracek <at> redhat.com>
Subject: Re: bug#15319: Problem with loading emacs session
Date: Wed, 09 Oct 2013 21:03:59 -0400
Glenn Morris wrote:

> The only thing that I think should be changed here is that M-x
> desktop-save should not default to saving in PWD, as it does now, but to
> ~/.emacs.d/.

Now done.




Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 10 Oct 2013 01:05:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 15319 <at> debbugs.gnu.org and Petr Hracek <phracek <at> redhat.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 10 Oct 2013 01:05:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 07 Nov 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 193 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.