{"id":6868,"date":"2018-01-05T15:09:00","date_gmt":"2018-01-05T20:09:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=6868"},"modified":"2018-01-05T15:09:45","modified_gmt":"2018-01-05T20:09:45","slug":"frame-peek","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=6868","title":{"rendered":"Frame Peek"},"content":{"rendered":"<p> As part of his <a href=\"http:\/\/tuhdo.github.io\/index.html\">Emacs mini manual series<\/a>, tuhdo introduces an interesting idea for quickly looking at, say, a function definition. There are lots of ways of doing that, of course, and tuhdo isn&rsquo;t advocating any particular one or eve a new one. Rather, you can think of his suggestion as <a href=\"http:\/\/tuhdo.github.io\/emacs-frame-peek.html\">providing a framework for quick-look systems<\/a>. <\/p>\n<p> To understand what that means, you first have to understand what tuhdo sees as the problem with the way current systems work. Some of them pop up a little subwindow with the required definition but the space is delimited and there&rsquo;s probably no font locking or other amenities that we&rsquo;re used to having with buffers. Others open a new buffer either in the same or another window. That can also be annoying even if it opens the new buffer in a different window because that window may also hold useful information that you want to see. Finally, a long string of nested such lookups can mean that you lose your place and have to search for your original buffer. <\/p>\n<p> Tuhdo&rsquo;s idea is to pop up a new frame positioned right under the symbol at point, use whatever quick-look mechanism you prefer\u2014his demo uses the <code>rtags-find-symbol-at-point<\/code> function\u2014and display that definition in a buffer in the new frame. That means the &ldquo;popup&rdquo; has all the capabilities of a normal buffer and it&rsquo;s easy to nest calls without losing your way. You merely delete the frames to unwind the calls in a natural way. <\/p>\n<p> Take a look his demo at the link. It makes all this clear and shows how natural and easy it is to use. It doesn&rsquo;t take much code to do this. Tuhdo shows the code for using <code>rtags<\/code>, which you can just cut and paste into your <code>init.el<\/code>. If you use some other system, it should be easy to adapt. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>As part of his Emacs mini manual series, tuhdo introduces an interesting idea for quickly looking at, say, a function definition. There are lots of ways of doing that, of course, and tuhdo isn&rsquo;t advocating any particular one or eve &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=6868\">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-6868","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\/6868","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=6868"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6868\/revisions"}],"predecessor-version":[{"id":6869,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6868\/revisions\/6869"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}