Commit graph

196 commits

Author SHA1 Message Date
Andreas Schwab
58a1288952 (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
can properly handle unsigned types.
(make_uid, make_gid): Removed.
2009-10-24 16:34:52 +00:00
Dan Nicolaescu
d7306fe6b1 * alloc.c: Do not define struct catchtag.
* eval.c: Move struct catchtag definition ...
* lisp.h: ... here.

* image.c: Move png.h #include earlier to avoid warnings.

* xterm.c:
* xsmfns.c:
* xselect.c:
* xrdb.c:
* xmenu.c:
* xftfont.c:
* xfont.c:
* xfns.c:
* xfaces.c:
* xdisp.c:
* window.c:
* widget.c:
* w32xfns.c:
* w32uniscribe.c:
* w32term.c:
* w32select.c:
* w32reg.c:
* w32proc.c:
* w32menu.c:
* w32inevt.c:
* w32heap.c:
* w32font.c:
* w32fns.c:
* w32console.c:
* w32.c:
* w16select.c:
* vm-limit.c:
* unexsol.c:
* unexec.c:
* unexcw.c:
* unexaix.c:
* undo.c:
* tparam.c:
* textprop.c:
* terminfo.c:
* terminal.c:
* termcap.c:
* term.c:
* syntax.c:
* sound.c:
* sheap.c:
* search.c:
* scroll.c:
* region-cache.c:
* regex.c:
* ralloc.c:
* process.c:
* print.c:
* msdos.c:
* minibuf.c:
* menu.c:
* marker.c:
* macros.c:
* keymap.c:
* keyboard.c:
* intervals.c:
* insdel.c:
* indent.c:
* gtkutil.c:
* ftxfont.c:
* ftfont.c:
* fringe.c:
* frame.c:
* fontset.c:
* font.c:
* fns.c:
* floatfns.c:
* filelock.c:
* fileio.c:
* emacs.c:
* editfns.c:
* dosfns.c:
* doprnt.c:
* doc.c:
* dispnew.c:
* dired.c:
* dbusbind.c:
* data.c:
* composite.c:
* coding.c:
* cmds.c:
* cm.c:
* chartab.c:
* charset.c:
* character.c:
* ccl.c:
* category.c:
* casetab.c:
* casefiddle.c:
* callproc.c:
* callint.c:
* bytecode.c:
* buffer.c:
* atimer.c: Include setjmp.h.  (Bug#4643)

* xlwmenu.c:
* lwlib.c:
* lwlib-utils.c:
* lwlib-Xm.c:
* lwlib-Xlw.c:
* lwlib-Xaw.c: Include setjmp.h.
2009-10-19 04:27:09 +00:00
Eli Zaretskii
e02131a257 (Ffile_attributes): Doc fix. (Bug#4638) 2009-10-05 08:35:41 +00:00
Juanma Barranquero
a489517b88 * dired.c (Fdirectory_files): Fix typo in docstring. 2009-09-24 01:04:27 +00:00
Eli Zaretskii
b604615531 (directory_files_internal) [WINDOWSNT]: Don't make a local copy
of dirfilename.
2009-07-13 20:23:46 +00:00
Eli Zaretskii
6515680713 (directory_files_internal_w32_unwind) [WINDOWSNT]: New function.
(directory_files_internal) [WINDOWSNT]: Bind
w32-get-true-file-attributes to either t or nil, depending whether the
filesystem of the directory is fast or slow.
2009-07-11 15:45:45 +00:00
Eli Zaretskii
8090412003 (Ffile_attributes): Decode user and group names by the locale's encoding. 2009-07-03 14:22:35 +00:00
Eli Zaretskii
21f73755fe (Ffile_attributes): Doc fix. 2009-05-23 09:10:42 +00:00
Eli Zaretskii
51105b1324 (make_uid, make_gid): New functions.
(Ffile_attributes): Use them to avoid negative UID and GID.
2009-03-20 17:58:10 +00:00
Eli Zaretskii
78e7d1fe15 (Ffile_attributes): Make sure UID and GID are always positive, even
if the value is too large for a positive EMACS_INT.  Doc fix.
2009-03-18 20:38:41 +00:00
Stefan Monnier
7519c40d29 (file_name_completion): Disable the first optimization just
installed, since it is not implemented correctly.
2009-03-18 02:26:29 +00:00
Stefan Monnier
2cd298e2db (file_name_completion): Check completion-ignored-extensions
only if the entry can't affect bestmatch anyway.
Stop the search early, as Ftry_completion already does.
2009-03-17 19:05:40 +00:00
Glenn Morris
76b6f70759 Add 2009 to copyright years. 2009-01-08 03:15:17 +00:00
Chong Yidong
cc524e3b21 (file_name_completion): If completion_ignore_case is enabled, ignore
case when checking completion-regexp-list.
2008-11-08 16:55:23 +00:00
Eli Zaretskii
25ae5671dd (Ffile_attributes): Fix comment in last change. 2008-08-27 19:11:40 +00:00
Chong Yidong
ff8ddc7b31 (Ffile_attributes): Avoid compiler warning in bitshift. 2008-08-27 19:03:42 +00:00
Chong Yidong
e933b15ea3 (Fdirectory_files): Doc fix. 2008-08-15 20:17:12 +00:00
Dan Nicolaescu
7c2fb837ec * bitmaps/README:
* xfns.c:
* termcap.c:
* term.c:
* syswait.h:
* systty.h:
* systime.h:
* syssignal.h:
* sysdep.c:
* process.h:
* process.c:
* print.c:
* ndir.h:
* lread.c:
* keyboard.c:
* getpagesize.h:
* floatfns.c:
* fileio.c:
* emacs.c:
* doc.c:
* dispnew.c:
* dired.c:
* data.c:
* callproc.c:
* buffer.c:
* README:
* Makefile.in:
* s/template.h:
* s/msdos.h:
* m/vax.h: Remove VMS support.
* s/vms.h:
* vlimit.h:
* uaf.h:
* temacs.opt:
* param.h:
* ioctl.h: Remove file.

* descrip.mms:
* compile.com: Remove file.
* Create.c: Remove VMS support.

* message.el (Module):

* gnus-start.el (Module):

* gnus-registry.el (Module):

* textmodes/texinfmt.el:
* nxml/nxml-enc.el:
* mail/feedmail.el:
* international/mule.el:
* international/latexenc.el:
* emulation/viper-util.el:
* emulation/viper-init.el:
* emulation/viper-ex.el:
* emacs-lisp/bytecomp.el:
* version.el:
* subr.el:
* startup.el:
* sort.el:
* shadowfile.el:
* recentf.el:
* printing.el:
* paths.el:
* minibuffer.el:
* ls-lisp.el:
* loadup.el:
* hippie-exp.el:
* finder.el:
* files.el:
* ediff-util.el:
* ediff-ptch.el:
* ediff-init.el:
* ediff-diff.el:
* dired.el:
* dired-aux.el:
* cus-edit.el:
* bindings.el:
* arc-mode.el:
* add-log.el: Remove VMS support.
* obsolete/vmsproc.el:
* obsolete/vms-pmail.el:
* obsolete/vms-patch.el: Remove file.

* etags.c:
* emacsclient.c: Remove VMS support.

* termcap.src: Remove file.
* README:
* PROBLEMS:
* MACHINES: Remove VMS info.

* ediff.texi: Remove VMS support.

* os.texi:
* intro.texi:
* files.texi: Remove VMS support.

* emacs.texi: Remove VMS support.

* make-dist:
* README: Remove VMS support.
* vms: Remove directory.
2008-07-31 05:33:56 +00:00
Stefan Monnier
928b5acc5e * dired.c (file_name_completion): Don't return t if the match is exact
but with different capitalization.
* minibuf.c (Ftry_completion): Simplify.
2008-06-10 18:41:01 +00:00
Eli Zaretskii
1cab27d254 (Ffile_attributes): Shut up GCC warnings about st_uid 2008-05-16 11:12:48 +00:00
Glenn Morris
9ec0b715e2 Switch to recommended form of GPLv3 permissions notice. 2008-05-14 07:50:26 +00:00
Stefan Monnier
3271a8f56c (file_name_completion): Tweak the code so as to always do it
in a single pass.  Tighten the scope of some variables.
2008-05-13 05:16:43 +00:00
Stefan Monnier
01bb401886 (Qdefault_directory): New var.
(file_name_completion): Use it instead of Fexpand_file_name.
(syms_of_dired): Initialize it.
2008-05-13 04:39:32 +00:00
Eli Zaretskii
6c5665e9c4 (Ffile_attributes, Fdirectory_files_and_attributes): Mention
w32-get-true-file-attributes in doc string.
2008-05-10 08:35:15 +00:00
Eli Zaretskii
8aaaec6b62 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.
2008-05-09 19:03:52 +00:00
Eli Zaretskii
7412d42903 (Ffile_attributes): Don't allow the device number become negative. 2008-05-03 10:17:22 +00:00
Stefan Monnier
2a54a229c0 (file_name_completion): Fix up the encoding/decoding issue
some more.  Copy some of the code from Ftry_completions.
Remove special case code that dates back to initial revision when the
slash was only added when necessary and that can't trigger nowadays.
2008-04-30 07:16:08 +00:00
Andreas Schwab
fb4a622af4 (file_name_completion): Fix another mixing of encoded
and decoded names.
2008-04-28 18:33:06 +00:00
Andreas Schwab
9c691c002b (file_name_completion): Fix inappropriate mixing of
encoded and decoded names.
2008-04-27 18:06:51 +00:00
Eli Zaretskii
01388a3dd2 (Ffile_attributes) [WINDOWSNT]: Undo change from 2008-03-31, it's not needed
anymore with `struct stat' definition on nt/inc/sys/stat.h.  Undo changes
from 2007-01-12 and 2007-01-13 for the same reasons.
2008-04-26 08:23:21 +00:00
Stefan Monnier
6c8b4f07d1 (directory_files_internal, file_name_completion):
Only call ENCODE_FILE if the string is indeed decoded.
2008-04-19 03:09:47 +00:00
Miles Bader
d02fe47dd3 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1112
2008-04-18 02:56:45 +00:00
Eli Zaretskii
f3a3640be8 (Ffile_attributes) [WINDOWSNT]: Force inode be positive. 2008-04-05 19:10:08 +00:00
Eli Zaretskii
e058f331f5 (Ffile_attributes): Support inode numbers wider than 32 bits.
Remove ugly WINDOWSNT-specific kludge introduced on 2008-03-14 to force
inode be positive.
2008-04-05 14:31:42 +00:00
Jason Rumney
3036dd2672 (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned. 2008-03-31 14:22:12 +00:00
Eli Zaretskii
294f1153b5 (Ffile_attributes) [WINDOWSNT]: Force inode be positive. 2008-03-14 17:31:09 +00:00
Miles Bader
430d2ee291 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
2008-01-09 01:21:15 +00:00
Glenn Morris
8cabe764e9 Add 2008 to copyright years. 2008-01-08 04:37:27 +00:00
Miles Bader
9c8020a8df Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 890-898)

   - Update from CVS
   - Merge from emacs--rel--22

 * emacs--rel--22  (patch 122-128)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 257-258)

   - Merge from emacs--rel--22
   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-270
2007-10-19 00:00:21 +00:00
Glenn Morris
ecd3f8b27a (Qcompletion_ignore_case): Change to external.
(syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
2007-10-17 01:31:14 +00:00
Glenn Morris
0af8c48ee0 (Qcompletion_ignore_case): Change to external.
(syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
2007-10-17 01:30:59 +00:00
Miles Bader
b2e6b10fe2 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 846-851)

   - Update from CVS
   - Merge from emacs--rel--22

 * emacs--rel--22  (patch 88-92)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 242-244)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-246
2007-08-13 13:48:35 +00:00
Glenn Morris
e0f24100c7 Replace `iff' in comments. 2007-08-08 07:49:21 +00:00
Miles Bader
e468b87f91 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 824-831)

   - Update from CVS
   - Merge from emacs--rel--22

 * emacs--rel--22  (patch 70-74)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-238
2007-07-27 10:52:18 +00:00
Glenn Morris
684d6f5bcc Switch license to GPLv3 or later. 2007-07-25 05:19:07 +00:00
Miles Bader
d85d38392e Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 670-674)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 209-210)

   - Merge from emacs--devo--0
   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-185
2007-03-21 13:33:07 +00:00
Kim F. Storm
c4c52bb78a 2007-03-17 Richard M. Stallman <rms@gnu.org>
(file_name_completion): Gcpro NAME.
2007-03-17 23:44:57 +00:00
Miles Bader
c0466914ba Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 586-614)

   - Update from CVS
   - Update from erc--emacs--22
   - Merge from gnus--rel--5.10
   - Merge from erc--main--0
   - Make byte compiler correctly write circular constants

 * gnus--rel--5.10  (patch 186-196)

   - Update from CVS
   - Merge from emacs--devo--0

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-162
2007-01-26 06:16:11 +00:00
Eli Zaretskii
345c6b2420 (Ffile_attributes): Fix last change. 2007-01-13 21:45:34 +00:00
Eli Zaretskii
b55445d6ba (Ffile_attributes): Copy some members of `struct stat' into int's to avoid
GCC warnings about limited range of short in arguments to FIXNUM_OVERFLOW_P.
2007-01-12 15:55:49 +00:00