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

Pass display-buffer-mark-dedicated to purpose-change-buffer to fix br… #116

Merged
merged 1 commit into from
Aug 9, 2018

Conversation

wyuenho
Copy link
Collaborator

@wyuenho wyuenho commented Dec 29, 2017

…oken kill-buffer

This PR fixes the bug where (kill-buffer nil) doesn't kill the window when you expect it to. This problem is particularly severe for undo-tree. In particular, undo-tree-visualizer-quit will call (kill-buffer nil) to kill the visualizer window on quit. Without this fix, the undo-tree visualizer window will remain even after quitting.

@coveralls
Copy link

coveralls commented Dec 29, 2017

Coverage Status

Coverage remained the same at 67.318% when pulling 5d422f1 on wyuenho:pass-dedicated into 2655bbe on bmag:master.

@coveralls
Copy link

coveralls commented Dec 30, 2017

Coverage Status

Coverage increased (+1.05%) to 66.869% when pulling 7f021f8 on wyuenho:pass-dedicated into 8737c5d on bmag:master.

@bmag
Copy link
Owner

bmag commented Jan 2, 2018

Hey, thanks for your interest. This looks like a good contribution, but I want to test it out a bit before merging. Unfortunately, I have a busy schedule so I'm not sure that will happen.

@wyuenho
Copy link
Collaborator Author

wyuenho commented Jan 2, 2018

If you look at window.el in your emacs installation, a lot of the display-buffer-* display buffer actions pass display-buffer-mark-dedicated on. I've already kept this PR to the 2 that I know for sure is necessary for vanilla emacs. Hopefully you'll get some time to test this PR soon.

@wyuenho
Copy link
Collaborator Author

wyuenho commented May 18, 2018

@bmag How does this look now?

@bmag
Copy link
Owner

bmag commented May 18, 2018

It looks fine. I wrote (in my local clone) some tests for this, to be safe, but they failed. It was probably a problem with the tests, not the feature, but I haven't been able to resume work on it yet.

@wyuenho
Copy link
Collaborator Author

wyuenho commented May 18, 2018

Ah. Let me know if there's anything else I can help! I honestly don't know how to write tests for this.

…oken kill-buffer

Pass dedicated to pop-up-window as well
@bmag bmag merged commit 7f021f8 into bmag:master Aug 9, 2018
@bmag
Copy link
Owner

bmag commented Aug 9, 2018

Thanks, merged. Added tests in 15e6d44

@wyuenho wyuenho deleted the pass-dedicated branch August 10, 2018 20:47
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

Successfully merging this pull request may close these issues.

None yet

3 participants