{"action":"created","comment":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/38971791","id":38971791,"diff_hunk":"@@ -95,9 +95,49 @@ function doc(obj)\n     end\n end\n \n+function macrosummary(name::Symbol, func::Function)\n+    parts = [\"\"\"\n+\n+    No documentation found.\n+    \"\"\"]\n+    if isdefined(func,:code) && func.code != nothing\n+        lam = Base.uncompressed_ast(func.code)\n+        io  = IOBuffer()\n+        write(io, name, '(')\n+        nargs = length(lam.args[1])\n+        for (i,arg) in enumerate(lam.args[1])\n+            argname, argtype = arg.args\n+            if argtype === :Any || argtype === :ANY\n+                write(io, argname)\n+            elseif isa(argtype,Expr) && argtype.head === :... &&\n+                   (argtype.args[end] === :Any || argtype.args[end] === :ANY)\n+                write(io, argname, \"...\")\n+            else\n+                write(io, argname, \"::\", argtype)\n+            end\n+            i < nargs && write(io, ',')\n+        end\n+        write(io, ')')\n+        push!(parts, string(\"```julia\\n\", takebuf_string(io), \"\\n```\"))\n+    end\n+    Markdown.parse(join(parts,'\\n'))\n+end\n+\n function doc(b::Binding)\n     d = invoke(doc, Tuple{Any}, b)\n-    d == nothing ? doc(getfield(b.mod, b.var)) : d\n+    if d == nothing\n+        v = getfield(b.mod,b.var)","path":"base/docs/Docs.jl","position":36,"original_position":36,"commit_id":"eae68bf544c168070e789311fdc45057938a966b","original_commit_id":"eae68bf544c168070e789311fdc45057938a966b","user":{"login":"mbauman","id":154641,"avatar_url":"https://avatars.githubusercontent.com/u/154641?v=3","gravatar_id":"","url":"https://api.github.com/users/mbauman","html_url":"https://github.com/mbauman","followers_url":"https://api.github.com/users/mbauman/followers","following_url":"https://api.github.com/users/mbauman/following{/other_user}","gists_url":"https://api.github.com/users/mbauman/gists{/gist_id}","starred_url":"https://api.github.com/users/mbauman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbauman/subscriptions","organizations_url":"https://api.github.com/users/mbauman/orgs","repos_url":"https://api.github.com/users/mbauman/repos","events_url":"https://api.github.com/users/mbauman/events{/privacy}","received_events_url":"https://api.github.com/users/mbauman/received_events","type":"User","site_admin":false},"body":"Is there any chance that this might not be defined?","created_at":"2015-09-08T19:55:47Z","updated_at":"2015-09-08T19:55:47Z","html_url":"https://github.com/JuliaLang/julia/pull/13013#discussion_r38971791","pull_request_url":"https://api.github.com/repos/JuliaLang/julia/pulls/13013","_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/38971791"},"html":{"href":"https://github.com/JuliaLang/julia/pull/13013#discussion_r38971791"},"pull_request":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/13013"}}},"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/13013","id":44389002,"html_url":"https://github.com/JuliaLang/julia/pull/13013","diff_url":"https://github.com/JuliaLang/julia/pull/13013.diff","patch_url":"https://github.com/JuliaLang/julia/pull/13013.patch","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/13013","number":13013,"state":"open","locked":false,"title":"Print the value's type help for undocumented bindings","user":{"login":"jakebolewski","id":1157798,"avatar_url":"https://avatars.githubusercontent.com/u/1157798?v=3","gravatar_id":"","url":"https://api.github.com/users/jakebolewski","html_url":"https://github.com/jakebolewski","followers_url":"https://api.github.com/users/jakebolewski/followers","following_url":"https://api.github.com/users/jakebolewski/following{/other_user}","gists_url":"https://api.github.com/users/jakebolewski/gists{/gist_id}","starred_url":"https://api.github.com/users/jakebolewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakebolewski/subscriptions","organizations_url":"https://api.github.com/users/jakebolewski/orgs","repos_url":"https://api.github.com/users/jakebolewski/repos","events_url":"https://api.github.com/users/jakebolewski/events{/privacy}","received_events_url":"https://api.github.com/users/jakebolewski/received_events","type":"User","site_admin":false},"body":"exclude macros as this is just exposing their internals\r\n\r\ncloses #13002\r\n\r\ncc @mbauman ","created_at":"2015-09-08T03:01:01Z","updated_at":"2015-09-08T19:55:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77657096f29c0412abe1d5692fc0b09aa3322924","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JuliaLang/julia/pulls/13013/commits","review_comments_url":"https://api.github.com/repos/JuliaLang/julia/pulls/13013/comments","review_comment_url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/13013/comments","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/eae68bf544c168070e789311fdc45057938a966b","head":{"label":"JuliaLang:jcb/13002","ref":"jcb/13002","sha":"eae68bf544c168070e789311fdc45057938a966b","user":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"repo":{"id":1644196,"name":"julia","full_name":"JuliaLang/julia","owner":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaLang/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":false,"url":"https://api.github.com/repos/JuliaLang/julia","forks_url":"https://api.github.com/repos/JuliaLang/julia/forks","keys_url":"https://api.github.com/repos/JuliaLang/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaLang/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaLang/julia/teams","hooks_url":"https://api.github.com/repos/JuliaLang/julia/hooks","issue_events_url":"https://api.github.com/repos/JuliaLang/julia/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaLang/julia/events","assignees_url":"https://api.github.com/repos/JuliaLang/julia/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaLang/julia/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaLang/julia/tags","blobs_url":"https://api.github.com/repos/JuliaLang/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaLang/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaLang/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaLang/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaLang/julia/languages","stargazers_url":"https://api.github.com/repos/JuliaLang/julia/stargazers","contributors_url":"https://api.github.com/repos/JuliaLang/julia/contributors","subscribers_url":"https://api.github.com/repos/JuliaLang/julia/subscribers","subscription_url":"https://api.github.com/repos/JuliaLang/julia/subscription","commits_url":"https://api.github.com/repos/JuliaLang/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaLang/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaLang/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaLang/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaLang/julia/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaLang/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaLang/julia/merges","archive_url":"https://api.github.com/repos/JuliaLang/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaLang/julia/downloads","issues_url":"https://api.github.com/repos/JuliaLang/julia/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaLang/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaLang/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaLang/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaLang/julia/labels{/name}","releases_url":"https://api.github.com/repos/JuliaLang/julia/releases{/id}","created_at":"2011-04-21T07:01:50Z","updated_at":"2015-09-08T18:30:40Z","pushed_at":"2015-09-08T19:14:34Z","git_url":"git://github.com/JuliaLang/julia.git","ssh_url":"git@github.com:JuliaLang/julia.git","clone_url":"https://github.com/JuliaLang/julia.git","svn_url":"https://github.com/JuliaLang/julia","homepage":"http://julialang.org/","size":221688,"stargazers_count":5958,"watchers_count":5958,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1302,"mirror_url":null,"open_issues_count":1367,"forks":1302,"open_issues":1367,"watchers":5958,"default_branch":"master"}},"base":{"label":"JuliaLang:master","ref":"master","sha":"c2527882686e15f949b7f460ba71d5bdeeb362c0","user":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"repo":{"id":1644196,"name":"julia","full_name":"JuliaLang/julia","owner":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaLang/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":false,"url":"https://api.github.com/repos/JuliaLang/julia","forks_url":"https://api.github.com/repos/JuliaLang/julia/forks","keys_url":"https://api.github.com/repos/JuliaLang/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaLang/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaLang/julia/teams","hooks_url":"https://api.github.com/repos/JuliaLang/julia/hooks","issue_events_url":"https://api.github.com/repos/JuliaLang/julia/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaLang/julia/events","assignees_url":"https://api.github.com/repos/JuliaLang/julia/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaLang/julia/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaLang/julia/tags","blobs_url":"https://api.github.com/repos/JuliaLang/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaLang/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaLang/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaLang/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaLang/julia/languages","stargazers_url":"https://api.github.com/repos/JuliaLang/julia/stargazers","contributors_url":"https://api.github.com/repos/JuliaLang/julia/contributors","subscribers_url":"https://api.github.com/repos/JuliaLang/julia/subscribers","subscription_url":"https://api.github.com/repos/JuliaLang/julia/subscription","commits_url":"https://api.github.com/repos/JuliaLang/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaLang/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaLang/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaLang/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaLang/julia/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaLang/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaLang/julia/merges","archive_url":"https://api.github.com/repos/JuliaLang/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaLang/julia/downloads","issues_url":"https://api.github.com/repos/JuliaLang/julia/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaLang/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaLang/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaLang/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaLang/julia/labels{/name}","releases_url":"https://api.github.com/repos/JuliaLang/julia/releases{/id}","created_at":"2011-04-21T07:01:50Z","updated_at":"2015-09-08T18:30:40Z","pushed_at":"2015-09-08T19:14:34Z","git_url":"git://github.com/JuliaLang/julia.git","ssh_url":"git@github.com:JuliaLang/julia.git","clone_url":"https://github.com/JuliaLang/julia.git","svn_url":"https://github.com/JuliaLang/julia","homepage":"http://julialang.org/","size":221688,"stargazers_count":5958,"watchers_count":5958,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1302,"mirror_url":null,"open_issues_count":1367,"forks":1302,"open_issues":1367,"watchers":5958,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/13013"},"html":{"href":"https://github.com/JuliaLang/julia/pull/13013"},"issue":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/13013"},"comments":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/13013/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/13013/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/13013/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaLang/julia/statuses/eae68bf544c168070e789311fdc45057938a966b"}}}}