Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eproject does not play well with desktop #29

Open
trollusk opened this issue Sep 26, 2012 · 1 comment
Open

eproject does not play well with desktop #29

trollusk opened this issue Sep 26, 2012 · 1 comment

Comments

@trollusk
Copy link

The way the eproject minor mode is defined causes a problem with Emacs' desktop library.

When reloading a saved desktop, 'desktop-create-buffer' is called for each buffer that is to be recreated. Desktop remembers the name of each active minor mode from when the desktop was saved, and if that name is fbound, desktop-create-buffer calls that function in order to activate the minor mode for the buffer.

Unfortunately 'eproject-mode' is defined to raise an error when called in a new buffer (where eproject-root is null). This error brings desktop loading to a crashing halt.

Is there a good reason that eproject-mode cannot just call eproject-maybe-turn-on itself, when eproject-root is null?

EDIT: looking into it further, you should be able to fix this easily by adding eproject-mode to the variable 'desktop-minor-mode-table'.

@jrockway
Copy link
Owner

jrockway commented Oct 3, 2012

This report makes sense, but I can't reproduce it. If I have an Emacs session with some eproject buffers open, desktop-save, restart emacs (or not, doesn't matter), and desktop-read, the eproject buffers come back in a good state. Some more detail including the desktop save file would be helpful in determining what's different between our setups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants