From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kim Christensen Newsgroups: gmane.emacs.help Subject: Re: Cannot use normal save (C-x C-s) when operating over network mount Date: Fri, 12 Jun 2009 03:31:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8879d2a2-3d9b-4256-95de-68dbb6b44d19@b9g2000yqm.googlegroups.com> References: <4227602e-ed9f-4ca5-aa35-270ead107806@d38g2000prn.googlegroups.com> <43e96590-0b23-44de-848a-20739a0da5de@g19g2000yql.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1244803338 28158 80.91.229.12 (12 Jun 2009 10:42:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jun 2009 10:42:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 12 12:42:16 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MF4D9-00077w-Qz for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 12:42:16 +0200 Original-Received: from localhost ([127.0.0.1]:40869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF4D9-0007mk-9E for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 06:42:15 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b9g2000yqm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 Original-NNTP-Posting-Host: 192.121.104.61 Original-X-Trace: posting.google.com 1244802665 25339 127.0.0.1 (12 Jun 2009 10:31:05 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 12 Jun 2009 10:31:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b9g2000yqm.googlegroups.com; posting-host=192.121.104.61; posting-account=3heTMgoAAADQVinLgB604XSO-AFIyb0N User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169965 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65194 Archived-At: On Jun 12, 11:41=A0am, Tassilo Horn wrote: > Kim Christensen writes: > > Hi Kim! > > > I am actually mounting the Samba share via the cifs network protocol, > > which allows me to mount it as a network file system (using "cifs" as > > the vfstype argument to the "mount" application). > > Ah, then I didn't understand you correctly. =A0If you mounted a SMB share= , > then to emacs those should be local files. =A0Please try the following: > > =A0 1. Open a file on that share and edit it > =A0 2. M-x toggle-debug-on-error > =A0 3. Save if with `C-x C-s' > =A0 4. Poste the contents of the *Backtrace* buffer here > > > Are you using tramp for accessing the files? I could try that > > tomorrow, without mounting it at all -- just accessing it directly. > > You can try, but working with files on a mounted smb share should work > anyway... > > Bye, > Tassilo Hi again, I have enabled the debugger and receive the following trace when trying to save ('C-x C-s'): Debugger entered--Lisp error: (file-error "Opening output file" "no such file or directory" "/mnt/effie/foo.bar/www/mulang/ basket_options.php") write-region(1 4688 "/mnt/effie/foo.bar/www/mulang/ basket_options.php" nil t "/mnt/effie/foo.bar/www/mulang/ basket_options.php") basic-save-buffer-2() basic-save-buffer-1() basic-save-buffer() save-buffer(1) call-interactively(save-buffer) That doesn't give me much information to proceed with though... What is the difference between saving a file with 'C-x C-s' and 'C-x C- w', filesystem-wise? Maybe this error is related to the actual procedure done on the filesystem; I recall gedit having some trouble when saving files that were accessed through SMB/CIFS because of the way it saved the file with a temporary name at first - then renaming it to the original file. I am not sure how Emacs do this, but it could be related. Regards, Kim