X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/4e7c53cad876d0ea997ff87b64bede37eca48c18..72d5003de7f3b317ef556d546c25d36b37f33d15:/src/ChangeLog diff --git a/src/ChangeLog b/src/ChangeLog index f9fdb60db7..6f65379c23 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,456 @@ +2008-03-25 Stefan Monnier + + * coding.c (decode_coding_object): When not decoding into a buffer, + obey the coding system's preference of (uni|multi)byte. + +2008-03-24 Stefan Monnier + + * casefiddle.c (casify_object): Avoid pathological N^2 worst case if + every char is changed and has a different byte-length. + (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word): + Fix int -> EMACS_INT. + +2008-03-23 David Hansen (tiny change) + + * dbusbind.c (xd_read_message): Remove extra copying of message + strings. Check for NULL `interface' or `member'. + +2008-03-22 Eli Zaretskii + + * w32.c (readdir): If FindFirstFile/FindNextFile return in + cFileName a file name that includes `?' characters, use the 8+3 + alias in cAlternateFileName instead. + +2008-03-21 Stefan Monnier + + * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT. + +2008-03-20 Stefan Monnier + + * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT. + (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg, + work on current_buffer only instead (that was already the case + for some of the code anyway). + * buffer.h (set_point, set_point_both): Remove buffer arg, use long int. + (temp_set_point, temp_set_point_both): Use EMACS_INT. + (SET_PT, SET_PT_BOTH): Adjust. + * intervals.h (set_point, temp_set_point, set_point_both) + (temp_set_point_both): Remove redundant declarations. + +2008-03-20 Stefan Monnier + + * fileio.c (Finsert_file_contents): + * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT. + * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right + when buffer != current_buffer anyway. + +2008-03-20 Andreas Schwab + + * callint.c (Fcall_interactively) [case 'B']: Use other-buffer + as default. + +2008-03-19 Jason Rumney + + * w32fns.c (hourglass_timer, hourglass_hwnd): New variables. + (syms_of_w32fns): Initialize them. + (HOURGLASS_ID): New constant. + (x_window_to_frame): Don't check hourglass_window. + (w32_wnd_proc) : Handle hourglass_timer. + (w32_wnd_proc) : Set pending hourglass cursor. + (w32_wnd_proc) : Set the hourglass or current cursor. + (w32_wnd_proc) : Set frame's current_cursor. + Only change the cursor if hourglass is not active. + (Fx_create_frame): Initialize frame's current_cursor. + (hourglass_atimer): Remove. + (hourglass_started): New function. + (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32. + (show_hourglass): Adapt to w32, changing argument to frame. + + * w32term.h (struct w32_output): Remove hourglass_window. + Add current_cursor. + + * eval.c (call_debugger, Fsignal): + * keyboard.c (recursive_edit_1, cmd_error, Ftop_level) + (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector) + (Fexecute_extended_command, cancel_hourglass_unwind): + * minibuf.c (read_minibuf): + * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM. + +2008-03-19 Stefan Monnier + + * window.c (run_funs): New fun. + (run_window_configuration_change_hook): Use it to run the buffer-local + and the global part of the hook. + + * xdisp.c (format_mode_line_unwind_data): Add window argument. + (unwind_format_mode_line): Restore selected window. + (x_consider_frame_title, Fformat_mode_line): Set selected window. + +2008-03-17 Stefan Monnier + + * editfns.c (Fchar_equal): Check they are valid characters. + + * buffer.h (Fbuffer_list): Declare (for use in callint.c). + +2008-03-17 Andreas Schwab + + * regex.c (re_match_2_internal): Properly match raw 8-bit bytes + against a charset. + + * lisp.h (Fbuffer_list): Declare. + +2008-03-17 Jan Dj$(Q)Z(Brv + + * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if + handlebox_widget is != 0. + +2008-03-16 Juri Linkov + + * callint.c (Fcall_interactively): For interactive code letters + 'b' and 'B' put the buffer list into the list of default "future" + values of the minibuffer. + +2008-03-16 Andreas Schwab + + * keyboard.c (read_key_sequence): Fix downcasing of letters with + modifiers. + + * regex.c (re_match_2_internal): Correct matching of a charset + against latin-1 characters. + +2008-03-16 Kenichi Handa + + * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY) + (STRING_CHAR_ADVANCE_NO_UNIFY): New macros. + (coding_alloc_by_making_gap): Fix the way to preserve data in the gap. + (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap. + (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of + CHAR_STRING_ADVANCE. + (produce_chars): Fix for the case that the source and the + destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY + instead of CHAR_STRING_ADVANCE. + (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of + STRING_CHAR_ADVANCE. + +2008-03-15 Andreas Schwab + + * regex.c (re_match_2_internal): Correct matching of eight bit + characters in unibyte strings. + +2008-03-15 Martin Rudalics + + * buffer.c (overlays_in, Foverlays_in): Include empty overlays + at end of range when it coincides with the end of the buffer. + +2008-03-14 Eli Zaretskii + + * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive. + + * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change. + +2008-03-14 Jason Rumney + + * editfns.c (initial_tz): New variable. + (syms_of_editfns): Initialize it. + (Fset_time_zone_rule): Set it when first called. + Use it when TZSTRING is nil. + + * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO) + (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions. + (monitor_from_point_fn, get_monitor_info_fn): New globals. + (globals_of_w32fns): Initialize them. + (compute_tip_xy): Use them to position tooltips. + +2008-03-14 Glenn Morris + + * emacs.c (main): Revert previous change. + (standard_args): Revert -internal-script back to -scriptload, + and remove the long-option form. + +2008-03-13 Glenn Morris + + * emacs.c (main, standard_args): Rename -scriptload to -internal-script. + Remove option -enable-font-backend. + +2008-03-12 Stefan Monnier + + * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer. + +2008-03-11 Jan Dj$(Q)Z(Brv + + * xterm.c (x_connection_closed): For GTK: If this is the last + terminal just exit without closing the display. + +2008-03-11 Jason Rumney + + * w32font.c (w32font_full_name): Use floor to round. + +2008-03-10 dhruva (tiny change) + + * sound.c (alsa_configure): Declare vol at beginning of block. + + * fontset.c (Ffontset_info): Remove extra semicolon. + +2008-03-10 Stefan Monnier + + * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum + size of resulting string. + +2008-03-10 Jason Rumney + + * dispnew.c (adjust_glyph_matrix): Initialize window_height. + +2008-03-10 YAMAMOTO Mitsuharu + + * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes. + Don't pretend as if characters with display property haven't been + consumed for string-replacing-string case. + +2008-03-08 Kim F. Storm + + * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro. + (get_next_display_element, next_element_from_string) + (next_element_from_ellipsis, next_element_from_buffer): Use it. + +2008-03-08 Andreas Schwab + + * process.h (struct Lisp_Process): Declare bit fields as unsigned. + +2008-03-06 Jason Rumney + + * w32font.c (w32_registry): Take font_type argument. Use ANSI + when charset not specified. Only translate ANSI to unicode when + font_type is truetype. + (w32font_coverage_ok): New function. + (add_font_entity_to_list): Use it to filter unsuitable fonts. + +2008-03-05 Kenichi Handa + + * lread.c (Fread_char): Resolve modifiers. + (Fread_char_exclusive): Likewise. + + * character.c (char_resolve_modifier_mask): New function. + (char_string): Use char_resolve_modifier_mask. + (Fchar_resolve_modifiers): New function. + (syms_of_character): Declare Fchar_resolve_modifiers as Lisp + function. + +2008-03-04 Jason Rumney + + * makefile.w32-in: Always include w32font.c in the build. + * w32font.c: Wrap in USE_FONT_BACKEND conditional. + +2008-03-04 Andreas Schwab + + * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*. + (versionclean): Likewise. + +2008-03-04 Juanma Barranquero + + * .cvsignore: Add oo. + +2008-03-03 Andreas Schwab + + * coding.c (decode_coding_object): Inhibit gap shrinking while + decoding in place. + +2008-03-03 Dan Nicolaescu + + * w32term.c: Remove unused include "gnu.h". + * makefile.w32-in (w32term.o): Don't depend on gnu.h. + + * gnu.h: Rename to ... + * emacs-icon.h: ... this. + * xterm.c: Use emacs-icon.h instead of gnu.h. + * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h. + +2008-03-03 Juanma Barranquero + + * w32font.c: Include math.h. + +2008-03-03 Jason Rumney + + * w32font.c (recompute_cached_metrics): Change font arg to w32font_info. + Compute options separately. + (w32font_open_internal): Set glyph_idx before caching metrics. + + * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1): + Define if system headers don't. + (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx. + (w32font_encode_char): Don't declare here. + + * w32font.c (Quniscribe, QCformat): New symbols. + (syms_of_w32font): Define them. + (w32font_has_char): Indicate uncertainty. + (w32font_encode_char): Encode as glyph point. Make static. + (recompute_cached_metrics): New function. + (w32font_open_internal): Use it. Set font to use glyph points + initially. Set format based on type of font. + (w32font_text_extents, w32font_draw): Optionally use glyph points. + (w32_enumfont_pattern_entity): Accept backend arg. Set type based + on it. Set format based on information available here. + (add_font_entity_to_list): Identify backend based on opentype_only. + +2008-03-02 Andreas Schwab + + * ftfont.c (ftfont_pattern_entity): Fix aliasing violations. + + * coding.c (decode_coding_big5, produce_chars): + Fix typos in last change. + +2008-03-02 Kentaro Ohkouchi + + * gnu.h: New icon. + +2008-03-02 Kenichi Handa + + * coding.c (decode_coding_utf_8): When eol-type of CODING is + `dos', don't decode '\r' if that is the last in the source. + (decode_coding_utf_16, decode_coding_emacs_mule) + (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) + (decode_coding_raw_text, decode_coding_charset): Likewise. + (produce_chars): Don't decode EOL here. Use EMACS_INT. + +2008-03-01 Jason Rumney + + * w32font.c (w32font_full_name): Report point size for scalable fonts. + +2008-03-01 Kim F. Storm + + * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face. + +2008-03-01 Jason Rumney + + * w32font.c (w32font_full_name): New function. + (w32font_open_internal): Use it. + +2008-03-01 Kim F. Storm + + * dispnew.c (line_draw_cost): Fix invalid glyph check. + +2008-03-01 Jason Rumney + + * font.c (font_unparse_fcname): Increase len when style is a symbol. + +2008-03-01 Jan Dj$(Q)Z(Brv + + * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call + xg_frame_resized when the event is for the edit widget. + + * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets. + + * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or + set_char_size. + (xg_frame_resized): Renamed from xg_resize_widgets. Remove all + operations on widgets here. Just set frame size if needed. + (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions. + (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing. + (x_wm_set_size_hint): Set size hints on the edit widget only, not + the whole frame. + (xg_create_tool_bar): Move attachement of the tool bar to + xg_pack_tool_bar. Do not attach the tool bar if there are no items. + (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED. + +2008-03-01 Jason Rumney + + * w32fns.c (w32_msg_pump): Disable debug code. + +2008-03-01 YAMAMOTO Mitsuharu + + * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64. + +2008-02-29 Chong Yidong + + * xdisp.c (next_overlay_string): Don't set + overlay_strings_at_end_processed_p if we're currently reading from + a display string. + +2008-02-29 Stefan Monnier + + * xdisp.c (get_overlay_strings_1): Fix typo. + +2008-02-29 Chong Yidong + + * xdisp.c (get_overlay_strings_1): Add missing argument type. + +2008-02-28 Kenichi Handa + + * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern. + + * xdisp.c (display_mode_element): Cancel the previous change. + (decode_mode_spec): Likewise. + (handle_auto_composed_prop): Don't make composition if it->string + is a string. + +2008-02-27 Kim F. Storm + + * lisp.h (GLYPH): Change type from int to struct with separate char + and face_id members. + (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros. + (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg. + (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ... + (GLYPH_CHAR, GLYPH_FACE): ... these. Change users. + (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ... + (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead. + (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P) + (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to + handle new Lisp glyph code encoding, either an integer or a cons. + + * disptab.h (GLYPH_SIMPLE_P): Rewrite. + (GLYPH_ALIAS): Delete. + (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite. + (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR. + (GLYPH_FROM_CHAR): Replace macro by ... + (SET_GLYPH_FROM_CHAR): ... this macro. Change users. + + * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify. + (GLYPH_FROM_CHAR_GLYPH): Replace macro by ... + (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users. + (GLYPH_INVALID_P): New macro. + (spec_glyph_lookup_face): Update prototype. + + * dispnew.c (line_draw_cost): Adapt to new glyph type. + (build_frame_matrix_from_leaf_window): Adapt to new glyph type and + new glyph code encoding. + (spec_glyph_lookup_face): No return value; update passed glyph instead. + (init_display): Use SET_CHAR_GLYPH to initialize space_glyph. + + * xdisp.c (get_next_display_element, next_element_from_display_vector): + Adapt to new glyph type and new glyph code encoding. + + * term.c (encode_terminal_code, produce_special_glyphs): Likewise. + + * indent.c (current_column, current_column_1, Fmove_to_column) + (compute_motion): Adapt to new glyph code encoding. + + * msdos.c (IT_write_glyphs): Adapt to new glyph type. + +2008-02-27 Chong Yidong + + * process.c (wait_reading_process_output): Check for window + changes caused by timers. + Suggested by Johan Bockg,Ae(Brd. + +2008-02-27 Glenn Morris + + * emacs.c (USAGE1): Add `--disable-font-backend'. + +2008-02-27 Stefan Monnier + + * fileio.c (Finsert_file_contents): Don't reset undo_list if no change + is made to the buffer. + +2008-02-26 Stefan Monnier + + * dispextern.h (face_at_buffer_position, face_for_overlay_string) + (face_at_string_position): + * xfaces.c (face_at_buffer_position, face_for_overlay_string) + (face_at_string_position): + * xdisp.c (display_string, next_overlay_change): + * buffer.h (overlays_at): + * buffer.c (overlays_at): Use EMACS_INT for buffer positions. + Update callers. + 2008-02-26 Chong Yidong * editfns.c (Fformat): Doc fix. @@ -29,6 +482,11 @@ (Fenlarge_window, Fshrink_window, Fset_window_configuration): Use run_window_configuration_change_hook. +2008-02-25 Kenichi Handa + + * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least + 1-pixel width. + 2008-02-25 Kenichi Handa * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p. @@ -386,22 +844,22 @@ 2008-02-09 Dan Nicolaescu - * src/Makefile.in: - * src/emacs.c: - * src/gmalloc.c: - * src/keyboard.c: - * src/lisp.h: - * src/m/ibm370aix.h: - * src/process.c: - * src/regex.c: - * src/s/hpux.h: - * src/sysdep.c: - * src/sysselect.h: - * src/systty.h: - * src/unexec.c: - * src/w32term.c: - * src/xsmfns.c: - * src/xterm.c: Remove code that deals with obsolete variables. + * Makefile.in: + * emacs.c: + * gmalloc.c: + * keyboard.c: + * lisp.h: + * m/ibm370aix.h: + * process.c: + * regex.c: + * s/hpux.h: + * sysdep.c: + * sysselect.h: + * systty.h: + * unexec.c: + * w32term.c: + * xsmfns.c: + * xterm.c: Remove code that deals with obsolete variables. * s/msdos.h (DONT_NEED_ENVIRON): Don't define. @@ -480,7 +938,7 @@ 2008-02-07 Jim Meyering - Use "do...while (0)", not "if (1)..else" in macro definitions. + Use "do...while (0)", not "if (1)...else" in macro definitions. The latter provokes a warning from gcc about the empty else, when followed by ";". Also, without that trailing semicolon, it would silently swallow up any following statement. @@ -1052,7 +1510,7 @@ 2008-02-01 CHENG Gao (tiny change) * frame.c (Fdelete_frame): Call font_update_drivers only when - USE_FONT_BACKEND is defined.. + USE_FONT_BACKEND is defined. 2008-02-01 Kenichi Handa @@ -1152,7 +1610,7 @@ 2008-02-01 Miles Bader - * src/dispextern.h (struct glyph_row): Only define "clip" field if + * dispextern.h (struct glyph_row): Only define "clip" field if HAVE_WINDOW_SYSTEM is defined. 2008-02-01 Stefan Monnier @@ -1302,24 +1760,24 @@ (GC_EQ): Remove since they've been identical to their non-GC_ alter-egos ever since the markbit was eradicated. - * src/alloc.c: - * src/buffer.c: - * src/buffer.h: - * src/data.c: - * src/fileio.c: - * src/filelock.c: - * src/fns.c: - * src/frame.h: - * src/lisp.h: - * src/macterm.c: - * src/print.c: - * src/process.c: - * src/w32fns.c: - * src/w32menu.c: - * src/w32term.c: - * src/xfns.c: - * src/xmenu.c: - * src/xterm.c: Replace uses of GC_* macros with the non-GC_ versions. + * alloc.c: + * buffer.c: + * buffer.h: + * data.c: + * fileio.c: + * filelock.c: + * fns.c: + * frame.h: + * lisp.h: + * macterm.c: + * print.c: + * process.c: + * w32fns.c: + * w32menu.c: + * w32term.c: + * xfns.c: + * xmenu.c: + * xterm.c: Replace uses of GC_* macros with the non-GC_ versions. 2008-02-01 Kenichi Handa @@ -1360,13 +1818,13 @@ * w32font.c (w32font_close): Delete the GDI font object. - * w32menu.c: Include character.h + * w32menu.c: Include character.h. * w32proc.c: Likewise. * w32select.c: Likewise. - * makefile.w32-in (w32proc.o): Depend on character.h + * makefile.w32-in (w32proc.o): Depend on character.h. 2008-02-01 Jason Rumney @@ -1492,7 +1950,7 @@ Remove redundant loop and allocation. * makefile.w32-in (font.o, w32font.o): New objects. - (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h + (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h. (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND. * xdisp.c (fill_composite_glyph_string): Make the first arg to @@ -1551,7 +2009,7 @@ (reorder_font_vector): Check contents of font_def. * font.c (struct otf_list): Delete it. - (otf_list): Make it a lisp variable.. + (otf_list): Make it a lisp variable. (otf_open): Use lispy otf_list. (generate_otf_features): Rename from parse_gsub_gpos_spec. (check_otf_features): New function. @@ -3074,7 +3532,7 @@ * fileio.c (Finsert_file_contents): Avoid detecting a code twice. * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3. - (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.. + (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte. 2008-02-01 Kenichi Handa @@ -4905,7 +5363,7 @@ 2008-02-01 Dave Love - * Makefile.in (chartab.o): Depend on charset.h + * Makefile.in (chartab.o): Depend on charset.h. 2008-02-01 Kenichi Handa @@ -5655,7 +6113,7 @@ * mac.c (mac_emacs_pid) [MAC_OSX]: New variable. [MAC_OSX] (init_mac_osx_environment): Initialize it. - [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0 + [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0 when used on child processes. 2008-01-21 Michael Albinus @@ -5739,8 +6197,8 @@ * unexsunos4.c: Remove file, system not supported anymore. - * src/m/mips.h: - * src/m/intel386.h: + * m/mips.h: + * m/intel386.h: * callproc.c: * config.in: * ecrt0.c: @@ -6396,7 +6854,7 @@ * lisp.h (enum pvec_type): New tag PVEC_OTHER. (allocate_pseudovector): Declare. - (ALLOCATE_PSEUDOVECTOR): Move from alloc.c + (ALLOCATE_PSEUDOVECTOR): Move from alloc.c. 2007-11-15 Andreas Schwab