Eli Zaretskii [Fri, 9 May 2008 19:03:52 +0000 (19:03 +0000)]
Support for reporting owner and group of each file on MS-Windows:
* dired.c (stat_uname, stat_gname): New functions, with special
implementation for w32.
(Ffile_attributes): Use them instead of getpwuid and getgrgid.
* w32.c:
(g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
(g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
New initialization states.
(globals_of_w32): Initialize them to zero. Initialize the default
group name to "None".
(GetFileSecurity_Name): New global var, the name of the function
to call for GetFileSecurity.
(GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
(GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
(get_file_security, get_security_descriptor_owner)
(get_security_descriptor_group, is_valid_sid)
(get_file_security_desc, get_rid, get_name_and_id)
(get_file_owner_and_group): New functions.
(stat): Use get_file_security_desc and get_file_owner_and_group to
report the owner and primary group of each file. Don't ignore the
high 32 bits of file's size, now that st_size is 64-bit wide. Fix
test when to get true file attributes.
(init_user_info): Use get_rid instead of equivalent inline code.
(fstat): Don't ignore the high 32 bits of file's size.
Stefan Monnier [Fri, 9 May 2008 16:01:50 +0000 (16:01 +0000)]
(vc-deduce-fileset): Don't require the checkout-model and the
state to be consistent since it's often an unwarranted restriction.
Don't return the state either.
(vc-next-action): Check that the state is consistent.
(vc-diff-internal, vc-version-diff, vc-print-log, vc-revert)
(vc-rollback, vc-update): Adapt to new return value of vc-deduce-fileset.
Stefan Monnier [Fri, 9 May 2008 15:30:47 +0000 (15:30 +0000)]
(vc-dispatcher-browsing): Use derived-mode-p.
(vc-dir-prepare-status-buffer): Use vc-dispatcher-browsing.
(vc-dispatcher-in-fileset-p): New fun.
(vc-dispatcher-selection-set): Use it to properly handle directories.
Eli Zaretskii [Fri, 9 May 2008 09:40:56 +0000 (09:40 +0000)]
Rename the_passwd_* to dflt_passwd_*.
(dflt_group_name): New static variable.
(dflt_group): Renamed from the_group.
(init_user_info): Init dflt_group fields. Get user's group name
from LookupAccountSid.
Sam Steingold [Thu, 8 May 2008 17:28:05 +0000 (17:28 +0000)]
(compilation-minor-mode-map, compilation-mode-map):
Bind "g" to recompile and "q" to quit-window.
(grep-mode-map): Use `set-keymap-parent' to connect it
to `compilation-minor-mode-map' (instead of an explicit `cons').
Dan Nicolaescu [Thu, 8 May 2008 13:44:16 +0000 (13:44 +0000)]
(verilog-type-font-keywords): Add leda and 0in
as pragma keywords.
(verilog-pretty-expr): Support lining up assignments which include
part selects.
(verilog-mode): More portable check for the availability of
hideshow support.
(verilog-do-indent): Remove special indent for declarations inside
a parenthetical list. The code is ill-advised, and doesn't work
given the new user defined types.
(verilog-set-auto-endcomments): Enhance function automatic
endcomment to support functions that return user defined types.
(verilog-mode): Add code to tell which-function-mode minor mode
that Verilog supports this feature.
Stefan Monnier [Wed, 7 May 2008 18:16:28 +0000 (18:16 +0000)]
Choose images dynamically.
(tool-bar-make-keymap, tool-bar-find-image): New function.
(tool-bar-find-image-cache): New var.
(tool-bar-local-item, tool-bar-local-item-from-menu):
Don't select the image yet, do it later in tool-bar-make-keymap.
Stefan Monnier [Wed, 7 May 2008 15:07:02 +0000 (15:07 +0000)]
(gnus-enter-server-buffer): Make sure the server-buffer
is current before calling gnus-server-prepare.
(gnus-server-setup-buffer, gnus-server-update-server)
(gnus-server-read-server, gnus-browse-exit): Use with-current-buffer.
Dan Nicolaescu [Wed, 7 May 2008 06:01:08 +0000 (06:01 +0000)]
(Fx_create_frame): Make a copy of frame parameters
because the original parameters are in pure storage now.
(mac_window): Remove unused params. Update callers.