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

setq: End of file during parsing #23

Closed
benma opened this issue Sep 3, 2012 · 8 comments
Closed

setq: End of file during parsing #23

benma opened this issue Sep 3, 2012 · 8 comments

Comments

@benma
Copy link

benma commented Sep 3, 2012

Hi

I start emacs with emacs -q -l smex.el (so no other modules are loaded). M-x smex-intitalize fails with setq: End of file during parsing.

Emacs version: 24.1.1.

Do you know what causes this? If not, I can dig into it sometime.

@nonsequitur
Copy link
Owner

Which Smex version do you use? Check the version info at the beginning of smex.el.

Please post a backtrace:

  1. Run M-x toggle-debug-on-error
  2. A backtrace buffer will now pop up when an Emacs error occurs. Post the backtrace for the 'End of file during parsing' error.

@benma
Copy link
Author

benma commented Sep 4, 2012

Smex version 1.1.1, although the problem also exists with 1.1.4. I used smex for a long time with no issue, the problem started appearing only last week or so. Not sure how this is possible

Unfortunately, toggle-debug-on-error did nothing. The messages buffer says

Debug on Error enabled globally
setq: End of file during parsing

No new buffers appeared which could contain the trace.

@nonsequitur
Copy link
Owner

I used smex for a long time with no issue, the problem started appearing only last week or so.

That indicates that something in your Emacs environment has changed.
Try reverting to the last working state to see where the bug was introduced.

Vanilla Emacs 24.1.1 plus emacs -q -l smex.el and M-x smex-intitalize runs without errors.

@benma
Copy link
Author

benma commented Sep 4, 2012

I investigated further and found out that the root of the problem was that I had a ".smex-items" file in my home directory that was empty. I deleted it, now it works fine again. I don't know how this file came to be. If it happens again, I will report back so we can find out.

Thanks for your time.

@benma benma closed this as completed Sep 4, 2012
@til
Copy link

til commented Sep 12, 2012

This happened to me too yesterday, with no obvious changes to my environment as far as I can see. After removing the ~/.smex-items file everything worked fine again.

@nonsequitur
Copy link
Owner

I've added a fix to ignore empty save files, but I still have no idea how they could appear in the first place.

Did your save files suddenly become empty or were you just getting started with Smex?

@benma
Copy link
Author

benma commented Sep 15, 2012

In my case, they became empty. Smex has been working with no problems for years before.

@til
Copy link

til commented Sep 16, 2012

Same here - I have been using smex for years, and the file suddenly
became empty.

I have another computer with mostly the same setup and there the file is
not empty: it contains two parts of lisp code, separated by comments
smex-history and smex-data.

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

3 participants