]> code.delx.au - gnu-emacs/blobdiff - src/ChangeLog
(Fswitch_to_buffer): Fall back on pop-to-buffer.
[gnu-emacs] / src / ChangeLog
index 928a2d9fd42d95f62ea4ab2f65d73b8c0e546fdd..72724275fbf0c77914c173d61534fe34c90fd3db 100644 (file)
@@ -1,3 +1,347 @@
+2008-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
+
+2008-03-11  Jan Dj\e$(Q)Z\e(Brv  <jan.h.d@swipnet.se>
+
+       * xterm.c (x_connection_closed): For GTK: If this is the last
+       terminal just exit without closing the display.
+
+2008-03-11  Jason Rumney  <jasonr@gnu.org>
+
+       * w32font.c (w32font_full_name): Use floor to round.
+
+2008-03-10  dhruva  <dhruvakm@gmail.com>  (tiny change)
+
+       * sound.c (alsa_configure): Declare vol at beginning of block.
+
+       * fontset.c (Ffontset_info): Remove extra semicolon.
+
+2008-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
+       size of resulting string.
+
+2008-03-10  Jason Rumney  <jasonr@gnu.org>
+
+       * dispnew.c (adjust_glyph_matrix): Initialize window_height.
+
+2008-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * 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  <storm@cua.dk>
+
+       * 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  <schwab@suse.de>
+
+       * process.h (struct Lisp_Process): Declare bit fields as unsigned.
+
+2008-03-06  Jason Rumney  <jasonr@gnu.org>
+
+       * 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-04  Jason Rumney  <jasonr@gnu.org>
+
+       * makefile.w32-in: Always include w32font.c in the build.
+       * w32font.c: Wrap in USE_FONT_BACKEND conditional.
+
+2008-03-04  Andreas Schwab  <schwab@suse.de>
+
+       * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
+       (versionclean): Likewise.
+
+2008-03-04  Juanma Barranquero  <lekktu@gmail.com>
+
+       * .cvsignore: Add oo.
+
+2008-03-03  Andreas Schwab  <schwab@suse.de>
+
+       * coding.c (decode_coding_object): Inhibit gap shrinking while
+       decoding in place.
+
+2008-03-03  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * 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  <lekktu@gmail.com>
+
+       * w32font.c: Include math.h.
+
+2008-03-03  Jason Rumney  <jasonr@gnu.org>
+
+       * 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  <schwab@suse.de>
+
+       * 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  <nanasess@fsm.ne.jp>
+
+       * gnu.h: New icon.
+
+2008-03-02  Kenichi Handa  <handa@m17n.org>
+
+       * 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  <jasonr@gnu.org>
+
+       * w32font.c (w32font_full_name): Report point size for scalable fonts.
+
+2008-03-01  Kim F. Storm  <storm@cua.dk>
+
+       * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
+
+2008-03-01  Jason Rumney  <jasonr@gnu.org>
+
+       * w32font.c (w32font_full_name): New function.
+       (w32font_open_internal): Use it.
+
+2008-03-01  Kim F. Storm  <storm@cua.dk>
+
+       * dispnew.c (line_draw_cost): Fix invalid glyph check.
+
+2008-03-01  Jason Rumney  <jasonr@gnu.org>
+
+       * font.c (font_unparse_fcname): Increase len when style is a symbol.
+
+2008-03-01  Jan Dj\e$(Q)Z\e(Brv  <jan.h.d@swipnet.se>
+
+       * 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  <jasonr@gnu.org>
+
+       * w32fns.c (w32_msg_pump): Disable debug code.
+
+2008-03-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
+
+2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
+
+       * 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  <monnier@iro.umontreal.ca>
+
+       * xdisp.c (get_overlay_strings_1): Fix typo.
+
+2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xdisp.c (get_overlay_strings_1): Add missing argument type.
+
+2008-02-28  Kenichi Handa  <handa@ni.aist.go.jp>
+
+       * 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  <storm@cua.dk>
+
+       * 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  <cyd@stupidchicken.com>
+
+       * process.c (wait_reading_process_output): Check for window
+       changes caused by timers.
+       Suggested by Johan Bockg\e,Ae\e(Brd.
+
+2008-02-27  Glenn Morris  <rgm@gnu.org>
+
+       * emacs.c (USAGE1): Add `--disable-font-backend'.
+
+2008-02-27  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
+       is made to the buffer.
+
+2008-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * 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  <cyd@stupidchicken.com>
+
+       * editfns.c (Fformat): Doc fix.
+
+2008-02-26  Juanma Barranquero  <lekktu@gmail.com>
+
+       * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
+       (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
+       (Ffont_otf_alternates, Fquery_font): Doc fixes.
+
+2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * buffer.c (Fbuffer_swap_text): New function.
+       (syms_of_buffer): Defsubr it.
+
+2008-02-25  Chong Yidong  <cyd@stupidchicken.com>
+
+       * keyboard.c (command_loop_1): Revert 2006-10-09 change.
+
+2008-02-25  Jason Rumney  <jasonr@gnu.org>
+
+       * w32font.c (w32font_draw): Draw one character at a time when padding.
+
+2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * window.c (Fdelete_window, Fadjust_window_trailing_edge):
+       Handle a nil arg.  Use run_window_configuration_change_hook.
+       (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
+       (Fenlarge_window, Fshrink_window, Fset_window_configuration):
+       Use run_window_configuration_change_hook.
+
+2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
+
+       * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
+       1-pixel width.
+
+2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
+
+       * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
+       (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
+       if the glyph in the font is zero pixel with.
+
+       * dispextern.h (struct glyph_string): New member padding_p.
+
+       * w32font.c (w32font_draw): Pay attention to s->padding_p.
+
+       * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
+
+       * xfont.c (xfont_draw): Pay attention to s->padding_p.
+
+       * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
+
+       * font.c: If the font driver doesn't have `shape' function, return Qnil.
+
+2008-02-25  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
+
+2008-02-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       Allow fine-grained image-cache flushing.
+       * dispextern.h (struct image): Add `dependencies' field.
+       (clear_image_caches): Change arg to Lisp_Object.
+       * image.c (make_image): Initialize `dependencies' field.
+       (clear_image_cache): Change arg to allow fine-grained flushing.
+       Perform the flush even if image-cache-eviction-delay is nil.
+       (clear_image_caches): Change arg to Lisp_Object.
+       (Fclear_image_cache): Expand meaning of the argument.
+       (mark_image): Mark `dependencies' field.
+       * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
+       (lface_hash): Use XHASH rather than XFASTINT.
+       (face_at_buffer_position): Fix int -> EMACS_INT position.
+       * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
+       (select_frame_for_redisplay): Remove code duplication.
+       (redisplay_internal): Adapt arg to call to clear_image_caches.
+
 2008-02-24  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * s/vms4-0.h:
 
 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
 
-       * 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.
 
 
 2008-02-07  Jim Meyering  <meyering@redhat.com>
 
-       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.
 2008-02-01  CHENG Gao  <chenggao@gmail.com>  (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  <handa@ni.aist.go.jp>
 
 
 2008-02-01  Miles Bader  <miles@gnu.org>
 
-       * 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  <monnier@iro.umontreal.ca>
        (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  <handa@m17n.org>
 
 
        * 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  <jasonr@gnu.org>
 
        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
        (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.
        * 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  <handa@m17n.org>
 
 
 2008-02-01  Dave Love  <fx@gnu.org>
 
-       * Makefile.in (chartab.o): Depend on charset.h
+       * Makefile.in (chartab.o): Depend on charset.h.
 
 2008-02-01  Kenichi Handa  <handa@m17n.org>
 
 
        * 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  <michael.albinus@gmx.de>
 
        * 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:
 
        * 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  <schwab@suse.de>