{"id":40,"date":"2013-01-22T14:00:00","date_gmt":"2013-01-22T14:00:00","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=40"},"modified":"2013-01-22T14:00:00","modified_gmt":"2013-01-22T14:00:00","slug":"how-to-determine-if-current-buffer-is-tramp-buffer-in-emacs","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=40","title":{"rendered":"How to determine if current buffer is tramp buffer in Emacs"},"content":{"rendered":"<p>Tramp is Emacs&#8217; way to access remote files, e.g. via SSH. To determine if the current buffer is accessing a tramp file (e.g. to not try to run <a href=\"http:\/\/root42.blogspot.de\/2012\/08\/updating-gnu-global-gtags-file-when.html\">gtags<\/a> or similar), try this: <\/p>\n<pre><br \/>(not (tramp-tramp-file-p (buffer-file-name (current-buffer))))<br \/><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Tramp is Emacs&#8217; way to access remote files, e.g. via SSH. To determine if the current buffer is accessing a tramp file (e.g. to not try to run gtags or similar), try this: (not (tramp-tramp-file-p (buffer-file-name (current-buffer))))<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,6,8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/40"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":0,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}