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

Issue 202: Replace switch-to-buffer with set-buffer #205

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

alanconway
Copy link

To quote the emacs source:

(defun switch-to-buffer (buffer-or-name &optional norecord force-same-window) 
  "Display buffer BUFFER-OR-NAME in the selected window.

WARNING: This is NOT the way to work on another buffer temporarily within a Lisp program!  
Use `set-buffer' instead.  That avoids messing with the window-buffer correspondences.

To quote the emacs source:

	(defun switch-to-buffer (buffer-or-name &optional norecord force-same-window)
	  "Display buffer BUFFER-OR-NAME in the selected window.

	WARNING: This is NOT the way to work on another buffer temporarily
	within a Lisp program!  Use `set-buffer' instead.  That avoids
	messing with the window-buffer correspondences.
Copy link
Collaborator

@telotortium telotortium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. @alanconway thanks for the contribution!

@telotortium telotortium merged commit 40291be into kidd:master Aug 9, 2022
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.

2 participants