{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/2499","repository_url":"https://api.github.com/repos/clojure-emacs/cider","labels_url":"https://api.github.com/repos/clojure-emacs/cider/issues/2499/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/cider/issues/2499/comments","events_url":"https://api.github.com/repos/clojure-emacs/cider/issues/2499/events","html_url":"https://github.com/clojure-emacs/cider/issues/2499","id":375036811,"node_id":"MDU6SXNzdWUzNzUwMzY4MTE=","number":2499,"title":"Option to find definition in same window","user":{"login":"simon-katz","id":823295,"node_id":"MDQ6VXNlcjgyMzI5NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/823295?v=4","gravatar_id":"","url":"https://api.github.com/users/simon-katz","html_url":"https://github.com/simon-katz","followers_url":"https://api.github.com/users/simon-katz/followers","following_url":"https://api.github.com/users/simon-katz/following{/other_user}","gists_url":"https://api.github.com/users/simon-katz/gists{/gist_id}","starred_url":"https://api.github.com/users/simon-katz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon-katz/subscriptions","organizations_url":"https://api.github.com/users/simon-katz/orgs","repos_url":"https://api.github.com/users/simon-katz/repos","events_url":"https://api.github.com/users/simon-katz/events{/privacy}","received_events_url":"https://api.github.com/users/simon-katz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-29T14:15:49Z","updated_at":"2018-12-28T20:12:45Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When I hit M-. or similar to find a definition, if the buffer containing the definition is already being displayed in another window of the current frame, CIDER switches to that window.\r\n\r\nI find this annoying. I prefer that the current window always be used.\r\n\r\nWould it be possible to have an option for this?\r\n\r\nFWIW, I have a hack that gives me what I want. It arranges for `cider-jump-to` to call `switch-to-buffer` instead of `pop-to-buffer`:\r\n\r\n```\r\n(defvar *nomis/cider-jump-to/reuse-selected-window?* nil)\r\n\r\n(let* ((advice-name '-nomis/cider/replace-pop-to-buffer-within-cider-jump-to))\r\n  (advice-add 'cider-jump-to\r\n              :around\r\n              (lambda (orig-fun &rest args)\r\n                (let* ((*nomis/cider-jump-to/reuse-selected-window?* t))\r\n                  (apply orig-fun args)))\r\n              `((name . ,advice-name)))\r\n  (advice-add 'pop-to-buffer\r\n              :around\r\n              (lambda (orig-fun buffer &rest other-args)\r\n                (if *nomis/cider-jump-to/reuse-selected-window?*\r\n                    (switch-to-buffer buffer nil t)\r\n                  (apply orig-fun buffer other-args)))\r\n              `((name . ,advice-name))))\r\n```"},"comment":{"url":"https://api.github.com/repos/clojure-emacs/cider/issues/comments/450420139","html_url":"https://github.com/clojure-emacs/cider/issues/2499#issuecomment-450420139","issue_url":"https://api.github.com/repos/clojure-emacs/cider/issues/2499","id":450420139,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDQyMDEzOQ==","user":{"login":"simon-katz","id":823295,"node_id":"MDQ6VXNlcjgyMzI5NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/823295?v=4","gravatar_id":"","url":"https://api.github.com/users/simon-katz","html_url":"https://github.com/simon-katz","followers_url":"https://api.github.com/users/simon-katz/followers","following_url":"https://api.github.com/users/simon-katz/following{/other_user}","gists_url":"https://api.github.com/users/simon-katz/gists{/gist_id}","starred_url":"https://api.github.com/users/simon-katz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon-katz/subscriptions","organizations_url":"https://api.github.com/users/simon-katz/orgs","repos_url":"https://api.github.com/users/simon-katz/repos","events_url":"https://api.github.com/users/simon-katz/events{/privacy}","received_events_url":"https://api.github.com/users/simon-katz/received_events","type":"User","site_admin":false},"created_at":"2018-12-28T20:12:45Z","updated_at":"2018-12-28T20:12:45Z","author_association":"CONTRIBUTOR","body":"I think customization of the action functions would give me what I want.\r\n\r\nBTW, maybe I should have mentioned that M-. in an Emacs Lisp buffer does do what I want."}}
{"actor":{"display_login":"simon-katz"}}