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

Problem with non-file buffers #6

Open
trollusk opened this issue Mar 11, 2010 · 3 comments
Open

Problem with non-file buffers #6

trollusk opened this issue Mar 11, 2010 · 3 comments

Comments

@trollusk
Copy link

There is a bug in eproject--selector. It assumes that every buffer where 'eproject-maybe-turn-on' is invoked, must be a file. I am using SLIME (emacs mode for common lisp programming). I have defined a "common-lisp project" like this:

(define-project-type common-lisp (generic) (look-for "*.asd" :glob)
:relevant-files '(".lisp$" ".lsp$" ".asd$"))
(add-hook 'lisp-mode-hook 'eproject-maybe-turn-on)

Slime creates non-file buffers that are still 'lisp mode', such as SLIME Macroexpansion. Eproject prevents interactive macroexpansion because of the error raised when it finds the new buffer is not a file.

I think it should just do nothing silently when it tries to 'turn on' and finds the buffer is not a file.

@julienfantin
Copy link

I'm having the same issue with sunrise-commander

@escherdragon
Copy link
Contributor

The resolution for this problem wrt sunrise-commander has been included in issue #23

@thomasf
Copy link
Contributor

thomasf commented Oct 14, 2012

I agree that a silent fail probably would be better at all times.
I have used this wrapped version for some time now and haven't experienced any bad consequences at all.

  (defun my-eproject-maybe-turn-on ()
      "Ignores errors"
      (interactive)
      (condition-case msg
          (eproject-maybe-turn-on)
        (error (message "Ignored eproject-maybe-turn-on error: %s" msg))))

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

4 participants