<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>axelio &#187; Emacs</title>
	<atom:link href="http://axelio.wordpress.com/category/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://axelio.wordpress.com</link>
	<description>... and the art of debugging a blank sheet of paper.</description>
	<lastBuildDate>Sat, 27 Apr 2013 16:19:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='axelio.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>axelio &#187; Emacs</title>
		<link>http://axelio.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://axelio.wordpress.com/osd.xml" title="axelio" />
	<atom:link rel='hub' href='http://axelio.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ropemacs and remote files (fuse)</title>
		<link>http://axelio.wordpress.com/2010/11/16/ropemacs-and-remote-files-fuse/</link>
		<comments>http://axelio.wordpress.com/2010/11/16/ropemacs-and-remote-files-fuse/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 18:27:08 +0000</pubDate>
		<dc:creator>aleix</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">https://axelio.wordpress.com/2010/11/16/ropemacs-and-remote-file-editing-fuse/</guid>
		<description><![CDATA[This morning I needed to edit some python scripts from a local server at work and, as always, used the TRAMP Emacs mode, but immediately found a problem. A few months ago I installed the great python refactoring library rope and its Emacs mode ropemacs. It comes out that ropemacs asks you for the location [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=axelio.wordpress.com&#038;blog=531926&#038;post=116&#038;subd=axelio&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This morning I needed to edit some python scripts from a local server at work and, as always, used the  <a href="http://www.gnu.org/software/tramp/">TRAMP</a> Emacs mode, but immediately found a problem. A few months ago I installed the great python refactoring library <a href="http://rope.sourceforge.net/">rope</a> and its Emacs mode <a href="http://rope.sourceforge.net/ropemacs.html">ropemacs</a>. It comes out that ropemacs asks you for the location of your rope project if it cannot find it (this always happens the first time you start a project).</p>
<p>TRAMP URLs look like this:</p>
<pre>
/ssh:user@server:/path
</pre>
<p>So, you can now imagine what happens when Emacs gives an URL like this to rope (which is a python library and doesn&#8217;t know anything about TRAMP URLs) as if it was a local file name&#8230;</p>
<pre>
Traceback (most recent call last):
  ...
  ...
  File "/usr/lib/python2.6/.../ropemode/interface.py", line 88, in open_project
    self.project = rope.base.project.Project(root)
  File "/usr/lib/python2.6/.../rope/base/project.py", line 134, in __init__
    os.mkdir(self._address)
OSError: [Errno 2] No such file or directory: '/ssh:user@server:/path'
</pre>
<p>The worst is that you are continuously being asked by Emacs to enter a valid rope project location.</p>
<p>The solution? Simply use the <a href="http://fuse.sourceforge.net/sshfs.html">FUSE SSH Filesystem</a>.</p>
<pre>
$ sudo apt-get install sshfs
$ sshfs user@server:path mountpoint
</pre>
<p>FUSE stands for <em>Filesystem in Userspace</em>. With FUSE you will end up editing remote files as if they were in your computer and the great thing is that you don&#8217;t need root access, so any user can mount a FUSE filesystem.</p>
<p><b>Update 2010/11/17</b>: FUSE mounted directory can be unmounted with:</p>
<pre>
$ fusermount -u mountpoint
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/axelio.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/axelio.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=axelio.wordpress.com&#038;blog=531926&#038;post=116&#038;subd=axelio&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://axelio.wordpress.com/2010/11/16/ropemacs-and-remote-files-fuse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/3b7f33cf385adab602c156205e7291e7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aleix</media:title>
		</media:content>
	</item>
	</channel>
</rss>
