{"action":"opened","issue":{"number":26,"created_at":"2011-10-19T19:44:48Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"When switching workgroups I get this \"buffer name in use\" error quite often, not sure why. Maybe when two workgroups have a window open on the same buffer, or the new workgroup has two windows open on it.\r\n\r\nSecondly, when it happens the windows have changed to the new workgroup's layout, but you are actually still in the old workgroup. You probably won't notice and will end up saving over the old workgroup and confusing yourself.\r\n\r\nSo it would be great to have this just work. Here's a (cropped) traceback in case it helps:\r\n\r\n     Debugger entered--Lisp error: (error \"Buffer name `ANNOUNCE' is in use\") \r\n       ad-Orig-rename-buffer(\"ANNOUNCE\" nil)                                  \r\n       rename-buffer(\"ANNOUNCE\")                                              \r\n       wg-switch-to-window-buffer(((type . window) (edges 59 0 118 10) (bname \r\n       wg-restore-window(((type . window) (edges 59 0 118 10) (bname . \"ANNOUN\r\n       inner(((type . window) (edges 59 0 118 10) (bname . \"ANNOUNCE\") (fname \r\n       inner(((type . wtree) (dir . t) (edges 59 0 118 65) (wlist ((type . win\r\n       inner(((type . wtree) (dir) (edges 0 0 239 65) (wlist ((type . wtree) (\r\n       wg-restore-wtree(((type . wtree) (dir) (edges 0 0 239 65) (wlist ((type\r\n       wg-restore-wconfig(((type . wconfig) (left . 3) (top . 22) (width . 236\r\n       wg-restore-workgroup(((type . workgroup) (uid . 52) (name . \"hledger do\r\n       wg-switch-to-workgroup(((type . workgroup) (uid . 52) (name . \"hledger \r\n       call-interactively(wg-switch-to-workgroup nil nil)                     \r\n","comments":0,"title":"\"buffer name X is in use\" error disrupts workgroup switch","updated_at":"2011-10-19T19:44:48Z","url":"https://api.github.com/repos/tlh/workgroups.el/issues/26","id":1997735,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/0c2b1161102f87a1d710bb391f0d6fd0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"0c2b1161102f87a1d710bb391f0d6fd0","url":"https://api.github.com/users/simonmichael","id":10144,"login":"simonmichael"},"html_url":"https://github.com/tlh/workgroups.el/issues/26","labels":[],"state":"open"},"legacy":{"number":26,"action":"opened","issue":1997735}}