{"action":"created","issue":{"url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/984","repository_url":"https://api.github.com/repos/jorgenschaefer/elpy","labels_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/984/labels{/name}","comments_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/984/comments","events_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/984/events","html_url":"https://github.com/jorgenschaefer/elpy/issues/984","id":177642571,"number":984,"title":"Make C-c C-z remember the location jumped from to jump back to","user":{"login":"JunnanZ","id":11328339,"avatar_url":"https://avatars.githubusercontent.com/u/11328339?v=3","gravatar_id":"","url":"https://api.github.com/users/JunnanZ","html_url":"https://github.com/JunnanZ","followers_url":"https://api.github.com/users/JunnanZ/followers","following_url":"https://api.github.com/users/JunnanZ/following{/other_user}","gists_url":"https://api.github.com/users/JunnanZ/gists{/gist_id}","starred_url":"https://api.github.com/users/JunnanZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JunnanZ/subscriptions","organizations_url":"https://api.github.com/users/JunnanZ/orgs","repos_url":"https://api.github.com/users/JunnanZ/repos","events_url":"https://api.github.com/users/JunnanZ/events{/privacy}","received_events_url":"https://api.github.com/users/JunnanZ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jorgenschaefer/elpy/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jorgenschaefer/elpy/milestones/13","html_url":"https://github.com/jorgenschaefer/elpy/milestones/Backlog","labels_url":"https://api.github.com/repos/jorgenschaefer/elpy/milestones/13/labels","id":763411,"number":13,"title":"Backlog","description":"","creator":{"login":"jorgenschaefer","id":2500270,"avatar_url":"https://avatars.githubusercontent.com/u/2500270?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgenschaefer","html_url":"https://github.com/jorgenschaefer","followers_url":"https://api.github.com/users/jorgenschaefer/followers","following_url":"https://api.github.com/users/jorgenschaefer/following{/other_user}","gists_url":"https://api.github.com/users/jorgenschaefer/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgenschaefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgenschaefer/subscriptions","organizations_url":"https://api.github.com/users/jorgenschaefer/orgs","repos_url":"https://api.github.com/users/jorgenschaefer/repos","events_url":"https://api.github.com/users/jorgenschaefer/events{/privacy}","received_events_url":"https://api.github.com/users/jorgenschaefer/received_events","type":"User","site_admin":false},"open_issues":96,"closed_issues":19,"state":"open","created_at":"2014-08-23T15:57:45Z","updated_at":"2016-09-23T06:28:46Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-09-18T09:53:21Z","updated_at":"2016-09-30T02:17:22Z","closed_at":null,"body":"Hi,\r\n\r\nWhen I'm in the inferior python buffer and press C-c C-z, it should jump to the last viewed python script buffer, but it seems to jump to any buffer I last viewed. The elisp code also proves that:\r\n```\r\n(defun elpy-shell-switch-to-buffer ()\r\n  \"Switch from inferior Python process buffer to recent Python buffer.\"\r\n  (interactive)\r\n  (pop-to-buffer (other-buffer (current-buffer) 1)))\r\n```\r\nI think it would be easy to filter the buffer list and only pop to the first item in the list which is python mode, or something like that. However, I'm not familiar with elisp, so would you mind providing a refined version of this function?\r\n\r\nMany thanks."},"comment":{"url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/comments/250642402","html_url":"https://github.com/jorgenschaefer/elpy/issues/984#issuecomment-250642402","issue_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/984","id":250642402,"user":{"login":"gopar","id":1545083,"avatar_url":"https://avatars.githubusercontent.com/u/1545083?v=3","gravatar_id":"","url":"https://api.github.com/users/gopar","html_url":"https://github.com/gopar","followers_url":"https://api.github.com/users/gopar/followers","following_url":"https://api.github.com/users/gopar/following{/other_user}","gists_url":"https://api.github.com/users/gopar/gists{/gist_id}","starred_url":"https://api.github.com/users/gopar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopar/subscriptions","organizations_url":"https://api.github.com/users/gopar/orgs","repos_url":"https://api.github.com/users/gopar/repos","events_url":"https://api.github.com/users/gopar/events{/privacy}","received_events_url":"https://api.github.com/users/gopar/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T02:17:22Z","updated_at":"2016-09-30T02:17:22Z","body":"Personally, I'd prefer (3) since if you're calling the shell from a py buffer, you most likely want to jump back to it. I can create an PR if interested. "}}
{"actor":{"display_login":"gopar"}}