1. 07 Jul, 2021 7 commits
    • Lars Ingebrigtsen's avatar
      Make make_lock_file_name more robust · e762864b
      Lars Ingebrigtsen authored
      * src/filelock.c (make_lock_file_name): Protect against the
      make-lock-file-name not being defined.
      (lock_file, unlock_file_body, Ffile_locked_p): Return early if not
    • Eli Zaretskii's avatar
      * lisp/faces.el: Fix a typo. · fadfc55d
      Eli Zaretskii authored
    • Eli Zaretskii's avatar
      Fix last change · 9034dd05
      Eli Zaretskii authored
      * lisp/faces.el (tty-menu-enabled-face, tty-menu-disabled-face):
      Define for monochrome displays.
    • Lars Ingebrigtsen's avatar
      Add new user option lock-file-name-transforms · 2ad34bce
      Lars Ingebrigtsen authored
      * doc/emacs/files.texi (Interlocking): Mention
      * doc/lispref/files.texi (File Locks): Document
      * 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
      (unlock_file_body, Ffile_locked_p): Also use make_lock_file_name.
    • Eli Zaretskii's avatar
      Fix tty menus on monochrome displays · 6d594848
      Eli Zaretskii authored
      * lisp/faces.el (tty-menu-selected-face): Make sure the selected
      menu item stands out even without colors.
    • Michael Albinus's avatar
      Implement file locks for remote files (Bug#49261) · d35868be
      Michael Albinus authored
      * doc/lispref/files.texi (Magic File Names): Add file-locked-p,
      lock-file and unlock-file.
      * etc/NEWS: Tramp supports file locks now.
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      Add `file-locked-p', `lock-file' and `unlock-file'.
      (tramp-adb-handle-write-region): Handle LOCKNAME.
      * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
      Add `file-locked-p', `lock-file' and `unlock-file'.
      * lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist):
      Add `file-locked-p', `lock-file' and `unlock-file'.
      (tramp-crypt-handle-file-locked-p, tramp-crypt-handle-lock-file)
      (tramp-crypt-handle-unlock-file): New defun.
      * lisp/net/tramp-fuse.el (tramp-fuse-mounted-p): Simplify.
      (tramp-fuse-unmount): New defun.
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      Add `file-locked-p', `lock-file' and `unlock-file'.
      (tramp-gvfs-maybe-open-connection): Set "lock-pid" connection property.
      * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
      Add `file-locked-p', `lock-file' and `unlock-file'.
      (tramp-rclone-maybe-open-connection): Set "lock-pid" connection property.
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
      Add `file-locked-p', `lock-file' and `unlock-file'.
      (tramp-sh-handle-write-region): Handle LOCKNAME.
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      Add `file-locked-p', `lock-file' and `unlock-file'.
      (tramp-smb-handle-copy-directory): Use `sleep-for'.
      (tramp-smb-handle-write-region): Handle LOCKNAME.
      * lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
      Add `file-locked-p', `lock-file' and `unlock-file'.
      (tramp-sshfs-handle-write-region): Handle LOCKNAME.
      (tramp-sshfs-maybe-open-connection): Set "lock-pid" connection property.
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
      Add `file-locked-p', `lock-file' and `unlock-file'.
      Set "lock-pid" connection property.
      * lisp/net/tramp.el (tramp-file-name-for-operation):
      Add `file-locked-p', `lock-file' and `unlock-file'.
      (tramp-make-lock-name, tramp-get-lock-file, tramp-get-lock-pid)
      (tramp-handle-file-locked-p, tramp-handle-lock-file)
      (tramp-handle-unlock-file): New defuns.
      (tramp-lock-file-contents-regexp): New regexp.
      (tramp-handle-write-region): Handle LOCKNAME.
      * src/filelock.c (lock_file, unlock_file_body, Ffile_locked_p):
      Call handler if exists.
      (Flock_file, Funlock_file): New defuns.
      (Qlock_file, Qunlock_file, Qfile_locked_p): Declare symbols.
      (Slock_file, Sunlock_file): Declare subroutines.
      * test/lisp/net/tramp-archive-tests.el
      (tramp-archive-test43-file-system-info): Rename.
      * test/lisp/net/tramp-tests.el (top): Set `create-lockfiles' to nil.
      (tramp--test-fuse-p): New defun.
      (tramp-test14-delete-directory): Use it.
      (tramp-test39-lock-file): New test.
      (tramp-test41-special-characters-with-ls, tramp-test42-utf8)
      (tramp-test42-utf8-with-stat, tramp-test42-utf8-with-perl)
      (tramp-test42-utf8-with-ls, tramp-test43-file-system-info)
      (tramp-test44-asynchronous-requests, tramp-test45-auto-load)
      (tramp-test45-delay-load, tramp-test45-recursive-load)
      (tramp-test45-remote-load-path, tramp-test46-unload): Rename.
      (tramp--test-special-characters, tramp--test-utf8)
      (tramp--test-asynchronous-requests-timeout): Modify docstring.
    • Glenn Morris's avatar
      Merge from origin/emacs-27 · 90c89e8b
      Glenn Morris authored
      fbf1cb2b (origin/emacs-27) Fix overfull hbox in Emacs manual
      fda60094 Minor copyedits of Emacs manual
      # Conflicts:
      #	doc/emacs/display.texi
  2. 06 Jul, 2021 13 commits
  3. 05 Jul, 2021 11 commits
  4. 04 Jul, 2021 9 commits
    • Lars Ingebrigtsen's avatar
      Ignore .dir-locals-2.el files more · ed15f395
      Lars Ingebrigtsen authored
      * lisp/emacs-lisp/shadow.el (load-path-shadows-find):
      * lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Ignore
      .dir-locals-2.el, too (bug#23257).
    • Jim Porter's avatar
      Ensure 'call-process' interprets INFILE as a local path · 2f2afa0b
      Jim Porter authored
      * src/callproc.c (get_current_directory): Rename from
      'encode_current_directory' and add boolean ENCODE flag.
      (Fcall_process): Interpret INFILE relative to the working directory
      from which PROGRAM is run, not 'default-directory'.
      (call_process): Use 'get_current_directory'.
      * src/process.c (Fmake_process): Use 'get_current_directory'.
      * src/process.h (get_current_directory): Rename decl from
      * src/sysdep.c (sys_subshell): Use 'get_current_directory' (bug#49283).
    • Lars Ingebrigtsen's avatar
      Adjust eshell and ps-print to not use emacs-kill-hook · 46d4ddd1
      Lars Ingebrigtsen authored
      * lisp/ps-print.el (ps-kill-emacs-check):
      * lisp/eshell/em-dirs.el (eshell-dirs-initialize)
      (eshell-save-some-last-dir): Don't use `emacs-kill-hook' (bug#28943).
      * lisp/eshell/em-hist.el (eshell-hist-initialize)
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Avoid deprecation warnings with Texinfo 6.8 · 31ed5a8c
      Eli Zaretskii authored
      * doc/lispref/functions.texi (Function Safety):
      * doc/misc/srecode.texi (Parts of SRecode):
      * doc/misc/wisent.texi (Wisent Semantic, Wisent Lex):
      * doc/misc/pcl-cvs.texi (Editing files):
      * doc/misc/bovine.texi (top, Starting Rules)
      (Bovine Grammar Rules, How Lexical Tokens Match)
      (Optional Lambda Expression):
      * doc/emacs/msdos.texi (Windows Keyboard):
      * doc/emacs/buffers.texi (Several Buffers):
      * doc/emacs/text.texi (Text): Avoid using @inforef, which is
    • Alan Third's avatar
      Fix crash in GNUstep font coverage check · 28fcdb52
      Alan Third authored
      * src/nsfont.m (ns_charset_covers): Check coverage more accurately and
      don't automatically assume the buffer is 8192 bytes long.
    • Alan Third's avatar
      Remove unused variables · 0382aa11
      Alan Third authored
      * src/nsterm.m ([EmacsView keyDown:]): Remove ns_fake_keydown as
      there's no code that ever sets it to YES.
    • Alan Third's avatar
      Fix thread memory management under NS · 604133ee
      Alan Third authored
      * src/thread.c (run_thread): Allocate an autorelease pool so that any
      autoreleased Objective C objects are correctly released.
    • bandali's avatar