Closed redguardtoo closed 10 years ago
I've met this problem. It's rare (for me) and I don't know yet what caused it.
But the fix (manually) was really simple:
You can replace #(...)
in session file with nil
. That worked for me.
I see that in your file there is not only one #
occurence
I'm not familiar with this part of elisp. but there is some doc on http://www.gnu.org/software/emacs/manual/html_node/elisp/Streams-Intro.html#Streams-Intro , does this help? quoted:
However, these two operations are not precisely inverse to each other. There are three kinds of exceptions:
Printing can produce text that cannot be read. For example, buffers, windows, frames, subprocesses and markers print as text that starts with ‘#’; if you try to read this text, you get an error. There is no way to read those data types.
One object can have multiple textual representations. For example, ‘1’ and ‘01’ represent the same integer, and ‘(a b)’ and ‘(a . (b))’ represent the same list. Reading will accept any of the alternatives, but printing must choose one of them.
Comments can appear at certain points in the middle of an object's read sequence without affecting the result of reading it.
Printing can produce text that cannot be read ...
Seems to be the exact problem. Well, I'm experimenting with the code. I changed the code which might caused the bug. Also removed some code for old versions of Emacs. Need more time to test it all.
Will you try to use a "test" branch: https://github.com/pashinin/workgroups2/tree/test for some time and tell if the bug is still appearing?
ok
It still happens for me on the test branch. I've been able to reproduce the error consistently by opening a *Help*
buffer, saving the workgroup session, and then relaunching Emacs.
not resolved
Thank you, @didoarellano, but I can't reproduce it (works for me). Tell me please Emacs version and (just for example) what is in a help bufer (function name). Maybe the problem is in saving local variables.
@redguardtoo, the same here? help-mode
?
As I cannot reproduce it now - you can comment out block for help-mode
in https://github.com/pashinin/workgroups2/blob/test/src/workgroups-specialbufs.el#L32 workgroups-specialbufs.el and tell if it is only 1 mode problem.
yes On Feb 25, 2014 9:46 PM, "Sergey Pashinin" notifications@github.com wrote:
Thank you, @didoarellano https://github.com/didoarellano, but I can't reproduce it (works for me). Tell me please Emacs version and (just for example) what is in a help bufer (function name). Maybe the problem is in saving local variables.
@redguardtoo https://github.com/redguardtoo, the same here? help-mode?
As I cannot reproduce it now - you can comment out block for help-mode in https://github.com/pashinin/workgroups2/blob/test/src/workgroups-specialbufs.el#L32workgroups-specialbufs.el and tell if it is only 1 mode problem.
Reply to this email directly or view it on GitHubhttps://github.com/pashinin/workgroups2/issues/29#issuecomment-35995568 .
I'm just thinking if it can easily be work arounded by replace "#" with nil manually, why not just replace "#" before saving in elisp?
@redguardtoo, replacing all these symbols? Well, what if it exists somewhere in a string... If so - this is not a good a hack. I disabled this mode for now so that nobody broke their files.
Reproduced:
help-xref-stack-item is a variable defined in `help-mode.el'.
Its value is (describe-variable help-xref-stack-item #<buffer *Help*>)
Ideas how to fix this? It's a value of a variable help-xref-stack-item
that is saved and executed on restore:
(describe-variable help-xref-stack-item #<buffer *Help*>)
Invalid read syntax: "#"
Optional "buffer" parameter is needed to restore help buffer for a local variable correctly.
I think you can ignore all these buffers, in really world I usually just care about files opened. just pick a random opened file as a place holder for the sub-window.
Running master with the disabled help buffer handling now and so far so good. I was actually already working on advising wg-save-session
to kill all help buffers before saving. Like @redguardtoo, I don't really care if help buffers are restored either.
This is way late but in case it's still useful, I was running Emacs 24.3.1 and wg-default-session-file
(anything really but just an example) open in the *Help*
buffer.
Wish I could help more but my Elisp-fu is weak.
I also don't care much about help (or such) buffers. Someone may still like this feature. Ok, close it.
386c11e review and fixed bugs about special buffers (Chen Bin)
Here is one file, maybe some
#
character?