1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 16:41:45 -08:00
emacs/doc/misc
Michael Albinus 9ce6541ac9 Further cleanup for file locks
* doc/misc/tramp.texi (Top, Configuration): Adapt node name for
file locks.
(Auto-save File Lock and Backup): Rename node name and section
title.  Add file-lock to @cindex.  Describe file locks.

* lisp/dired.el (dired-trivial-filenames): Add lock files.
(dired-font-lock-keywords): Move files suffixed with
`completion-ignored-extensions' up.  Add lock files to these checks.

* lisp/net/tramp.el (tramp-get-lock-file, tramp-handle-unlock-file):
Use `when-let'
(tramp-lock-file-info-regexp): Rename from
`tramp-lock-file-contents-regexp'.
(tramp-handle-file-locked-p, tramp-handle-lock-file): Adapt callees.
(tramp-handle-lock-file): Set file modes of lockname.

* src/buffer.c (Frestore_buffer_modified_p):
* src/fileio.c (write_region):
* src/insdel.c (prepare_to_modify_buffer_1): Call Flock_file.

* src/filelock.c (Qmake_lock_file_name): Declare symbol.
(make_lock_file_name): Use it.  Don't check Fboundp, it doesn't
work for interned symbols.
(lock_file): Return a Lisp_Object.  Don't check create_lockfiles.
Remove MSDOS version of the function.
(Flock_file): Check create_lockfiles.
(Flock_buffer): Call Flock_file.

* src/lisp.h (lock_file): Remove.

* test/lisp/shadowfile-tests.el (shadow-test08-shadow-todo)
(shadow-test09-shadow-copy-files): Let-bind `create-lockfiles'.

* test/lisp/net/tramp-tests.el (create-lockfiles): Don't set it
globally.
(tramp-test39-lock-file): Check also for `set-visited-file-name'.
2021-07-09 18:14:19 +02:00
..
auth.texi Specify precedence in .authinfo files 2021-01-10 15:32:57 +01:00
autotype.texi Fix code for newline-and-indent in skeleton language. 2021-05-02 20:57:38 +02:00
bovine.texi Avoid deprecation warnings with Texinfo 6.8 2021-07-04 14:55:42 +03:00
calc.texi ; * doc/misc/calc.texi (Date Arithmetic): Fix order in @menu. 2021-05-13 19:58:30 +03:00
cc-mode.texi * doc/misc/cc-mode.texi: Remove hand-written node pointers (bug#48402). 2021-05-25 11:06:07 -07:00
ChangeLog.1 Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cl.texi Merge from origin/emacs-27 2021-04-25 09:16:09 -07:00
dbus.texi Add command 'dbus-monitor' 2021-02-05 14:32:41 +01:00
dired-x.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
doclicense.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
ebrowse.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ede.texi Remove more hand-written node pointers in doc/misc 2021-05-13 09:08:40 -07:00
ediff.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
edt.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
efaq-w32.texi Remove several references to Emacs 22 and earlier 2021-03-10 05:45:47 +01:00
efaq.texi Add new user option lock-file-name-transforms 2021-07-07 21:39:20 +02:00
eieio.texi EIEIO: Promote the CLOS behavior over the EIEIO-specific behavior 2021-06-12 16:22:03 -04:00
emacs-gnutls.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
emacs-mime.texi Add a new command `mailcap-view-file' 2021-06-01 08:55:06 +02:00
epa.texi * doc/misc/epa.texi: Remove hand-written node pointers. 2021-05-13 08:21:10 -07:00
erc.texi Update a few more IRC-related references to point to Libera.Chat 2021-07-04 01:18:19 -04:00
ert.texi Allow ERT tests to output the failure reasons, too 2021-06-15 17:01:57 +02:00
eshell.texi Merge from origin/emacs-27 2021-04-16 07:50:20 -07:00
eudc.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
eww.texi Add command in eww to toggle images 2021-04-12 10:31:46 +02:00
flymake.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
forms.texi Fix two Emacs version references in misc manuals 2021-02-11 19:21:48 +01:00
gnus-coding.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
gnus-faq.texi Merge from origin/emacs-27 2021-07-04 00:14:47 -04:00
gnus.texi New Gnus Summary buffer sort options for extra headers 2021-06-19 15:13:12 +02:00
gpl.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
htmlfontify.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
idlwave.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ido.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
info.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
mairix-el.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
Makefile.in * doc/misc/Makefile.in (echo-sources): Make it not the first target. 2021-04-04 17:24:27 -07:00
message.texi Improvements to message-syntax-checks docs and options 2021-04-13 08:45:07 -07:00
mh-e.texi Remove more hand-written node pointers in doc/misc 2021-05-13 09:08:40 -07:00
modus-themes.org Remove modus-themes.org build date (bug#48661) 2021-05-26 12:08:01 +03:00
newsticker.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
nxml-mode.texi Convert many more links to use HTTPS 2021-03-24 10:20:18 +01:00
octave-mode.texi Fix Octave double-quoted string line continuations 2021-02-11 14:35:47 +00:00
org-setup.org Fixes for doc/misc org source files 2021-02-26 19:48:34 -08:00
org.org Fixes for doc/misc org source files 2021-02-26 19:48:34 -08:00
pcl-cvs.texi Avoid deprecation warnings with Texinfo 6.8 2021-07-04 14:55:42 +03:00
pgg.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
rcirc.texi Merge from origin/emacs-27 2021-07-04 00:14:47 -04:00
reftex.texi Remove more hand-written node pointers in doc/misc 2021-05-13 09:08:40 -07:00
remember.texi Fix two Emacs version references in misc manuals 2021-02-11 19:21:48 +01:00
sasl.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
sc.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
sem-user.texi ; Fix some typos in doc strings and manuals 2021-04-24 18:26:07 +02:00
semantic.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ses.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
sieve.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
smtpmail.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
speedbar.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
srecode.texi Avoid deprecation warnings with Texinfo 6.8 2021-07-04 14:55:42 +03:00
texinfo.tex Convert many more links to use HTTPS 2021-03-24 10:20:18 +01:00
todo-mode.texi Remove more hand-written node pointers in doc/misc 2021-05-13 09:08:40 -07:00
tramp.texi Further cleanup for file locks 2021-07-09 18:14:19 +02:00
trampver.texi Sync with Tramp 2.5.1 2021-06-29 17:15:55 +02:00
url.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
vhdl-mode.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
vip.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
viper.texi Update copyright year to 2021 2021-01-01 01:13:56 -08:00
widget.texi Merge from origin/emacs-27 2021-01-04 07:50:26 -08:00
wisent.texi Avoid deprecation warnings with Texinfo 6.8 2021-07-04 14:55:42 +03:00
woman.texi * doc/misc/woman.texi (Introduction): Remove reference to old Emacs. 2021-04-02 16:33:15 +02:00