From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Cannot use normal save (C-x C-s) when operating over network mount Date: Fri, 12 Jun 2009 06:24:21 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8ce654e9-8813-40fe-8544-67eadeffb169@o21g2000prn.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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1244818384 11074 80.91.229.12 (12 Jun 2009 14:53:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jun 2009 14:53:04 +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 16:53:01 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 1MF87k-0006d7-Tt for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 16:52:57 +0200 Original-Received: from localhost ([127.0.0.1]:57655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF87k-0001go-Dg for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 10:52:56 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!o21g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 78 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1244813061 5007 127.0.0.1 (12 Jun 2009 13:24:21 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 12 Jun 2009 13:24:21 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o21g2000prn.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169975 X-Mailman-Approved-At: Fri, 12 Jun 2009 10:49:13 -0400 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:65205 Archived-At: On Jun 11, 3:49 pm, Kim Christensen wrote: > On Jun 12, 12:01 am, Xah Lee wrote: > > > > > > > On Jun 11, 1:35 am, Kim Christensen wrote: > > > > Hi list, > > > > I've been using Emacs on and off for the past couple of years but > > > recently started using it as main editor on my workstation. It took a > > > while to get into, mainly because I wanted to learn elisp and had to > > > get a grip of the customization possibilites before realising the > > > potential of this fine piece of software :-) > > > > However, I have quite a disturbing problem when it comes to editing > > > files over a SMB/CIFS network mount. When trying to save a file that = I > > > have opened from a mounted share, I cannot save it using basic-save- > > > buffer (C-x C-s or M-x basic-save-buffer). Emacs gives me this error: > > > > basic-save-buffer-2: Opening output file: no such file or directory, > > > > > > > When i try saving using write-file (C-x C-w) instead, it works just > > > fine. This is very disturbing since I have to specify the file name > > > each time :-) > > > > If anyone has run into this problem and could give me some pointers o= n > > > how to start debugging it I would be grateful! > > > > I'm running the following edition of Emacs: > > > GNU Emacs 22.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.14.1) of > > > 2008-09-05 on yellow, modified by Ubuntu > > > > Best regards, > > > Kim Christensen > > > not sure what's your networking setup... is it linux to windows? > > > anyway, i have local network between Windows and Mac. I work in > > Windows using emacsW32 (based on emacs v23). It works fine. > > > for example, on windows, using emacs, accessing files on my Mac, and > > the file path shows this syntax: > > //169.254.223.41/xah/Documents/somefile.txt > > > don't know if this info helps at all. > > > not sure what you mean by =E2=80=9CSMB/CIFS network mount=E2=80=9D. As = far as i know, > > smb/cifs is network protocol, not a network file system such as nfs, > > so you don't really mount it... maybe this has nothing to do with your > > problem... > > Hi Lee, > > 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). thanks for the clarification. > Are you using tramp for accessing the files? I could try that > tomorrow, without mounting it at all -- just accessing it directly. No, it is not going thru tramp. I think emacs passes the file access request to windows. Because, on windows, in emacs, when i open the file //169.254.223.41/xah/Documents/somefile.txt for the first time, Windows pops up the file sharing login dialog. Xah =E2=88=91 http://xahlee.org/ =E2=98=84