1. 22 Feb, 1997 2 commits
  2. 21 Feb, 1997 3 commits
  3. 20 Feb, 1997 35 commits
    • Eli Zaretskii's avatar
      (grep-process-setup): New function, sets up the · acffd065
      Eli Zaretskii authored
      exit message function in a way that works when async processes
      aren't supported.
      (grep): Use `grep-process-setup'.
      acffd065
    • Karl Heuer's avatar
      Include category.h and charset.h. · 5679531d
      Karl Heuer authored
      (compile_pattern_1): Handle new argument `multibyte'.
      (compile_pattern): Handle the flag `enable-multibyte-characters'.
      (Vascii_downcase_table): Declare external.
      (fast_string_match_ignore_case): New function.
      (skip_chars): Handle multibyte characters.
      (trivial_regexp_p): Handle regular expression "\\Cc" and "\\CC"
      for category.
      5679531d
    • Karl Heuer's avatar
      Initial revision · 4ed46869
      Karl Heuer authored
      4ed46869
    • Karl Heuer's avatar
      (struct font_info): This definition is moved to · adb572fb
      Karl Heuer authored
      fontset.h.
      (struct x_display_info): New members Xatom_PIXEL_SIZE,
      Xatom_MULE_BASELINE_OFFSET, Xatom_RELATIVE_COMPOSE, and null_pixel.
      (x_list_fonts, x_get_font_info, x_load_font, x_query_font):
      Declare external.
      (struct x_output): New members font_baseline and fontset.
      (FRAME_FONTSET, FRAME_X_FONT_TABLE): New macros.
      adb572fb
    • Karl Heuer's avatar
      Include charset.h, ccl.h, and fontset.h. · dc43ef94
      Karl Heuer authored
      (PER_CHAR_METRIC): New macro.
      (dumpglyphs): New argument CMPCHARP.  Handle multibyte characters.
      (XTwrite_glyphs, redraw_previous_char, redraw_following_char):
      Supply argument CMPCHARP to dumpglyphs.
      (dumprectangle): Display whole glyph of wide-column characters.
      Supply argument CMPCHARP to dumpglyphs.
      (show_mouse_face): Supply argument CMPCHARP to dumpglyphs.
      (x_draw_box): Pay attention to wide-column characters.
      (x_draw_single_glyph): Supply argument CMPCHARP to dumpglyphs.
      (x_new_font): Call fs_load_font for actual font loading work.
      (x_new_fontset): New function.
      (x_get_font_info, x_list_fonts, x_load_font, x_query_font): New
      functions providing API to fontset handler.
      (x_term_init): Initialize several new members of struct x_display_info.
      dc43ef94
    • Karl Heuer's avatar
      Include charset.h and coding.h. · e6c7c988
      Karl Heuer authored
      (QCOMPOUND_TEXT): New variable.
      (symbol_to_x_atom): Handle it.
      (selection_data_to_lisp_data): Decode a selection data if
      selection type is TEXT or COMPOUND_TEXT.
      (lisp_data_to_selection_data): Encode a text to COMPOUND_TEXT if
      it contains multibyte characters.
      (syms_of_xselect): Initialize and staticpro QCOMPOUND_TEXT.
      e6c7c988
    • Karl Heuer's avatar
      Include charset.h and fontset.h. · 942ea06d
      Karl Heuer authored
      (Vx_pixel_size_width_font_regexp): New variable.
      (x_set_font): Handle fontset.
      (Fx_create_frame): Create fontsets in Vglobal_fontset_alist.
      (Fx_list_fonts): Handle fontset.
      (syms_of_xfns): Initialize Vx_pixel_size_width_font_regexp.
      Setting callback functions for fontset handler.
      942ea06d
    • Karl Heuer's avatar
      Include charset.h. · a8517066
      Karl Heuer authored
      (allocate_face, copy_face, face_eq1): Handle member `fontset' of
      struct face, i.e. initialize, copy, and check it.
      (intern_face, clear_face_cache): Handle member `non_ascii_gc' of
      struct face, i.e. initialize and free it.
      (free_frame_faces): Unload font only when fontset is not used.
      Free non_ascii_gc.
      (frame_update_line_height, merge_faces, compute_base_face): Handle
      fontset.
      (recompute_base_faces): Free non_ascii_gc.
      (Fset_face_attribute_internal): Handle fontset.
      a8517066
    • Karl Heuer's avatar
      Include charset.h and coding.h. · a4decb7f
      Karl Heuer authored
      (TS_end_italic_mode, TS_italic_mode, TS_bold_mode): New variables.
      (TS_end_bold_mode, TS_end_underscore_mode): New variables.
      (TS_underscore_mode): New variable.
      (encode_terminal_code): New function.
      (write_glyphs, insert_glyphs): Perform character code conversion
      on output to a terminal.
      (term_init): Initialize TS_bold_mode, TS_end_bold_mode,
      TS_end_underscore_mode, and TS_underscore_mode.
      a4decb7f
    • Karl Heuer's avatar
      (SET_RAW_SYNTAX_ENTRY): Handle syntax of multibyte · e0b8ff93
      Karl Heuer authored
      characters.
      (SYNTAX_ENTRY_FOLLOW_PARENT): New macro.
      (SYNTAX_ENTRY): Handle syntax of multibyte characters.
      (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Don't signal error even
      if a syntax entry is not cons.
      e0b8ff93
    • Karl Heuer's avatar
      Include charset.h and category.h. · 93da5fff
      Karl Heuer authored
      (Vsyntax_code_object): New variable.
      (Fmodify_syntax_entry): Handle multibyte characters.  A multibyte
      character in matching parenthesis is also handled correctly.  Use
      shared object in the vector Vsyntax_code_object for an ASCII
      character.
      (describe_syntax): Handle a multibyte character in matching
      parenthesis.
      (describe_syntax_1): Describe also parent syntax tables.
      (scan_words, Fforward_comment): Handle multibyte characters.
      (scan_lists, char_quoted, Fbackward_prefix_chars): Likewise.
      (scan_sexps_forward): Likewise.
      (init_syntax_once): Initialize Vsyntax_code_object.
      Initialize Vstandard_syntax_table by share objects in
      Vsyntax_code_object.
      (syms_of_syntax): Staticpro Vsyntax_code_object.
      93da5fff
    • Karl Heuer's avatar
      (BASE_PURESIZE): Increase. · ed975f87
      Karl Heuer authored
      ed975f87
    • Karl Heuer's avatar
      (struct Lisp_Process): New members · 3b92c4f5
      Karl Heuer authored
      decode_coding_system, decoding_buf, encode_coding_system, and
      encoding_buf.
      3b92c4f5
    • Karl Heuer's avatar
      Include charset.h and coding.h. · 0fa1789e
      Karl Heuer authored
      (proc_decode_coding_system, proc_encode_coding_system): New
      variables.
      (Fstart_process, create_process, Fopen_network_stream): Setup
      coding systems for character code conversion.
      (READ_CHILD_OUTPUT): New macro.
      (read_process_output): Perform character code conversion of a
      process output.
      (send_process): Perform character code conversion of a text sent
      to a process.
      (Fset_process_coding_system, Fprocess_coding_system): New
      functions.
      (syms_of_process): Handle them.
      0fa1789e
    • Karl Heuer's avatar
      Include charset.h. · 087e3c46
      Karl Heuer authored
      (printchar, strout): Handle multibyte characters.
      (print): Correct the value of size_in_chars of a bool vector.
      087e3c46
    • Karl Heuer's avatar
      Include charset.h. · d50a3d2a
      Karl Heuer authored
      (read_minibuf): Pay attention to multibyte characters in the arg
      INITIAL while handling the arg BACKUP_N.
      (scmp, Fminibuffer_complete_word): Handle multibyte characters.
      d50a3d2a
    • Karl Heuer's avatar
      Include charset.h. · fe0e03f3
      Karl Heuer authored
      (Vload_source_file_function): New variable.
      (Fload): Call Vload_source_file_function if defined while loading
      an Emacs Lisp source file.  */
      (read_multibyte): New function.
      (read_escape): Handle multibyte characters.
      (read1): Correct the value of size_in_chars of a bool vector.
      Handle the case `?' is followed by a multibyte character.
      (Vload_source_file_function): New variable.
      fe0e03f3
    • Karl Heuer's avatar
      (CHARACTERBITS, GLYPH_MASK_REV_DIR): New macros. · 6b768554
      Karl Heuer authored
      (GLYPH_MASK_PADDING, GLYPH_MASK_FACE, GLYPH_MASK_CHAR): New macros.
      [HAVE_FACES] (FAST_MAKE_GLYPH, FAST_GLYPH_CHAR, FAST_GLYPH_FACE):
      Use CHARACTERBITS.
      [!HAVE_FACES] (FAST_MAKE_GLYPH, FAST_GLYPH_CHAR, FAST_GLYPH_FACE):
      New macros.
      [!HAVE_FACES] (GLYPH_CHAR, GLYPH_FACE): Mask appropriate bits.
      (Fcoding_system_p, Fcheck_coding_system): Declare external.
      (Fread_coding_system, Fread_non_nil_coding_system): Likewise.
      6b768554
    • Karl Heuer's avatar
      Include charset.h. · a98f1d1d
      Karl Heuer authored
      (push_key_description): If enable-multibyte-characters is t, use
      octal representation for a code of range 128..255 as binary.
      (Ftext_char_description): Handle multibyte characters.
      (describe_vector): Provide prettier description of a char table
      which contains multibyte characters.
      a98f1d1d
    • Karl Heuer's avatar
      (command_loop_1): Pay attention to a multibyte · 37cd9f30
      Karl Heuer authored
      character while handling forward-char and backward-char.
      [!HAVE_NTGUI && XK_kana_A] (lispy_kana_keys): New variable.
      [!HAVE_NTGUI] (lispy_function_keys): New variable.
      (make_lispy_event) [XK_kana_A]: Handle kana keys.
      37cd9f30
    • Karl Heuer's avatar
      Include charset.h. · 469ff680
      Karl Heuer authored
      (gap_left, gap_right): Put an anchor `\0' at the end of GAP.
      (adjust_markers_for_insert): If any markers are adjusted, check
      and fix the order of overlays in overlays_before.
      (make_gap): Allocate an extra byte and set to `\0' for anchoring.
      (insert1, insert_from_buffer_1): Put an anchor `\0' at the head of
      GAP.
      469ff680
    • Karl Heuer's avatar
      (struct frame): New member `fontset_data'. · 81d00831
      Karl Heuer authored
      (FRAME_MESSAGE_BUF_SIZE): New macro.
      81d00831
    • Karl Heuer's avatar
      Include "charset.h" · 71025e5e
      Karl Heuer authored
      [HAVE_WINDOW_SYSTEM]: Include fontset.h.
      (make_frame): Allocate member `fontset_data' of the struct frame.
      (Fdelete_frame): Free the area for the member.
      71025e5e
    • Karl Heuer's avatar
      Include charset.h. · fb8106e8
      Karl Heuer authored
      (Fchar_to_string, Fstring_to_char): Handle multibyte characters.
      (Fsref): New function.
      (Fgoto_char): Force point to be at a character boundary.
      (Ffollowing_char, Fpreceding_char): Handle multibyte characters.
      (Fchar_after): Handle multibyte characters.
      (Fchar_before): New function.
      (general_insert_function): New function.
      (Finsert, Finsert_and_inherit, Finsert_before_markers): Use it.
      (Finsert_char): Doc-string refer to markers of
      before-insertion-type. Handle multibyte characters.
      (Fsubst_char_in_region): Handle multibyte characters.
      (Fchar_equal): Don't consider `case' of multibyte characters.
      (syms_of_editfns): Handle the new function `char-before'.
      fb8106e8
    • Karl Heuer's avatar
      Include charset.h. · a0ca925c
      Karl Heuer authored
      (doprn1): Handle multibyte characters.
      a0ca925c
    • Karl Heuer's avatar
      (DISP_CHAR_VECTOR): Always return nil for multibyte · 214acc50
      Karl Heuer authored
      characters.
      214acc50
    • Karl Heuer's avatar
      (struct face): New members `non_ascii_gc' and · dfbb1e90
      Karl Heuer authored
      `fontset'.
      [HAVE_FACES]: New macros FACE_NON_ASCII_GC and FACE_FONTSET.
      dfbb1e90
    • Karl Heuer's avatar
      Include charset.h. · 8313c4e7
      Karl Heuer authored
      (Qprocess): Now extern, not static.
      (Faref, Faset): Enable indexing a char table by a multibyte
      character.
      8313c4e7
    • Karl Heuer's avatar
      Include charset.h. · 9e4fd67b
      Karl Heuer authored
      (forward_point, Fforward_point): New functions.
      (Fforward_char, Fdelete_char): Handle multibyte characters by
      calling forward_point.
      (Fdelete_backward_char): Pay attention to multibyte characters
      in overwrite-mode.
      (internal_self_insert): Handle self inserting a multibyte
      character.
      (syms_of_cmds): Handle the new function Fforward_point.
      9e4fd67b
    • Karl Heuer's avatar
      Include charset.h and coding.h. · 32d08644
      Karl Heuer authored
      (Fcall_process): Perform character code conversion of a process
      arguments and the process output.
      (Fcall_process_region): Encode coding of a text given to a
      process.
      32d08644
    • Karl Heuer's avatar
      (doc-string of `interactive'): Describe new code · 40b2421c
      Karl Heuer authored
      letters `i', `z', and `Z'.
      (Fcall_interactively): Handle them.
      40b2421c
    • Karl Heuer's avatar
      (BEGV_ADDR, PT_ADDR, ZV_ADDR): Use macro POS_ADDR. · 96b65d4e
      Karl Heuer authored
      (Z_ADDR, BUF_GPT_ADDR, BUF_Z_ADDR): New macros.
      (struct buffer): New members `category_table',
      `direction_reserved', and `enable-multibyte-characters'.
      (POS_ADDR): New macro used at all places instead of &FETCH_CHAR.
      (FETCH_BYTE): New macro used at any places to check the argument
      against an ASCII character.
      (FETCH_MULTIBYTE_CHAR): New macro used at any places to get a
      character code of the argument when it is known to be a multibyte
      character.
      (_fetch_multibyte_char_p, _fetch_multibyte_char_len): New
      variables.
      (FETCH_CHAR): Use macros FETCH_MULTIBYTE_CHAR and FETCH_BYTE.
      96b65d4e
    • Karl Heuer's avatar
      Include charset.h. · 3b06f880
      Karl Heuer authored
      (Fget_buffer_create): Allocate an extra byte for a buffer, and
      make it always 0 for anchoring.
      (reset_buffer): Handle a new member `enable_multibyte_characters'
      in the struct buffer.
      (fix_overlay_before): New function.
      (init_buffer_once): Handle new members in the struct buffer.
      (syms_of_buffer): Declare new buffer local variables
      `enable-multibyte-characters' and `direction-reserved'.
      3b06f880
    • Karl Heuer's avatar
      (Fmake_char_table): Typo in doc-string fixed. Handle · 38a1965a
      Karl Heuer authored
      the case that PURPOSE is nil (in a deeper char-table).
      (Fmake_bool_vector): Make correct size of Lisp_Object for
      bool-vector.
      38a1965a
    • Karl Heuer's avatar
      The following changes are for new source codes related to Mule. · 713c0574
      Karl Heuer authored
      (XOBJ): Include fontset.o.
      (obj): Include charset.o, coding.o, category.o, and ccl.o.
      (lisp, shortlisp): Include Mule related elc files.
      (buffer.o, cmds.o, dispnew.o, doprnt.o): Depend on charset.h.
      (editfns.o, indent.o, insdel.o, keymap.o): Depend on charset.h.
      (minibuf.o, xdips.o, xfaces.o, xselect.o): Depend on charset.h.
      (data.o, print.o, lread.o): Depend on charset.h.
      (callproc.o, fileio.o, process.o, term.o): Depend on charset.h and
      coding.h.
      (regex.o, search.o, syntax.o): Depend on charset.h and category.h.
      (fontset.o): Depend on charset.h and fontset.h.
      (xterm.o): Depend on charset.h, ccl.h, and fontset.h.
      (category.o, ccl.o, charset.o, coding.o, fontset.o): New targets.
      713c0574