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

Restore buffer-list after counsel-switch-buffers #1954

Closed

Conversation

@flatwhatson
Copy link
Contributor

@flatwhatson flatwhatson commented Mar 8, 2019

Previewing the buffers calls switch-to-buffer without the NORECORD flag, so the buffer-list is modified (previewed buffers are bumped up the list). This change keeps a backup of buffer-list and restores it during unwind.

Copyright: I believe this change is small enough to not be "legally significant". I'm currently in the process of sorting out copyright assignment.

Previewing the buffers calls `switch-to-buffer` without the NORECORD
flag, so the buffer-list is modified (previewed buffers are bumped up
the list).  This change keeps a backup of buffer-list and restores it
during unwind.
@abo-abo
Copy link
Owner

@abo-abo abo-abo commented Mar 8, 2019

Thanks.

astoff added a commit to astoff/swiper that referenced this issue Jan 1, 2021
Previewing the buffers calls `switch-to-buffer` without the NORECORD
flag, so the buffer-list is modified (previewed buffers are bumped up
the list).  This change keeps a backup of buffer-list and restores it
during unwind.

Fixes abo-abo#1954
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants