From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: remote file editing and local copy for web development (like dreamweaver) Date: Wed, 20 Aug 2014 22:14:10 +0800 Message-ID: <874mx7b64t.fsf@ericabrahamsen.net> References: <8cebaa49e9f80556d2963fbcf0b09c4e@webmail.webfaction.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408543840 17535 80.91.229.3 (20 Aug 2014 14:10:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2014 14:10:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 20 16:10:33 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XK6at-0002rw-SH for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Aug 2014 16:10:31 +0200 Original-Received: from localhost ([::1]:55926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK6as-00015v-TA for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Aug 2014 10:10:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK6aZ-00014F-Aa for help-gnu-emacs@gnu.org; Wed, 20 Aug 2014 10:10:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XK6aT-0005OX-De for help-gnu-emacs@gnu.org; Wed, 20 Aug 2014 10:10:11 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK6aT-0005Lk-7s for help-gnu-emacs@gnu.org; Wed, 20 Aug 2014 10:10:05 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XK6aP-0002YI-7V for help-gnu-emacs@gnu.org; Wed, 20 Aug 2014 16:10:01 +0200 Original-Received: from 123.122.36.62 ([123.122.36.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Aug 2014 16:10:01 +0200 Original-Received: from eric by 123.122.36.62 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Aug 2014 16:10:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.122.36.62 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:YlPz+TO6rWWAT80IewKif5Ic/ek= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99318 Archived-At: Infrid writes: > hi all, > I'm a web developers and my co-workers use dreamweaver for editing PHP > files in a live environment (I know is a bad practice) in this way: > > 1. From a menu they "open" the web site location, dreamweaver knows > where the files are on the net. > > 2. They navigate in the file system end select the file for edit > > 3. dreamweaver actually download the file and it puts in a directory > following the remote paths. Example: if you edit ~/dira/dirb/file.txt it > create the path under c:\myWeb\dira\dirb\file.txt > > 4. When they save, dreamweaver write the local file and uploads it to > the remote location. > In the end you have a partial copy of the web site on your hard drive. > > how can I get the same behavior in emacs? I've searched for a packages > for this without success. This sounds like *exactly* what tramp does, except for the part at the end where you have a partial copy retained locally. You don't need to install/load/configure tramp, it should work transparently if you find a file with a remote server specification in the filename, ie /user@host:path/to.file. With proper ssh configuration, it becomes very simple. To be honest, keeping a partial local copy sounds like a bad idea. Either edit remotely with tramp, or edit locally with git or something similar. But maybe someone can tell you how to do the partial solution... Eric