{"id":1781,"date":"2013-03-11T05:18:57","date_gmt":"2013-03-11T09:18:57","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=1781"},"modified":"2013-03-11T05:18:42","modified_gmt":"2013-03-11T09:18:42","slug":"help-from-phil","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=1781","title":{"rendered":"Help From Phil"},"content":{"rendered":"<p>Regular reader Phil offers some <a href=\"http:\/\/irreal.org\/blog\/?p=1769#comment-82591\">help on help<\/a> in the comments to the <a href=\"http:\/\/irreal.org\/blog\/?p=1769\">vc-annotate<\/a> post. The first suggestion is something I think he&#8217;s mentioned before but that I promptly forgot. I often want to look at the source code that implements an Emacs command. Sometimes it&#8217;s just curiosity, other times I want to extend or modify the command or implement something similar. My normal procedure for this is to bring up the help page for the command with \u3010<kbd>Ctrl<\/kbd>+<kbd>h<\/kbd> <kbd>f<\/kbd>\u3011 and then click on the link to the source code. Actually, there&#8217;s a function that does that for you: <code>find-function<\/code>. Phil assigns the key sequence \u3010<kbd>Ctrl<\/kbd>+<kbd>h<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>f<\/kbd>\u3011 for this. I do this operation often enough that this is a real time saver for me and I&#8217;ve added it to my <code>init.el<\/code>.<\/p>\n<p>The second two commands are built in but virtually unknown. The sequence \u3010<kbd>Ctrl<\/kbd>+<kbd>h<\/kbd> <kbd>F<\/kbd>\u3011 is just like \u3010<kbd>Ctrl<\/kbd>+<kbd>h<\/kbd> <kbd>f<\/kbd>\u3011 except that it brings up the info page for the command. Similarly \u3010<kbd>Ctrl<\/kbd>+<kbd>h<\/kbd> <kbd>K<\/kbd>\u3011 brings up the info page given the key sequence for the command.<\/p>\n<p>These are really useful things to know so we all owe Phil thanks for (once again) pointing them out. Maybe now that I&#8217;ve blogged about them I&#8217;ll actually remember them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Regular reader Phil offers some help on help in the comments to the vc-annotate post. The first suggestion is something I think he&#8217;s mentioned before but that I promptly forgot. I often want to look at the source code that &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=1781\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-1781","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1781"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1781\/revisions"}],"predecessor-version":[{"id":1784,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1781\/revisions\/1784"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}