+2008-08-15 Eli Zaretskii <eliz@gnu.org>
+
+ * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
+
+ * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
+ Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
+ All users changed.
+ (stat): Only root directory passed to GetDriveType. Allow RAM
+ disk as well as local fixed disk when w32-get-true-file-attributes
+ is set to `local'.
+ (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
+ (equal_sid, get_length_sid, copy_sid): New wrapper functions.
+ (w32_cached_id, w32_add_to_cache): New functions.
+ (get_name_and_id): Look account names in the cache before calling
+ lookup_account_sid.
+ (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
+ New initialization flags.
+ (globals_of_w32): Initialize them to zero.
+ (w32_system_process_attributes): Use w32_cached_id and
+ w32_add_to_cache.
+
+2008-08-14 Lawrence Mitchell <wence@gmx.li>
+
+ * lread.c (Fread_char, Fread_char_exclusive): If no character
+ event is read before timeout is reached, return nil, rather than
+ converting to a number.
+
+2008-08-14 Chong Yidong <cyd@stupidchicken.com>
+
+ * fns.c (use_dialog_box): Doc fix.
+
+ * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
+ on OS X.
+
+2008-08-13 Chong Yidong <cyd@stupidchicken.com>
+
+ * frame.c (Qns_parse_geometry): New var.
+ (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
+
+2008-08-11 Chong Yidong <cyd@stupidchicken.com>
+
+ * xdisp.c (x_produce_glyphs): Handle the case when font has no
+ space character in calculating tabs.
+
+2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
+
+2008-08-10 Glenn Morris <rgm@gnu.org>
+
+ * process.c (procfs_system_process_attributes): Use EMACS_INTs to
+ silence gcc "limited range of data type" warnings in some
+ make_fixnum_or_float calls.
+
+2008-08-09 Eli Zaretskii <eliz@gnu.org>
+
+ * w32.c (w32_system_process_attributes): If the process does not
+ exist, return nil.
+
+ * w32.c: Include thelp32.h, psapi.h and coding.h.
+ (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
+ declarations.
+ (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
+ (Process32Next_Proc): New typedefs.
+ (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
+ (g_b_init_process32_next, g_b_init_open_thread_token)
+ (g_b_init_impersonate_self, g_b_init_revert_to_self)
+ (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
+ (g_b_init_get_process_working_set_size)
+ (g_b_init_global_memory_status_ex): New static variables.
+ (globals_of_w32): Initialize them.
+ (create_toolhelp32_snapshot, process32_first, process32_next)
+ (open_thread_token, impersonate_self, revert_to_self)
+ (get_process_memory_info, get_process_working_set_size)
+ (global_memory_status, global_memory_status_ex): New wrapper
+ functions.
+ (w32_list_system_processes, w32_system_process_attributes)
+ (enable_privilege, restore_privilege, ltime, process_times): New
+ functions.
+ (convert_time_raw): New function.
+ (convert_time): Remove conversion of FILETIME into time in 100
+ nsec units, call convert_time_raw instead.
+
+ * process.h (w32_list_system_processes, w32_system_process_attributes):
+ Add prototypes.
+ (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
+ (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
+ (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
+ (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
+
+ * process.c (Fsystem_process_attributes): Doc fix.
+
+2008-08-08 Chong Yidong <cyd@stupidchicken.com>
+
+ * xdisp.c (move_it_to): When stopping at a charpos, check if
+ that's a continued multi-char glyph; if so, advance to the actual
+ glyph.
+
+2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * s/darwin.h (OTHER_FILES): Do not define here, defined in
+ config.in.
+
+ * Makefile.in (ALL_OBJC_CFLAGS): New variable.
+ (.m.o): Use it.
+ * config.in: Regenerate.
+
+2008-08-07 Chong Yidong <cyd@stupidchicken.com>
+
+ * xdisp.c (redisplay_window): Revert last change.
+ (try_window): Check bottom scroll margin too.
+
+2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
+
+ * config.in: Regenerate.
+
+ * Makefile.in (emacs): Remove ndef NS conditional for 'emacs
+ -list-load-path-shadows'.
+ (nsgui.h): Reduce number of things depending on it.
+
+2008-08-06 Chong Yidong <cyd@stupidchicken.com>
+
+ * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
+ instead of window-end which does the wrong thing at eob.
+ (try_cursor_movement): Minor optimization.
+ (redisplay_window): If scroll margin is defined, don't assume
+ window doesn't need scrolling.
+
+2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
+
+ * config.in: Regenerate.
+
+ * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
+ (mostlyclean): Don't delete *.d under NS.
+
+ * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
+
+2008-08-06 Kenichi Handa <handa@m17n.org>
+
+ * xfont.c (xfont_list_family): Return a list of symbols, not
+ strings.
+
+2008-08-06 Andreas Schwab <schwab@suse.de>
+
+ * config.in: Regenerate.
+
+2008-08-05 Chong Yidong <cyd@stupidchicken.com>
+
+ * xdisp.c (redisplay_window): Don't enforce scroll-margin when
+ forcing a window start.
+
+ * fileio.c (Vauto_save_list_file_name): Move here from file.el.
+ (auto_save_1): Update modtime when auto-save-list-file-name is on.
+
+2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
+
+ * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
+ argument.
+
+2008-08-05 Juanma Barranquero <lekktu@gmail.com>
+
+ * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
+ <scroll-down-aggressively, before-change-functions>:
+ <after-change-functions>: Reflow docstrings.
+
+2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
+ Ken Raeburn <raeburn@gnu.org>
+
+ Dock menu customization, based on a patch by Ken Raeburn, plus some
+ other fixes.
+ * nsmenu.m (dockMenu): New variable.
+ (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
+
+ * nsterm.h (dockMenu): Declare.
+
+ * nsterm.m (KEY_NS_NEW_FRAME): New definition.
+ (ns_term_init): Initialize dockMenu.
+ (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
+ (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
+ left.
+
+ * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
+
+2008-08-04 Chong Yidong <cyd@stupidchicken.com>
+
+ * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
+
+ * config.in: Regenerate.
+
+2008-08-04 Seiji Zenitani <zenitani@mac.com>
+
+ * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
+
+2008-08-04 Chong Yidong <cyd@stupidchicken.com>
+
+ * nsterm.h (find_and_call_menu_selection): Fix prototype.
+
+2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
+
+ * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
+
+ * keyboard.h: Comment an #endif.
+
+ * lisp.h (have_menus_p): Adjust comment.
+
+ * menu.c (find_and_return_menu_selection): Fix comparison with
+ client_data.
+
+ * nsmenu.m (popup_activated_flag): New variable.
+ (popup_activated): New function.
+ (menu-or-popup-active-p): New exported lisp definition.
+ (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
+ when popup done.
+ (ns_popup_dialog): Set popup_activated_flag.
+
+ * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
+ version for GNUstep (handled by conditional typedef in nsterm.m).
+ (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
+ in rgb.txt).
+
+ * process.c (init_process): Use DARWIN_OS, not DARWIN.
+
+ * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
+
+ * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
+
+ * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
+ shortcircuit if popup_activated like GTK and X toolkit.
+
+ * m/inter386.h: Change DARWIN to DARWIN_OS.
+
+ * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
+ Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
+ closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
+ comment on NO_SOCK_SIGIO.
+
+2008-08-03 Chong Yidong <cyd@stupidchicken.com>
+
+ * nsterm.m (windowDidResize): Remove stopModal call.
+
+2008-08-03 Andreas Schwab <schwab@suse.de>
+
+ * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
+ (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
+
+2008-08-02 Chong Yidong <cyd@stupidchicken.com>
+
+ * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
+ Don't use uninitialized pointer variable when using getrlimit.
+
+2008-08-02 Jason Rumney <jasonr@gnu.org>
+
+ * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
+
+2008-08-02 Eli Zaretskii <eliz@gnu.org>
+
+ * alloc.c (NSTATICS): Bump to 0x640.
+
+ * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
+
+ * lisp.h: Add prototype for directory_files_internal.
+
+ * process.c (Fsystem_processes_list, Fsystem_process_attributes):
+ New functions.
+ (syms_of_process): Defsubr them. Add initializations for various
+ Q* symbols used in procfs_system_process_attributes.
+ (procfs_list_system_processes, procfs_system_process_attributes)
+ [HAVE_PROCFS]: New functions.
+ (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
+ (procfs_get_total_memory): New functions.
+
2008-08-01 Juanma Barranquero <lekktu@gmail.com>
* xfaces.c (Fx_load_color_file): Fix previous change;
* xfaces.c (x-load-color-file): Add.
* nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
Emacs.clr.
- (ns_draw_window_cursor): Change PENDING to TODO or FIXME.
(hide_hourglass): BLOCK_INPUT before UNBLOCK.
2008-07-31 Michael Albinus <michael.albinus@gmx.de>
* keyboard.c:
* frame.h:
* frame.c:
- * frame.c: Remove references to MULTI_KBOARD, it is now the
- default.
+ * frame.c: Remove references to MULTI_KBOARD, it is now the default.
* config.in: Regenerate.
2008-07-30 Jason Rumney <jasonr@gnu.org>
* w32proc.c (Fw32_long_file_name): Don't append dir separator to
bare drive.
-2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
-
- * nsgui.h:
- * nsfont.m:
- * nsmenu.m:
- * nsterm.m: Change PENDINGS to FIXME / TODO / XXX.
-
2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
* nsterm.m (syms_of_nsterm): Remove debugging println.
* nsgui.h: Remove redefinitions of hash_remove.
* fns.c (hash_remove): Rename to hash_remove_from_table.
-2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
+2008-07-19 Seiji Zenitani <zenitani@mac.com>
* nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
- strdup() the family UTF8String before modifying it. Patch due to
- Seiji Zenitani.
+ strdup() the family UTF8String before modifying it.
2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
- * nsfns.m (ns_set_background_color): Apply patch from Chong Yidong to
- fix crash.
* nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
NS_FACE_BACKGROUND with 0 instead of nil.
* nsfont.m (nsfont_draw): Same.
+2008-07-19 Chong Yidong <cyd@stupidchicken.com>
+
+ * nsfns.m (ns_set_background_color): Fix crash.
+
2008-07-18 Chong Yidong <cyd@stupidchicken.com>
* Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
* s/darwin.h: Reorganize ifdefs.
-2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
-
- * config.in:
- * dispextern.h:
- * frame.c:
- * image.c:
- * nsfns.m:
- * nsfont.m:
- * nsgui.h:
- * nsmenu.m:
- * nsterm.h:
- * nsterm.m:
- * s/darwin.h:
- * xdisp.c: Change most cases of PENDING to TODO, some to FIXME or XXX.
-
2008-07-17 Andreas Schwab <schwab@suse.de>
* s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
* Makefile.in: Correct additions for nsfont.o in last commit.
* nsfont.m: New file (forgot last commit).
+2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
+
+ * callproc.c (set_initial_environment): Initialize
+ Vprocess_environment under CANNOT_DUMP (fixes crash when
+ batch-compiling for bootstrap).
+
+2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
+ YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
+ fix crash due to different init order.
+
2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
Changes and additions for NeXTstep windowing system (Cocoa and
* config.in: Support defines and build commands for NS port.
* blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
(UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
- * callproc.c (set_initial_environment): Initialize
- Vprocess_environment under CANNOT_DUMP (fixes crash when
- batch-compiling for bootstrap, due to Chris Hall).
* dispextern.h: Include nsgui.h and add needed typedefs under NS
windowing.
(struct face): Add synth_ital field.
(fontset_from_font): Autoconstruct fontset under NS.
* frame.c (various): Under NS, include nsterm.h, add Qns window system
symbol, document and use it.
- (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
- patch to fix crash due to different init order, due to Chris Hall and
- Yamamoto Mitsuharu.
(do_switch_frame): When for_deletion under Cocoa, add
Fraise_frame(Qnil).
(x_set_frame_parameters): Ensure font attribute changes are picked up.
* m/ia64.h (SPECIAL_EMACS_INT):
* m/amdx86-64.h (SPECIAL_EMACS_INT):
* s/gnu.h (NLIST_STRUCT):
- * aix4-2.h (X11R5_INHIBIT_I18N):
+ * s/aix4-2.h (X11R5_INHIBIT_I18N):
* s/gnu-linux.h (LINUX):
* s/msdos.h (HAVE_FACES):
* s/ms-w32.h (HAVE_FACES): Don't define, unused.
2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
- * src/fileio.c:
- * src/sysdep.c
- * src/systty.h:
- * src/m/ibmrs6000.h:
- * src/m/iris4d.h:
- * src/s/aix4-2.h:
- * src/s/freebsd.h:
- * src/s/gnu-linux.h:
- * src/s/hpux10-20.h:
- * src/s/hpux11.h:
- * src/s/netbsd.h:
- * src/s/sol2-3.h:
- * src/s/sol2-4.h:
- * src/s/sol2.h:
- * src/s/usg5-4.h:
- * src/s/vms.h: Remove references to unused variables.
+ * fileio.c:
+ * sysdep.c
+ * systty.h:
+ * m/ibmrs6000.h:
+ * m/iris4d.h:
+ * s/aix4-2.h:
+ * s/freebsd.h:
+ * s/gnu-linux.h:
+ * s/hpux10-20.h:
+ * s/hpux11.h:
+ * s/netbsd.h:
+ * s/sol2-3.h:
+ * s/sol2-4.h:
+ * s/sol2.h:
+ * s/usg5-4.h:
+ * s/vms.h: Remove references to unused variables.
2008-07-10 Andreas Schwab <schwab@suse.de>
* s/uxpds.h:
* s/uxpv.h: Remove support for obsolete systems.
* s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
- Remove, insert contents in s/hpux-10.20.h
+ Remove, insert contents in s/hpux-10.20.h.
* s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
- Remove, insert contents in s/aix-4.2.h
+ Remove, insert contents in s/aix4-2.h.
* s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
- * s/bsd4-3.h: Rename to ..
+ * s/bsd4-3.h: Rename to ...
* s/bsd-common.h: ... this.
- * src/data.c:
- * src/doc.c:
- * src/ecrt0.c:
- * src/emacs.c:
- * src/fileio.c:
- * src/floatfns.c:
- * src/keyboard.c:
- * src/mem-limits.h:
- * src/print.c:
- * src/process.c:
- * src/sysdep.c:
- * src/syssignal.h:
- * src/systty.h:
- * src/syswait.h:
- * src/term.c:
- * src/unexec.c:
- * src/unexelf.c:
- * src/unexhp9k800.c:
- * src/m/hp800.h:
- * src/m/ibmrs6000.h:
- * src/m/mips.h:
- * src/m/vax.h:
- * src/s/darwin.h:
- * src/s/freebsd.h:
- * src/s/gnu.h:
- * src/s/ms-w32.h:
- * src/s/msdos.h:
- * src/s/netbsd.h:
- * src/s/template.h: Remove references to obsolete variables.
+ * data.c:
+ * doc.c:
+ * ecrt0.c:
+ * emacs.c:
+ * fileio.c:
+ * floatfns.c:
+ * keyboard.c:
+ * mem-limits.h:
+ * print.c:
+ * process.c:
+ * sysdep.c:
+ * syssignal.h:
+ * systty.h:
+ * syswait.h:
+ * term.c:
+ * unexec.c:
+ * unexelf.c:
+ * unexhp9k800.c:
+ * m/hp800.h:
+ * m/ibmrs6000.h:
+ * m/mips.h:
+ * m/vax.h:
+ * s/darwin.h:
+ * s/freebsd.h:
+ * s/gnu.h:
+ * s/ms-w32.h:
+ * s/msdos.h:
+ * s/netbsd.h:
+ * s/template.h: Remove references to obsolete variables.
* Makefile.in: Add dependencies for all unexec files.
(admindir): Remove unused variable.
* w32font.c (w32font_list, w32font_match): Add logging.
- * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
+ * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
2008-06-17 Chong Yidong <cyd@stupidchicken.com>
2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* macfns.c (mac_window): Replace WindowPtr with WindowRef.
+
* macgui.h: Replace WindowPtr with WindowRef.
* macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and