* bug#15319: Problem with loading emacs session
@ 2013-09-10 8:47 Petr Hracek
2013-09-10 11:41 ` Petr Hracek
2013-09-10 15:29 ` Eli Zaretskii
0 siblings, 2 replies; 10+ messages in thread
From: Petr Hracek @ 2013-09-10 8:47 UTC (permalink / raw
To: 15319
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#15319: Problem with loading emacs session
2013-09-10 8:47 bug#15319: Problem with loading emacs session Petr Hracek
@ 2013-09-10 11:41 ` Petr Hracek
2013-09-10 15:29 ` Eli Zaretskii
1 sibling, 0 replies; 10+ messages in thread
From: Petr Hracek @ 2013-09-10 11:41 UTC (permalink / raw
To: 15319
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#15319: Problem with loading emacs session
2013-09-10 8:47 bug#15319: Problem with loading emacs session Petr Hracek
2013-09-10 11:41 ` Petr Hracek
@ 2013-09-10 15:29 ` Eli Zaretskii
2013-09-10 16:25 ` Glenn Morris
1 sibling, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2013-09-10 15:29 UTC (permalink / raw
To: Petr Hracek; +Cc: 15319
> Date: Tue, 10 Sep 2013 10:47:08 +0200
> From: Petr Hracek <phracek@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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#15319: Problem with loading emacs session
2013-09-10 15:29 ` Eli Zaretskii
@ 2013-09-10 16:25 ` Glenn Morris
2013-09-10 17:38 ` Glenn Morris
0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2013-09-10 16:25 UTC (permalink / raw
To: Eli Zaretskii; +Cc: 15319
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#15319: Problem with loading emacs session
2013-09-10 16:25 ` Glenn Morris
@ 2013-09-10 17:38 ` Glenn Morris
2013-09-11 6:35 ` Petr Hracek
0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2013-09-10 17:38 UTC (permalink / raw
To: 15319
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#15319: Problem with loading emacs session
2013-09-10 17:38 ` Glenn Morris
@ 2013-09-11 6:35 ` Petr Hracek
2013-09-12 16:24 ` Glenn Morris
0 siblings, 1 reply; 10+ messages in thread
From: Petr Hracek @ 2013-09-11 6:35 UTC (permalink / raw
To: Glenn Morris; +Cc: 15319
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#15319: Problem with loading emacs session
2013-09-11 6:35 ` Petr Hracek
@ 2013-09-12 16:24 ` Glenn Morris
2013-09-23 14:28 ` Petr Hracek
0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2013-09-12 16:24 UTC (permalink / raw
To: Petr Hracek; +Cc: 15319
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#15319: Problem with loading emacs session
2013-09-12 16:24 ` Glenn Morris
@ 2013-09-23 14:28 ` Petr Hracek
2013-10-09 17:26 ` Glenn Morris
0 siblings, 1 reply; 10+ messages in thread
From: Petr Hracek @ 2013-09-23 14:28 UTC (permalink / raw
To: Glenn Morris; +Cc: 15319
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#15319: Problem with loading emacs session
2013-09-23 14:28 ` Petr Hracek
@ 2013-10-09 17:26 ` Glenn Morris
2013-10-10 1:03 ` Glenn Morris
0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2013-10-09 17:26 UTC (permalink / raw
To: Petr Hracek; +Cc: 15319
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/.
^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#15319: Problem with loading emacs session
2013-10-09 17:26 ` Glenn Morris
@ 2013-10-10 1:03 ` Glenn Morris
0 siblings, 0 replies; 10+ messages in thread
From: Glenn Morris @ 2013-10-10 1:03 UTC (permalink / raw
To: 15319
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-10-10 1:03 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-10 8:47 bug#15319: Problem with loading emacs session Petr Hracek
2013-09-10 11:41 ` Petr Hracek
2013-09-10 15:29 ` Eli Zaretskii
2013-09-10 16:25 ` Glenn Morris
2013-09-10 17:38 ` Glenn Morris
2013-09-11 6:35 ` Petr Hracek
2013-09-12 16:24 ` Glenn Morris
2013-09-23 14:28 ` Petr Hracek
2013-10-09 17:26 ` Glenn Morris
2013-10-10 1:03 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).