1. 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
  2. 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
  3. 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
  4. 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
  5. 23 Oct, 2012 1 commit
  6. 01 Oct, 2012 1 commit
  7. 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
  8. 25 Sep, 2012 1 commit
  9. 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
  10. 11 Jun, 2012 1 commit
  11. 27 May, 2012 1 commit
  12. 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
  13. 10 May, 2012 1 commit
  14. 28 Apr, 2012 1 commit
  15. 26 Apr, 2012 1 commit
  16. 18 Apr, 2012 1 commit
  17. 14 Apr, 2012 1 commit
  18. 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
  19. 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
  20. 01 Mar, 2012 1 commit
  21. 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
  22. 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
  23. 26 Feb, 2012 3 commits
  24. 25 Feb, 2012 2 commits
  25. 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
  26. 10 Feb, 2012 1 commit
  27. 29 Jan, 2012 2 commits
  28. 11 Jan, 2012 1 commit
  29. 05 Jan, 2012 1 commit
  30. 28 Dec, 2011 1 commit
    • Paul Eggert's avatar
      doc: Use clearer notations for permissions. · 8d80ef01
      Paul Eggert authored
      * doc/lispref/files.texi (File Attributes, Changing Files):
      Use a more-natural notation for octal numbers.
      * doc/misc/gnus.texi (Mail Source Customization, Mail Back End Variables):
      Use octal notation for file permissions, which are normally
      thought of in octal.
      (Mail Back End Variables): Use more-plausible modes in example.
      8d80ef01
  31. 13 Nov, 2011 1 commit
  32. 24 Sep, 2011 1 commit
    • Chong Yidong's avatar
      Document display-buffer and other window changes in Lisp manual. · 0e406a72
      Chong Yidong authored
      * doc/lispref/windows.texi (Window History): New node.  Move text here
      from Buffers and Windows.
      (Switching Buffers): Rename from Displaying Buffers, since we
      don't document display-buffer here; callers changed.  Document
      FORCE-SAME-WINDOW arg to switch-to-buffer and
      switch-to-buffer-other-frame.  Delete duplicate
      replace-buffer-in-windows doc.
      (Choosing Window): Document display actions.
      0e406a72
  33. 28 Aug, 2011 3 commits
    • Chong Yidong's avatar
      Add xrefs to View Mode node to Emacs manual. · e2aeef63
      Chong Yidong authored
      * doc/emacs/files.texi (File Archives):
      * doc/emacs/cal-xtra.texi (Diary Display):
      * doc/emacs/help.texi (Help Mode): Add xref to View Mode.
      e2aeef63
    • Chong Yidong's avatar
      Document copy-directory and related changes in manuals. · a6326082
      Chong Yidong authored
      * doc/emacs/buffers.texi (Misc Buffer): Move view-buffer to View Mode.
      
      * doc/emacs/display.texi (View Mode): New node.  Move view-file here from
      Misc File Ops.  Move view-buffer here from Misc Buffer.
      
      * doc/emacs/files.texi (Misc File Ops): Document new
      delete-by-moving-to-trash behavior.  Remove view-file.
      
      * doc/lispref/files.texi (Changing Files, Create/Delete Dirs): Document new
      arguments for delete-file, delete-directory, and copy-directory.
      a6326082
    • Chong Yidong's avatar
      Document trash changes in manual. · 04e2ce72
      Chong Yidong authored
      * doc/emacs/dired.texi (Dired Deletion): Shorten description of Trash.
      
      * doc/emacs/files.texi (Misc File Ops): Document new
      delete-by-moving-to-trash behavior.
      
      * doc/lispref/files.texi (Changing Files, Create/Delete Dirs): Document TRASH
      argument.
      04e2ce72
  34. 03 Jun, 2011 1 commit