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

Reuse the old preview buffer/window such that display-buffer behaves #160

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

bram85
Copy link

@bram85 bram85 commented Sep 24, 2022

Before, the buffer is killed and then recreated. This causes wrong behavior for display-buffer when display-buffer-reuse-window and display-buffer-same-window is used: the first one fails so the same window is used where the diagram source is situated.

Instead, reuse the buffer and its window, so don't kill the buffer, erase it instead.

Before, the buffer is killed and then recreated. This causes wrong
behavior for display-buffer when display-buffer-reuse-window and
display-buffer-same-window is used: the first one fails so the same
window is used where the diagram source is situated.

Instead, reuse the buffer and its window, so don't kill the buffer,
erase it instead.
image-mode marks buffer parts as read-only, essentially disallowing (erase-buffer).
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.

1 participant