--- Begin Message ---
Subject: |
[PATCH] desktop mode corrupts restored registers |
Date: |
Wed, 13 Mar 2013 21:31:45 -0700 (PDT) |
Put in your init.el just (desktop-save-mode 1)
Delete your .emacs.desktop if you already have one.
Start Emacs 24.3, open any file foo, then do point-to-register, and use
register a. Leave foo open, and open any file bar in the same window so foo is
no longer displayed, then do point-to-register, and use register b. Leave bar
open, and open any file baz in the same window. Then do list-registers, and you
get the right thing: register a points to foo, and b to bar.
Then close Emacs, answer yes to save the desktop, then start Emacs again. Do
list-registers. Register b has the right position but the wrong buffer (baz),
and register a either has the same problem (if the position was different from
the position of b) or has a marker in no buffer (if the position happened to be
the same as the position of b). The bug is caused by trying to convert the
saved buffer name to a buffer before the buffer itself has been recreated after
restarting Emacs.
The attached desktopregisterbug.patch fixes it.
desktopregisterbug.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#13951: [PATCH] desktop mode corrupts restored registers |
Date: |
Mon, 25 Mar 2013 23:39:22 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> The attached desktopregisterbug.patch fixes it.
Thanks. I installed a related patch I had pending which makes this
change along with a more intrusive change of how v2s works.
Stefan
--- End Message ---