aboutsummaryrefslogtreecommitdiffstats
path: root/src/filelock.c
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-02 06:38:41 +0000
committerRichard M. Stallman1998-05-02 06:38:41 +0000
commitf4a4528da49b2b1b0cace3f65da48b5c58a8aefb (patch)
treeae15694bc165dea457f4b43ba4bac6c90e6deeb9 /src/filelock.c
parent31406df1a413555f7e4fa3f8df9092306b5d3723 (diff)
downloademacs-f4a4528da49b2b1b0cace3f65da48b5c58a8aefb.tar.gz
emacs-f4a4528da49b2b1b0cace3f65da48b5c58a8aefb.zip
Include coding.h.
(lock_file): Encode the file name, to make lock file name.
Diffstat (limited to 'src/filelock.c')
-rw-r--r--src/filelock.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/filelock.c b/src/filelock.c
index b5dce88639f..81edb567ad9 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -41,6 +41,8 @@ Boston, MA 02111-1307, USA. */
41 41
42#include "lisp.h" 42#include "lisp.h"
43#include "buffer.h" 43#include "buffer.h"
44#include "charset.h"
45#include "coding.h"
44 46
45#include <time.h> 47#include <time.h>
46#include <errno.h> 48#include <errno.h>
@@ -370,15 +372,16 @@ void
370lock_file (fn) 372lock_file (fn)
371 Lisp_Object fn; 373 Lisp_Object fn;
372{ 374{
373 register Lisp_Object attack, orig_fn; 375 register Lisp_Object attack, orig_fn, encoded_fn;
374 register char *lfname, *locker; 376 register char *lfname, *locker;
375 lock_info_type lock_info; 377 lock_info_type lock_info;
376 378
377 orig_fn = fn; 379 orig_fn = fn;
378 fn = Fexpand_file_name (fn, Qnil); 380 fn = Fexpand_file_name (fn, Qnil);
381 encoded_fn = ENCODE_FILE (fn);
379 382
380 /* Create the name of the lock-file for file fn */ 383 /* Create the name of the lock-file for file fn */
381 MAKE_LOCK_NAME (lfname, fn); 384 MAKE_LOCK_NAME (lfname, encoded_fn);
382 385
383 /* See if this file is visited and has changed on disk since it was 386 /* See if this file is visited and has changed on disk since it was
384 visited. */ 387 visited. */