Article View: gnu.emacs.help
Article #189538Locking files
From: Kevin Wittkopf
Date: Fri, 25 Jan 1991 22:35
Date: Fri, 25 Jan 1991 22:35
34 lines
1645 bytes
1645 bytes
I've been trying to lock a file in emacs, with no effect. Here's what I'm doing: 1. load a file into buffer; 2. edit the buffer; 3. execute the function 'lock-buffer'. According to the Emacs doc, this is supposed to lock the file if the buffer has been modified. 4. test lock by executing the predicate 'file-locked-p'. The return from this is nil, indicating the file is not locked. (!) As a further test, I also tried logging on to another system (as a different user), and loading the same file for editing. Emacs let me edit, so obviously no locking was in effect. Is it possible the version of emacs I'm using was built without enabling/supporting locking? Or, am I doing something wrong? Any advice/experience would be greatly appreciated. Thanx in advance. Kevin Wittkopf | Voice : (604) 293-6087 MPR Teltech Ltd. | Fax : (604) 293-5787 8999 Nelson Way, Burnaby, BC | E-Mail: wittkopf@murphy.mpr.ca Canada, V5A 4B5 | murphy.mpr.ca!wittkopf@uunet.uu.net
Technical Details
Message-ID:
<1991Jan25.223540.14568@mprgate.mpr.ca>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!van-bc!ubc-cs!mprgate.mpr.ca!murphy.mpr.ca!wittkopfShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,a3fa5e4acd860535,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-01-26 14:21:01 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!van-bc!ubc-cs!mprgate.mpr.ca!murphy.mpr.ca!wittkopf From: wittkopf@murphy.mpr.ca (Kevin Wittkopf) Newsgroups: gnu.emacs.help Subject: Locking files Message-ID: <1991Jan25.223540.14568@mprgate.mpr.ca> Date: 25 Jan 91 22:35:40 GMT Sender: news@mprgate.mpr.ca Reply-To: wittkopf@murphy.mpr.ca (Kevin Wittkopf) Organization: Microtel Pacific Research Ltd. (MPR) Lines: 34