1. 17 Dec, 2012 6 commits
    • 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
    • Paul Eggert's avatar
      Don't reraise SIGCHLD, as that can now lose. · 207a7ef0
      Paul Eggert authored
      With the 2012-12-03 fix for Bug#12980 in place, an old workaround
      for some of that bug's symptoms can now cause Emacs to abort.
      Remove the workaround.
      * process.c (wait_reading_process_output): Don't reraise SIGCHLD.
      The bug that caused SIGCHLD to get lost has been fixed, and the
      workaround for it can now cause Emacs to abort.
      
      Fixes: debbugs:13192
      207a7ef0
    • Kevin Ryde's avatar
      * lisp/files.el (auto-save-file-name-p): Use \` and \'. · 19156242
      Kevin Ryde authored
      Fixes: debbugs:13186
      19156242
    • Michael Albinus's avatar
      Add support for preserving ACL entries of files. · 53b6a8b1
      Michael Albinus authored
      * net/tramp.el (tramp-file-name-for-operation): Add `file-acl' and
      `set-file-acl' handlers.
      
      * net/tramp-adb.el (tramp-adb-handle-copy-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      
      * net/tramp-compat.el (tramp-compat-copy-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add
      `file-acl' and `set-file-acl' handlers.
      (tramp-gvfs-handle-copy-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      (tramp-gvfs-handle-file-acl, tramp-gvfs-handle-set-file-acl): New
      defuns.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add
      `file-acl' and `set-file-acl' handlers.
      (tramp-remote-acl-p, tramp-sh-handle-file-acl)
      (tramp-sh-handle-set-file-acl): New defuns.
      (tramp-sh-handle-copy-file, tramp-do-copy-or-rename-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add
      `file-acl' and `set-file-acl' handlers.
      (tramp-smb-handle-copy-file): Handle PRESERVE-EXTENDED-ATTRIBUTES.
      53b6a8b1
    • Glenn Morris's avatar
      Auto-commit of generated files. · 4cc63c81
      Glenn Morris authored
      4cc63c81
    • Kelly Dean's avatar
      Fix some interactions of make-help-screen and other Help forms (Bug#13190). · 6ae57a67
      Kelly Dean authored
      * help-macro.el (make-help-screen): Instead of switch-to-buffer
      use pop-to-buffer with NORECORD argument t.  As buffer name use
      *Metahelp* with a leading space (Bug#13190).
      6ae57a67
  2. 16 Dec, 2012 7 commits
  3. 15 Dec, 2012 10 commits
  4. 14 Dec, 2012 15 commits
    • Glenn Morris's avatar
      macroexp--warn-and-return message tweak (bug#13132) · a5f74442
      Glenn Morris authored
      * lisp/emacs-lisp/macroexp.el (macroexp--warn-and-return):
      Try to include filename in non-bytecomp warning.
      a5f74442
    • Paul Eggert's avatar
      Spelling fixes. · cccaebd2
      Paul Eggert authored
      My favorite was that the word "dictionary" was misspelled.
      Also, correct the title in the DeRemer & Pennello 1982 citation,
      and add a URL.
      cccaebd2
    • Eli Zaretskii's avatar
      Fix compilation warnings in the Windows build. · 7e90af26
      Eli Zaretskii authored
       src/editfns.c [HAVE_PWD_H]: Include grp.h.
       src/makefile.w32-in ($(BLD)/editfns.$(O)): Add $(NT_INC)/grp.h.
      7e90af26
    • 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
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      * src/xdisp.c (select_frame_for_redisplay): Keep selected_window and · 26ec1f49
      Stefan Monnier authored
      selected_frame in sync.
      26ec1f49
    • Michael Albinus's avatar
    • Julien Danjou's avatar
      * progmodes/sql.el (sql-mode-postgres-font-lock-keywords): Update · 016b2a42
      Julien Danjou authored
        keywords list, data type and PL/pgSQL.
      016b2a42
    • Dave Abrahams's avatar
      * lisp/vc/ediff-util.el (ediff-buffer-type): New function. · 665e5e07
      Dave Abrahams authored
      (ediff-clone-buffer-for-current-diff-comparison): Compute the buf-type
      rather than taking it as as argument.
      (ediff-inferior-compare-regions): Adjust calls accordingly.
      
      Fixes: debbugs:11319
      665e5e07
    • Ryan Crum's avatar
      * lisp/json.el: Add pretty-print option. · d72e9e92
      Ryan Crum authored
      (json-encoding-separator, json-encoding-default-indentation)
      (json--encoding-current-indentation, json-encoding-pretty-print)
      (json-encoding-lisp-style-closings): New vars.
      (json--with-indentation): New macro.
      (json-encode-hash-table, json-encode-alist, json-encode-plist)
      (json-encode-array): Use it to obey json-encoding-pretty-print.
      (json-pretty-print-buffer, json-pretty-print): New commands.
      
      Fixes: debbugs:12634
      d72e9e92
    • Eli Zaretskii's avatar
      Speed up most calls to 'stat' and 'lstat' on MS-Windows. · 5c207910
      Eli Zaretskii authored
       src/w32.c (stat_worker): If w32_stat_get_owner_group is zero, do not
       try to get accurate owner and group information from NT file
       security APIs.  This is to make most callers of 'stat' and
       'lstat', which don't need that information, much faster.
       src/dired.c (Ffile_attributes) [WINDOWSNT]: Set
       w32_stat_get_owner_group to a non-zero value, to request accurate
       owner and group information from 'lstat'.
      
       nt/inc/sys/stat.h: Declare w32_stat_get_owner_group.
      5c207910
    • Michael Albinus's avatar
      b421decc
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): · bb808526
      Dmitry Gutov authored
      Extract `ruby-syntax-propertize-expansions'.
      (ruby-syntax-propertize-expansions): Only change syntax on
      certain string delimiters, to punctuation.  This way the common
      functions like forward-word and thing-at-point still work.
      (ruby-match-expression-expansion): Improve readability.
      (ruby-block-contains-point): New function.
      (ruby-add-log-current-method): Handle several edge cases.
      
      * test/automated/ruby-mode-tests.el
      Rename one interpolation test; add three more.
      (ruby-with-temp-buffer): New macro, use it where appropriate.
      (ruby-add-log-current-method-examples): Use "_" for target point.
      Add four tests for ruby-add-log-current-method.
      bb808526
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): · dbb530d9
      Dmitry Gutov authored
      Extract `ruby-syntax-propertize-expansions'.
      (ruby-syntax-propertize-expansions): Only change syntax on
      certain string delimiters, to punctuation.  This way the common
      functions like forward-word and thing-at-point still work.
      
      * test/automated/ruby-mode-tests.el
      Rename one interpolation test; add three more.
      dbb530d9
    • Akinori MUSHA's avatar
      sieve-mode font-lock fix (tiny change) · fd1b1e2e
      Akinori MUSHA authored
      * sieve-mode.el (sieve-font-lock-keywords): Keywords should be word delimited.
      
      Fixes: debbugs:13173
      fd1b1e2e
  5. 13 Dec, 2012 2 commits