kidd / org-gcal.el

Org sync with Google Calendar. (active maintained project as of 2019-11-06)
432 stars 47 forks source link

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

Closed alanconway closed 2 years ago

alanconway commented 2 years ago

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.