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

eshell does not exit with ranger #174

Closed
srustamo opened this issue Nov 17, 2017 · 5 comments
Closed

eshell does not exit with ranger #174

srustamo opened this issue Nov 17, 2017 · 5 comments

Comments

@srustamo
Copy link

Typing exit in 'eshell' buffer does not exit eshell and gives this error:

Debugger entered--Lisp error: (wrong-type-argument window-live-p ranger-window)
  #<subr select-window>(ranger-window nil)
  ad-Advice-select-window(#<subr select-window> ranger-window)
  apply(ad-Advice-select-window #<subr select-window> ranger-window)
  select-window(ranger-window)
  (lambda nil (unless (one-window-p) (delete-window)) (select-window (quote ranger-window)))()
  run-hooks(eshell-exit-hook)
  eshell-kill-buffer-function()
  kill-buffer(#<buffer *eshell*>)
  eshell-life-is-too-much()
  eshell-send-input(nil)
  funcall-interactively(eshell-send-input nil)
  call-interactively(eshell-send-input nil nil)
  command-execute(eshell-send-input)
@srustamo
Copy link
Author

Looks like it was a local issue.

@aryadev
Copy link

aryadev commented Jun 24, 2018

@srustamo so what was the fix? I get this on both Windows and Linux.

@srustamo
Copy link
Author

Sorry, it's been a while, can't remember the context. I tried it right now on 26.1. `eshell' exits without error.

@kamysheblid
Copy link

kamysheblid commented May 11, 2021

The problem is this addition to the eshell-exit-hook

https://github.com/ralesi/ranger.el/blob/2498519cb21dcd5791d240607a72a204d1761668/ranger.el#L1171-L1173

I think the error is from (select-window 'ranger-window). It probably isnt supposed to have a quote since it is referring to a window object stored in the symbol ranger-window.
Removing the quote in my ranger.el fixed the issue.

Can be fixed by merging my pr #232

@saucoide
Copy link

I tried kamysheblid pr and it solves the bug for me, any chance to get #232 merged?

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