diff options
| author | Lars Ingebrigtsen | 2021-07-07 21:39:00 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-07-07 21:39:20 +0200 |
| commit | 2ad34bcea4ed686e56078e91d63417480e5642b4 (patch) | |
| tree | b10a2e2a4f539dbfdfe7b005890e570a46c0cc4e /src/bytecode.c | |
| parent | 6d594848e052b1e627479ee1068e147a6aaf1c70 (diff) | |
| download | emacs-2ad34bcea4ed686e56078e91d63417480e5642b4.tar.gz emacs-2ad34bcea4ed686e56078e91d63417480e5642b4.zip | |
Add new user option lock-file-name-transforms
* doc/emacs/files.texi (Interlocking): Mention
lock-file-name-transforms.
* doc/lispref/files.texi (File Locks): Document
lock-file-name-transforms.
* doc/misc/efaq.texi (Not writing files to the current directory):
Mention all the three variables needed to not having Emacs writing
files to the current directory in one place.
* lisp/files.el (lock-file-name-transforms): New user option (bug#49261).
(make-auto-save-file-name): Factor out the main logic...
(auto-save--transform-file-name): ... to this new function.
(make-lock-file-name): New function that also calls the
factored-out function.
* src/filelock.c: Remove MAKE_LOCK_NAME and fill_in_lock_file_name.
(make_lock_file_name): New utility function that calls out to Lisp
to heed `lock-file-name-transforms'.
(lock_file): Use it. Also remove likely buggy call to
dostounix_filename.
(unlock_file_body, Ffile_locked_p): Also use make_lock_file_name.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions