{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/2920","labels_url":"https://api.github.com/repos/neovim/neovim/issues/2920/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/2920/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/2920/events","html_url":"https://github.com/neovim/neovim/pull/2920","id":91598035,"number":2920,"title":"[RDY] rplugin: pass additional info to host factory function","user":{"login":"nhynes","id":2353785,"avatar_url":"https://avatars.githubusercontent.com/u/2353785?v=3","gravatar_id":"","url":"https://api.github.com/users/nhynes","html_url":"https://github.com/nhynes","followers_url":"https://api.github.com/users/nhynes/followers","following_url":"https://api.github.com/users/nhynes/following{/other_user}","gists_url":"https://api.github.com/users/nhynes/gists{/gist_id}","starred_url":"https://api.github.com/users/nhynes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhynes/subscriptions","organizations_url":"https://api.github.com/users/nhynes/orgs","repos_url":"https://api.github.com/users/nhynes/repos","events_url":"https://api.github.com/users/nhynes/events{/privacy}","received_events_url":"https://api.github.com/users/nhynes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/provider","name":"provider","color":"fad8c7"},{"url":"https://api.github.com/repos/neovim/neovim/labels/RDY","name":"RDY","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-28T13:07:25Z","updated_at":"2015-07-03T15:44:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/2920","html_url":"https://github.com/neovim/neovim/pull/2920","diff_url":"https://github.com/neovim/neovim/pull/2920.diff","patch_url":"https://github.com/neovim/neovim/pull/2920.patch"},"body":"This is a followup to #2896 that passes additional information to the host factory function.\r\n\r\nThe rationale is that most factories will want to know the original name of the host (i.e. sans \"-registration-clone\"). As it stands, however, this information is only easily accessible from the `s:hosts` dictionary and would otherwise need to be determined from `a:name` using calls to `match`. Passing select members of `s:hosts[name]` as the sole argument provides the required information while preventing exposure of internal state and maintaining backwards compatibility should additional information be added.\r\n\r\nThis change will not significantly affect any existing hosts due to the recency of #2898 being merged."},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/118378339","html_url":"https://github.com/neovim/neovim/pull/2920#issuecomment-118378339","issue_url":"https://api.github.com/repos/neovim/neovim/issues/2920","id":118378339,"user":{"login":"bfredl","id":1363104,"avatar_url":"https://avatars.githubusercontent.com/u/1363104?v=3","gravatar_id":"","url":"https://api.github.com/users/bfredl","html_url":"https://github.com/bfredl","followers_url":"https://api.github.com/users/bfredl/followers","following_url":"https://api.github.com/users/bfredl/following{/other_user}","gists_url":"https://api.github.com/users/bfredl/gists{/gist_id}","starred_url":"https://api.github.com/users/bfredl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfredl/subscriptions","organizations_url":"https://api.github.com/users/bfredl/orgs","repos_url":"https://api.github.com/users/bfredl/repos","events_url":"https://api.github.com/users/bfredl/events{/privacy}","received_events_url":"https://api.github.com/users/bfredl/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T15:44:32Z","updated_at":"2015-07-03T15:44:32Z","body":"No it is not blocking. I will open separate PR for that issue."}}