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

popupwin broke with-temp-buffer body commands context #87

Open
proofit404 opened this issue Mar 25, 2013 · 0 comments
Open

popupwin broke with-temp-buffer body commands context #87

proofit404 opened this issue Mar 25, 2013 · 0 comments

Comments

@proofit404
Copy link

Here is my test .emacs file:

(require 'cl)
(add-to-list 'load-path "~/.emacs.d/repository/popwin-el")
(require 'popwin)
(setq display-buffer-function 'popwin:display-buffer)
(dolist (buff '("*Buffer List*" "*Process List*" "*Async Shell Command*"))
  (pushnew buff popwin:special-display-config :test #'equal))

Now launch emacs and open some file with C-xC-f

~/my_rails_blog_example/app/view/layouts/application.html.erb

Then eval following emacs lisp code with M-:

(with-temp-buffer
  (cd "~/my_rails_blog_example")
  (async-shell-command "rails s"))

This'll result into running rail server in popup window with focus sets to it. Now kill running command via C-cC-c and eval lisp code above ones again from the Async Shell Command buffer. Its change default dirrentory in application.html.erb buffer instead of current and change its mode into Shell:no process. This meens that popupwin broke with-temp-buffer command context and switch current buffer into application.html.erb back.

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

No branches or pull requests

1 participant