1. 16 Dec, 2012 2 commits
    • Romain Francoise's avatar
      Add support for preserving ACL entries of files. · 7c3d167f
      Romain Francoise authored
      	* configure.ac (acl): New option.
      	(HAVE_POSIX_ACL): Test for POSIX ACL support.  This is typically
      	provided by libacl on GNU/Linux.
      	* fileio.c (Ffile_acl, Fset_file_acl): New functions.
      	(Fcopy_file): Change last arg to `preserve_extended_attributes'
      	and copy ACL entries of file in addition to SELinux context if
      	(syms_of_fileio): Add `file-acl' and `set-file-acl'.
      	* Makefile.in (LIBACL_LIBS): New macro.
      	(LIBES): Use it.
      	* files.el (file-extended-attributes)
      	(set-file-extended-attributes): New functions.
      	(backup-buffer): Use them to handle both SELinux context and ACL
      	(backup-buffer-copy): Work with an alist of extended attributes,
      	rather than an SELinux context.
      	(basic-save-buffer-2): Ditto.
      	* files.texi (File Attributes): Document ACL support and new
      	`file-acl' function.
      	(Changing Files): Mention argument name change of `copy-file' and
      	document new function `set-file-acl'.
    • Timo Myyrä's avatar
  2. 15 Dec, 2012 1 commit
  3. 14 Dec, 2012 1 commit
    • Paul Eggert's avatar
      Fix permissions bugs with setgid directories etc. · 97976f9f
      Paul Eggert authored
      * configure.ac (BSD4_2): Remove; no longer needed.
      * admin/CPP-DEFINES (BSD4_2): Remove.
      * doc/lispintro/emacs-lisp-intro.texi (Files List):
      directory-files-and-attributes now outputs t for attribute that's
      now a placeholder.
      * doc/lispref/files.texi (Testing Accessibility): Document GROUP arg
      of file-ownership-preserved-p.
      (File Attributes): Document that 9th element is now
      just a placeholder.
      * doc/lispref/os.texi (User Identification): Document new functions group-gid,
      * etc/NEWS: Document changes to file-attributes,
      Mention new functions group-gid, group-real-gid.
      * lisp/files.el (backup-buffer): Don't rely on 9th output of
      file-attributes, as it's now a placeholder.  Instead, use the new
      optional arg of file-ownership-preserved-p.
      (file-ownership-preserved-p): New optional arg GROUP.
      Fix mishandling of setuid directories that would cause this
      function to return t when it should have returned nil.
      Document what happens if the file does not exist, and when
      it's not known whether the ownership will be preserved.
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-ownership-preserved-p):
      (tramp-get-local-gid): Use group-gid for integer, as that's
      faster and more reliable.
      * src/dired.c (Ffile_attributes): Return t as the 9th attribute,
      to mark it as a placeholder.  The old value was often wrong.
      The only user of this attribute has been changed to use
      file-ownership-preserved-p instead, with its new group arg.
      * src/editfns.c (Fgroup_gid, Fgroup_real_gid): New functions.
      Fixes: debbugs:13125
  4. 13 Dec, 2012 1 commit
  5. 12 Dec, 2012 1 commit
  6. 10 Dec, 2012 2 commits
    • Eli Zaretskii's avatar
    • Rüdiger Sonderfeld's avatar
      Support filesystem notification through inotify on GNU/Linux. · 81606b10
      Rüdiger Sonderfeld authored
       configure.ac (inotify): New option.
       (HAVE_INOTIFY): Test for inotify.
       src/termhooks.h (enum event_kind) [HAVE_INOTIFY]: Add
       src/lisp.h (syms_of_inotify) [HAVE_INOTIFY]: Add prototype.
       src/keyboard.c (Qfile_inotify) [HAVE_INOTIFY]: New variable.
       (syms_of_keyboard): DEFSYM it.
       (kbd_buffer_get_event) [HAVE_INOTIFY]: Generate FILE_NOTIFY_EVENT.
       (make_lispy_event): Support FILE_NOTIFY_EVENT by generating
       Qfile_inotify events.
       (keys_of_keyboard) [HAVE_INOTIFY]: Bind file-inotify events in
       special-event-map to inotify-handle-event.
       src/emacs.c (main) [HAVE_INOTIFY]: Call syms_of_inotify.
       src/Makefile.in (base_obj): Add inotify.o.
       src/inotify.c: New file.
       lisp/subr.el (inotify-event-p, inotify-handle-event): New functions.
       test/automated/inotify-test.el: New test.
  7. 09 Dec, 2012 2 commits
  8. 07 Dec, 2012 3 commits
  9. 04 Dec, 2012 3 commits
  10. 03 Dec, 2012 1 commit
  11. 02 Dec, 2012 1 commit
  12. 30 Nov, 2012 1 commit
  13. 29 Nov, 2012 1 commit
    • Jambunathan K's avatar
      * lisp/icomplete.el: Change separator; add ido-style commands. · cc37e70f
      Jambunathan K authored
      (icomplete-show-key-bindings): Remove custom var.
      (icomplete-get-keys): Remove function.
      (icomplete-forward-completions, icomplete-backward-completions):
      New commands.
      (icomplete-minibuffer-map): New var.
      (icomplete-minibuffer-setup): Use it.
      (icomplete-exhibit): Don't delay if the list of completions is known.
      (icomplete-separator): New custom.
      (icomplete-completions): Use it.
      * lisp/minibuffer.el (completion-all-sorted-completions): Delete duplicates.
      (minibuffer-force-complete-and-exit): New command.
      (minibuffer--complete-and-exit): New function extracted from
      (minibuffer-complete-and-exit): Use it.
  14. 25 Nov, 2012 2 commits
    • Bill Wohler's avatar
      Release MH-E version 8.4. · 6827cac1
      Bill Wohler authored
      * NEWS, MH-E-NEWS: Update for MH-E release 8.4.
    • Chong Yidong's avatar
      Revamp face-spec-set to be more analogous to setq for faces. · 1c4f115d
      Chong Yidong authored
      * lisp/faces.el (face-spec-set): Change the third arg to specify
      whether this function is being called via defface, customize, or a
      third party.  Set the appropriate symbol properties.  Clear the
      override spec if setting via Custom.  Initialize face if necessary.
      (face-spec-recalc): Allow theme faces to completely replace the
      defface spec, in the same way as custom faces (Bug#8454).
      * lisp/cus-edit.el (custom-face-set, custom-face-mark-to-save)
      (custom-face-reset-saved, custom-face-mark-to-reset-standard):
      Simplify by using the new arg to face-spec-set.
      * lisp/cus-face.el (custom-declare-face): Move face initialization to
      (custom-theme-set-faces): Don't initialize the face name here, as
      that is now done in face-spec-set.
      * lisp/emacs-lisp/lisp-mode.el (eval-defun-1): When evaluating defface,
      reset face-override-spec too, and use custom-declare-face.
      Fixes: debbugs:4988
  15. 24 Nov, 2012 1 commit
  16. 22 Nov, 2012 1 commit
  17. 20 Nov, 2012 4 commits
  18. 19 Nov, 2012 2 commits
  19. 18 Nov, 2012 2 commits
    • Glenn Morris's avatar
      NEWS tweak · 291a654d
      Glenn Morris authored
    • Glenn Morris's avatar
      Document eager macro expansion · 7351b73d
      Glenn Morris authored
      * doc/lispref/loading.texi (How Programs Do Loading): Add eager macro expansion.
      * doc/lispref/macros.texi (Expansion): Mention eager macro expansion.
      * etc/NEWS: Related edit.
  20. 17 Nov, 2012 5 commits
  21. 16 Nov, 2012 3 commits