{"id":9593,"date":"2021-04-01T14:57:53","date_gmt":"2021-04-01T18:57:53","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=9593"},"modified":"2021-04-01T14:57:53","modified_gmt":"2021-04-01T18:57:53","slug":"the-interactive-declaration-and-modes","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=9593","title":{"rendered":"The Interactive Declaration and Modes"},"content":{"rendered":"<p>Something that every Emacser knows is that learning Emacs is a lifelong journey. Even after years of use, we\u2019re always discovering something new. Marcin \u2018mbork\u2019 Borkowski is always discovering new things and, happily, sharing them with the rest of us.<\/p>\n<p>His <a href=\"http:\/\/mbork.pl\/2021-03-27_The_interactive_clause_and_modes\">latest discovery<\/a> actually <i>is<\/i> something new. So new it hasn\u2019t been officially released yet. Borkowski, being more courageous than I, doesn\u2019t bother with releases; he simply compiles Master every once in while. The discovery is that the <code>interactive<\/code> declaration can now take extra arguments that specify which modes the function is valid for.<\/p>\n<p>Functions with such a declaration  appear in the <code>describe-mode<\/code> listing for any of the specified modes and it\u2019s easy to arrange for the function not to be considered for completion when not in one of the specified modes.<\/p>\n<p>Head on over to Borkowski\u2019s post for the full story. He says that it should be in 27.2 but as far as I can tell, it isn\u2019t. It looks as if it will be a helpful addition to the Emacs toolset.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Something that every Emacser knows is that learning Emacs is a lifelong journey. Even after years of use, we\u2019re always discovering something new. Marcin \u2018mbork\u2019 Borkowski is always discovering new things and, happily, sharing them with the rest of us. &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=9593\">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-9593","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\/9593","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=9593"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9593\/revisions"}],"predecessor-version":[{"id":9594,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9593\/revisions\/9594"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}