{"action":"created","issue":{"url":"https://api.github.com/repos/gap-system/gap/issues/755","repository_url":"https://api.github.com/repos/gap-system/gap","labels_url":"https://api.github.com/repos/gap-system/gap/issues/755/labels{/name}","comments_url":"https://api.github.com/repos/gap-system/gap/issues/755/comments","events_url":"https://api.github.com/repos/gap-system/gap/issues/755/events","html_url":"https://github.com/gap-system/gap/pull/755","id":149431061,"number":755,"title":"Show files/location for compiled functions","user":{"login":"ChrisJefferson","id":811527,"avatar_url":"https://avatars.githubusercontent.com/u/811527?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisJefferson","html_url":"https://github.com/ChrisJefferson","followers_url":"https://api.github.com/users/ChrisJefferson/followers","following_url":"https://api.github.com/users/ChrisJefferson/following{/other_user}","gists_url":"https://api.github.com/users/ChrisJefferson/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisJefferson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisJefferson/subscriptions","organizations_url":"https://api.github.com/users/ChrisJefferson/orgs","repos_url":"https://api.github.com/users/ChrisJefferson/repos","events_url":"https://api.github.com/users/ChrisJefferson/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisJefferson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-19T11:30:49Z","updated_at":"2016-04-19T13:04:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gap-system/gap/pulls/755","html_url":"https://github.com/gap-system/gap/pull/755","diff_url":"https://github.com/gap-system/gap/pull/755.diff","patch_url":"https://github.com/gap-system/gap/pull/755.patch"},"body":"This patch makes GAP show information about where kernel or compiled functions come from. This is best illustrated by an example! `RETURN_FIRST` is a kernel function, `RunImmediateMethods` and `InstallMethod` are both from oper1.g, which is compiled.\r\n\r\n```\r\ngap> Display(RETURN_FIRST);\r\nfunction ( object... )\r\n    <<kernel or compiled code from src/gap.c:RETURN_FIRST>>\r\nend\r\ngap> Display(RunImmediateMethods);\r\nfunction ( <<arg-1>>, <<arg-2>> )\r\n    <<kernel or compiled code from GAPROOT/lib/oper1.g:26>>\r\nend\r\ngap> Display(InstallMethod);\r\nfunction ( <<arg-1>>... )\r\n    <<kernel or compiled code from GAPROOT/lib/oper1.g:282>>\r\nend\r\n```\r\n\r\nFor compiled GAP code, we already knew this info, we just weren't displaying it. For C functions, I use the 'cookie' value, which is usually set by convention to `filename:Cfunction`. We should probably document that we are now using the cookie information for this purpose (if the cookie doesn't have a `:` in it, we just ignore it and don't try to extract filename/function information).\r\n"},"comment":{"url":"https://api.github.com/repos/gap-system/gap/issues/comments/211916587","html_url":"https://github.com/gap-system/gap/pull/755#issuecomment-211916587","issue_url":"https://api.github.com/repos/gap-system/gap/issues/755","id":211916587,"user":{"login":"alex-konovalov","id":5751387,"avatar_url":"https://avatars.githubusercontent.com/u/5751387?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-konovalov","html_url":"https://github.com/alex-konovalov","followers_url":"https://api.github.com/users/alex-konovalov/followers","following_url":"https://api.github.com/users/alex-konovalov/following{/other_user}","gists_url":"https://api.github.com/users/alex-konovalov/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-konovalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-konovalov/subscriptions","organizations_url":"https://api.github.com/users/alex-konovalov/orgs","repos_url":"https://api.github.com/users/alex-konovalov/repos","events_url":"https://api.github.com/users/alex-konovalov/events{/privacy}","received_events_url":"https://api.github.com/users/alex-konovalov/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T13:04:14Z","updated_at":"2016-04-19T13:04:14Z","body":"Looks nice. Is there a way now to distinguish between the kernel and compiled code by its location and show e.g.\r\n```\r\n    <<kernel code from src/gap.c:RETURN_FIRST>>\r\n```\r\nand\r\n```\r\n    <<compiled code from GAPROOT/lib/oper1.g:26>>\r\n```\r\n?"}}