1. 19 Jan, 2013 1 commit
  2. 04 Jan, 2013 1 commit
  3. 01 Jan, 2013 1 commit
  4. 29 Dec, 2012 1 commit
    • Eli Zaretskii's avatar
      Fix bug #13298 with failed backups by falling back on set-file-modes. · ccad023b
      Eli Zaretskii authored
       src/fileio.c (Fset_file_selinux_context, Fset_file_acl): Return t if
       file's SELinux context or ACLs successfully set, nil otherwise.
      
       lisp/files.el (backup-buffer-copy, basic-save-buffer-2): If
       set-file-extended-attributes fails, fall back on set-file-modes
       instead of signaling an error.
      
       doc/lispref/files.texi (Changing Files): Document the return values of
       set-file-selinux-context and set-file-acl.
      ccad023b
  5. 27 Dec, 2012 1 commit
    • Glenn Morris's avatar
      Document cygwin-convert-file-name-{to|from}-windows · 1ab0c851
      Glenn Morris authored
      * doc/lispref/files.texi (File Names): Mention Cygwin conversion functions.
      
      * src/cygw32.c (Fcygwin_convert_file_name_to_windows)
      (Fcygwin_convert_file_name_from_windows): Doc fixes.
      
      * etc/NEWS: Related markup.
      1ab0c851
  6. 22 Dec, 2012 1 commit
  7. 19 Dec, 2012 1 commit
  8. 17 Dec, 2012 1 commit
    • Eli Zaretskii's avatar
      Support Posix ACL APIs on MS-Windows. · 66447e07
      Eli Zaretskii authored
       src/w32.c: Include sddl.h and sys/acl.h.
       (SDDL_REVISION_1): Define if not already defined.
       (g_b_init_get_security_descriptor_dacl)
       (g_b_init_convert_sd_to_sddl, g_b_init_convert_sddl_to_sd)
       (g_b_init_is_valid_security_descriptor)
       (g_b_init_set_file_security): New static flags.
       (globals_of_w32): Initialize them to zero.
       (SetFileSecurity_Name): New string constant.
       (SetFileSecurity_Proc, GetSecurityDescriptorDacl_Proc)
       (ConvertStringSecurityDescriptorToSecurityDescriptor_Proc)
       (ConvertSecurityDescriptorToStringSecurityDescriptor_Proc)
       (IsValidSecurityDescriptor_Proc): New typedefs.
       (get_file_security, get_security_descriptor_owner)
       (get_security_descriptor_group): Set errno to ENOTSUP.
       (set_file_security, get_security_descriptor_dacl)
       (is_valid_security_descriptor, convert_sd_to_sddl)
       (convert_sddl_to_sd, acl_valid, acl_to_text, acl_from_text)
       (acl_free, acl_get_file, acl_set_file): New functions.
       src/fileio.c (Fcopy_file) [WINDOWSNT]: Support copying ACLs.
      
       nt/inc/sys/acl.h: New file.
       nt/inc/ms-w32.h (ENOTSUP): Define if undefined.
       nt/config.nt (HAVE_POSIX_ACL): Define.
      
       doc/lispref/files.texi (File Attributes, Changing Files): Update to include
       MS-Windows support for ACLs.
      66447e07
  9. 16 Dec, 2012 1 commit
    • 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
      	set.
      	(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
      	entries.
      	(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'.
      7c3d167f
  10. 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,
      group-real-gid.
      * etc/NEWS: Document changes to file-attributes,
      file-ownership-preserved-p.
      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):
      Likewise.
      (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
      97976f9f
  11. 05 Dec, 2012 1 commit
    • Paul Eggert's avatar
      Fix minor whitespace issues after "." in manual. · 1df7defd
      Paul Eggert authored
      Be more systematic about using "@." (not ".") at end of sentence that
      ends in a capital letter, and about appending "@:" after non-ends of
      sentences that end in a lower case letter followed by "." followed by
      whitespace.  Omit unnecessary use of "@:" and "@.".  Similarly for "?"
      and "!".  Be more consistent about putting a comma after "i.e." and
      "e.g."; this is the typical American style and it's easier to code in
      Texinfo.
      
      Fixes: debbugs:12973
      1df7defd
  12. 24 Oct, 2012 1 commit
    • Paul Eggert's avatar
      Update manual for new time stamp format. · 72ec96fb
      Paul Eggert authored
      These instances were missed the first time around.
      Problem reported by Glenn Morris in <http://bugs.gnu.org/12706#25>.
      * doc/lispintro/emacs-lisp-intro.texi (Files List):
      * doc/lispref/buffers.texi (Modification Time):
      * doc/lispref/files.texi (Testing Accessibility, File Attributes):
      * doc/lispref/intro.texi (Version Info):
      * doc/lispref/os.texi (Time of Day):
      * doc/misc/emacs-mime.texi (time-date): 
      Update for new time stamp format (HIGH LOW MICROSEC PICOSEC).
      * doc/misc/emacs-mime.texi (time-date): 
      Also, fix bogus time stamp and modernize a bit.
      72ec96fb
  13. 23 Oct, 2012 1 commit
  14. 01 Oct, 2012 1 commit
  15. 30 Sep, 2012 1 commit
    • Paul Eggert's avatar
      file-attributes has a new optional arg FOLLOW-SYMLINKS. · e7a2937b
      Paul Eggert authored
      * doc/lispref/files.texi (File Attributes): Describe it.
      (Magic File Names): Use it.
      * etc/NEWS: Document the change.
      * lisp/files.el (remote-file-name-inhibit-cache):
      * lisp/time.el (display-time-file-nonempty-p): Use it.
      * lisp/files.el (after-find-file): Don't chase links before calling
      file-exists-p, as file-exists-p already does the right thing.
      * src/dired.c (directory_files_internal, Ffile_attributes):
      New arg follow_symlinks.  All uses changed.
      e7a2937b
  16. 25 Sep, 2012 1 commit
  17. 26 Jun, 2012 1 commit
    • Sam Steingold's avatar
      * lisp/files.el (file-name-base): New convenience function. · d2c32364
      Sam Steingold authored
      * lisp/autoinsert.el, lisp/cus-dep.el, lisp/doc-view.el, lisp/image-dired.el,
      * lisp/woman.el, lisp/eshell/esh-cmd.el, lisp/progmodes/ada-xref.el,
      * lisp/progmodes/cc-defs.el, lisp/progmodes/cperl-mode.el,
      * lisp/progmodes/flymake.el, lisp/progmodes/gud.el, lisp/progmodes/idlwave.el,
      * lisp/textmodes/ispell.el, lisp/textmodes/reftex-ref.el,
      * lisp/textmodes/tex-mode.el: Use it.
      Did not touch cedet and org because they are maintained elsewhere.
      d2c32364
  18. 11 Jun, 2012 1 commit
  19. 27 May, 2012 1 commit
  20. 15 May, 2012 1 commit
    • Martin Rudalics's avatar
      Some minor fixes of Elisp manual. · 0b128ac4
      Martin Rudalics authored
      * commands.texi (Recursive Editing): recursive-edit is a
      command.
      * compile.texi (Docs and Compilation):
      byte-compile-dynamic-docstrings is an option.
      * debugging.texi (Invoking the Debugger): debug is a command.
      * display.texi (Progress): progress-reporter-update and
      progress-reporter-force-update have VALUE argument optional.
      (Animated Images): Use non-@code{nil} instead of non-nil.
      * files.texi (Format Conversion Round-Trip): Use non-@code{nil}
      instead of non-nil.
      * frames.texi (Creating Frames): make-frame is a command.
      (Input Focus): select-frame is a command.
      (Pointer Shape): void-text-area-pointer is an option.
      * help.texi (Describing Characters): read-kbd-macro is a
      command.
      (Help Functions): describe-prefix-bindings is a command.
      * markers.texi (Creating Markers): Both arguments of copy-marker
      are optional.
      * minibuf.texi (Reading File Names): Use @kbd instead of @code.
      * modes.texi (Mode Line Variables): mode-line-remote and
      mode-line-client are not options.
      (Imenu): imenu-add-to-menubar is a command.
      (SMIE Indentation Helpers): Use non-@code{nil} instead of
      non-nil.
      * os.texi (Sound Output): play-sound-file is a command.
      * package.texi (Package Archives): Use @key{RET} instead of
      @kbd{RET}.
      * processes.texi (Signals to Processes): Use @key{RET} instead
      of @code{RET}.
      (Signals to Processes): signal-process is a command.
      * text.texi (Clickable Text): Use @key{RET} instead of
      @kbd{RET}.
      (Base 64): base64-encode-string is not a command while
      base64-decode-region is.
      * windows.texi (Switching Buffers): pop-to-buffer is a command.
      0b128ac4
  21. 10 May, 2012 1 commit
  22. 28 Apr, 2012 1 commit
  23. 26 Apr, 2012 1 commit
  24. 18 Apr, 2012 1 commit
  25. 14 Apr, 2012 1 commit
  26. 08 Apr, 2012 1 commit
    • Glenn Morris's avatar
      Use @env for environment variables in texinfo manuals · 8fc85b20
      Glenn Morris authored
      It renders the same as @code, so in many cases this change is entirely cosmetic.
      
      * doc/emacs/misc.texi (Gnus Startup):
      * doc/lispref/files.texi, doc/lispref/frames.texi:
      * doc/lispref/loading.texi, doc/lispref/os.texi, doc/lispref/processes.texi:
      Use @env for environment variables.
      8fc85b20
  27. 01 Apr, 2012 1 commit
    • Chong Yidong's avatar
      Rename file-subdir-of-p to file-in-directory-p. · 42ee526b
      Chong Yidong authored
      * lisp/files.el (file-in-directory-p): Rename from file-subdir-of-p.
      Handle root directory properly.
      (copy-directory): Caller changed.
      
      * lisp/dired-aux.el (dired-copy-file-recursive, dired-create-files):
      * lisp/net/tramp.el (tramp-file-name-for-operation): Callers changed.
      
      * doc/lispref/files.texi (Kinds of Files): file-subdir-of-p renamed to
      file-in-directory-p.
      42ee526b
  28. 01 Mar, 2012 1 commit
  29. 28 Feb, 2012 1 commit
    • thierry volpiatto's avatar
      * lisp/files.el (file-equal-p): renamed from `files-equal-p'. · 96b49301
      thierry volpiatto authored
      Now return nil when one or both files doesn't exists.
      (file-subdir-of-p): Now only top directory must exists,
      return nil if it doesn't.
      (copy-directory): No need to test with `file-subdir-of-p' after creating dir.
      * tramp.el (tramp-file-name-for-operation): Rename `files-equal-p' to `file-equal-p'.
      * files.texi: Rename `files-equal-p' to `file-equal-p'.
      96b49301
  30. 27 Feb, 2012 1 commit
    • Chong Yidong's avatar
      More updates for Buffers and Files chapters of Lisp manual. · 431ee44b
      Chong Yidong authored
      * doc/emacs/buffers.texi (Creating Buffers): Clarify that
      generate-new-buffer uses generate-new-buffer-names.
      (Killing Buffers): Remove bogus example duplicating buffer-live-p.
      
      * doc/emacs/files.texi (Directory Names): Index entry for file name abbreviations.
      (Relative File Names, File Name Expansion): Refer to it.
      (Locating Files): Move locate-user-emacs-file documentation to
      Standard File Names.
      (Standard File Names): Add locate-user-emacs-file; update examples.
      431ee44b
  31. 26 Feb, 2012 3 commits
  32. 25 Feb, 2012 2 commits
  33. 21 Feb, 2012 1 commit
    • Chong Yidong's avatar
      Update Files chapter in Lisp manual. · a59225b1
      Chong Yidong authored
      * doc/lispref/files.texi (Files): Mention magic file names as arguments.
      (Reading from Files): Copyedits.
      (File Attributes): Mention how to change file modes.
      (Changing Files): Use standard "file permissions" terminology.
      Add xref to File Attributes node.
      (Locating Files): Document locate-user-emacs-file.
      (Unique File Names): Recommend against using make-temp-name.
      
      * src/buffer.c (Fget_file_buffer): Protect against invalid file
      handler return value.
      
      * src/fileio.c (Vfile_name_handler_alist): Doc fix.
      a59225b1
  34. 10 Feb, 2012 1 commit
  35. 29 Jan, 2012 2 commits
  36. 11 Jan, 2012 1 commit