Try to detect file modification within the same second.
[bpt/emacs.git] / src / ChangeLog
index 9d70a33..ad88dc8 100644 (file)
@@ -1,3 +1,256 @@
+2010-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       Try to detect file modification within the same second.
+       * buffer.h (struct buffer): New field modtime_size.
+       * buffer.c (reset_buffer): Initialize it.
+       * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
+       (Fverify_visited_file_modtime): Check it.
+       (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
+       (Fset_visited_file_modtime): Set (or clear) it.
+
+2010-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * process.c (status_notify): Remove unused var `ro'.
+
+2010-04-12  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
+       more than one visual (Bug#5938).
+
+2010-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE): Undefine.
+
+2010-04-11  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Remove C_SWITCH_SYSTEM_TEMACS.
+       * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
+       (malloc, realloc, free): Use emacs, not temacs for conditional
+       definition.
+
+       * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
+       (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
+
+       Use autoconf, not cpp for some variables.
+       * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
+       (C_SWITCH_X_SITE): Define using autoconf, not cpp.
+       (ALL_CFLAGS): Use them as make variables.
+       (really-lwlib, really-oldXMenu): Do not pass them.
+
+2010-04-11  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xmenu.c (apply_systemfont_to_dialog): New.
+       (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
+
+2010-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * process.c (exec_sentinel): Preserve current-buffer.
+
+       * process.c (read_process_output): Move the save-current-buffer to
+       apply to both the filter and the non-filter branches.
+
+2010-04-10  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * s/msdos.h (UNEXEC): New definition.
+
+2010-04-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
+       (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
+
+       * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
+       Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
+       set in FLAGS.  Callers with non-zero CHECK_MARGINS changed to use
+       TRY_WINDOW_CHECK_MARGINS.
+
+       * xfns.c (Fx_show_tip): Undo last change.  Call try_window with
+       TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).  Subtract last glyph's
+       width only when it is for padding.
+
+2010-04-09  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xfns.c (Fx_show_tip): Call try_window in a loop until
+       fonts_changed_p is zero (Bug#2423).
+
+2010-04-08  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
+       the end of TEXT_AREA.  (Bug#5856)
+
+2010-04-08  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
+       HAVE_GCONF.
+
+2010-04-08  Eli Zaretskii  <eliz@gnu.org>
+
+       * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
+       prev.orig_type, for resolving type of NSM.  (Bug#5858)
+
+2010-04-08  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
+       (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
+       in current_font.
+       (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
+       (Ffont_get_system_normal_font, xsettings_get_system_normal_font): New
+       functions.
+       (syms_of_xsettings): Initialize current_font. defsubr
+       Sfont_get_system_normal_font.
+
+       * xsettings.h (Ffont_get_system_normal_font,
+       xsettings_get_system_normal_font): Declare.
+
+       * xfns.c (extern xlwmenu_default_font): Remove.
+       (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
+       to xlwmenu.c.
+
+       * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
+       menu items in UTF-8.
+
+       * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
+       (apply_systemfont_to_menu): New function.
+       (set_frame_menubar, create_and_show_popup_menu): Call
+       apply_systemfont_to_menu.
+
+2010-04-07  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
+       FRAME_LINE_TO_PIXEL_Y.
+
+       * xterm.c (x_set_window_size_1): Don't add border_width/height to
+       pixelwidth/height.
+
+2010-04-07  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Simplify code for HP machines.
+       * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
+       for GNU_LINUX, not needed.
+       (UNEXEC, NEED_BSDTTY): Move definitions...
+       * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
+
+       * m/iris4d.h (UNEXEC): Move definition ...
+       * s/irix6-5.h (UNEXEC): ... here.
+
+2010-04-04  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xfns.c (set_machine_and_pid_properties): New function.
+       (Fx_create_frame): Call set_machine_and_pid_properties.
+
+2010-04-03  Eli Zaretskii  <eliz@gnu.org>
+
+       * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
+       bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
+       BIDI_EOB.  Fixes infloop with vertical cursor motion at ZV.
+
+       * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
+       in this function.  (Bug#5703)
+
+2010-04-03  Chong Yidong  <cyd@stupidchicken.com>
+
+       * nsterm.h: Fix last change.
+
+2010-04-03  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * m/intel386.h (NO_REMAP): Move definition ...
+       * s/msdos.h (NO_REMAP): ... here.
+
+       * m/vax.h (CRT0_DUMMIES): Remove, unused.
+
+       * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
+       used on those platforms.
+
+2010-04-02  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Remove extern errno declarations.
+       * xterm.c:
+       * xrdb.c:
+       * w32term.c:
+       * unexec.c:
+       * unexaix.c:
+       * sysdep.c:
+       * process.c:
+       * lread.c:
+       * keyboard.c:
+       * floatfns.c:
+       * filelock.c:
+       * fileio.c:
+       * emacs.c (main):
+       * ecrt0.c:
+       * dispnew.c:
+       * callproc.c:
+       * buffer.c: Remove errno extern declarations.
+       * s/netbsd.h (NEED_ERRNO): Remove.
+
+2010-04-01  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Remove all uses of LIBX11_SYSTEM.
+       * Makefile.in (LIBX11_SYSTEM): Remove.
+       * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
+       instead.
+
+2010-04-01  Eli Zaretskii  <eliz@gnu.org>
+
+       Remove support for DJGPP v1.x (bug#5813).
+
+       * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
+       * s/msdos.h:
+       * unexec.c (make_hdr, copy_text_and_data):
+       * sysdep.c (wait_for_termination, sys_subshell):
+       * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
+       (IT_set_terminal_modes, __write, _rename, gethostname)
+       (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
+       (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
+       the value of __DJGPP__.
+       (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
+       compatibility code.
+       * lread.c:
+       * gmalloc.c (memalign):
+       * fileio.c (Fcopy_file, check_executable, Ffile_modes):
+       * emacs.c (main):
+       * dosfns.c (init_dosfns):
+       * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
+
+2010-04-01  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
+       string with `cursor' property comes from an `after-string'
+       overlay.  (Bug#5816)
+
+2010-04-01  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
+       Define as Makefile variables.
+       (LIBX): Use above variables rather than directly using autoconf.
+
+2010-03-31  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Clean up BSD_SYSTEM use.
+       * xterm.c:
+       * process.c:
+       * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
+       for including <sys/ioctl.h>.
+       * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
+       code is only used for MSDOS.
+
+2010-03-31  Juri Linkov  <juri@jurta.org>
+
+       * image.c: Add `Qextension_data'.
+       (syms_of_image): Initialize and staticpro `Qextension_data'.
+       (Fimage_metadata): Rename from `Fimage_extension_data'.
+       (gif_load): Put GIF extension data to the property
+       `Qextension_data'.
+
+2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
+
+       * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
+       * nsterm.h: Fix prototype.
+
+2010-03-31  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (highlight_trailing_whitespace): Support highlight of
+       trailing whitespace in right-to-left rows.
+
 2010-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        Get rid of the direct_output optimizations.
 
        * xdisp.c (x_consider_frame_title, update_window_cursor):
        Remove HAVE_NS conditionals.
-       (prepare_menu_bars)[HAVE_NS]: Call ns_set_doc_edited.
+       (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
 
        * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
        filename for the title.
 2010-03-12  Eli Zaretskii  <eliz@gnu.org>
 
        These changes remove termcap.c from the build on Posix platforms.
-       * Makefilie.in (termcapobj): Move termcap.o from here...
+       * Makefile.in (termcapobj): Move termcap.o from here...
        (MSDOS_OBJ): ...to here.
        (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
        now identical to when LIBS_TERMCAP is defined.
 2010-01-19  Alan Mackenzie  <acm@muc.de>
 
        Fix spurious before-change-functions invocation from (insert ?\n).
-       * textprop.c (set_text_properties): rename parameter
+       * textprop.c (set_text_properties): Rename parameter
        `signal_after_change_p' to `coherent_change_p', and make the
        invocation of `modify_region' conditional on it.
 
 
        * font.c (Vfont_encoding_alist, find_font_encoding): Move from
        fontset.c.
-       (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
+       (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
        (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
        FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
        only when HAVE_WINDOW_SYSTEM is defined.
 
 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
 
-       * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
+       * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
 
 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)