1. 19 May, 2000 24 commits
    • Kenichi Handa's avatar
      (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->resutl to · b73bfc1c
      Kenichi Handa authored
      CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
      (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
      EMIT_BYTES): New macros.
      (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
      DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
      macros deleted.
      (CHECK_CODE_RANGE_A0_FF): This macro deleted.
      (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
      check the validity of multibyte sequence.
      (decode_coding_emacs_mule): New function.
      (encode_coding_emacs_mule): New macro.
      (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
      the source.
      (DECODE_ISO_CHARACTER): Just return a character code.
      (DECODE_COMPOSITION_START): Set coding->result instead of result.
      (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
      EMIT_CHAR to produced decoded characters.  Exit the loop only by
      macros ONE_MORE_BYTE or EMIT_CHAR.  Don't handle the case of last
      block here.
      (ENCODE_ISO_CHARACTER): Don't translate character here.  Produce
      only position codes for an invalid character.
      (encode_designation_at_bol): Return new destination pointer.  5th
      arg DSTP is changed to DST.
      (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
      from the source by ONE_MORE_CHAR.  Don't handle the case of last
      block here.
      (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
      macros deleted.
      (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
      detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
      TWO_MORE_BYTES to fetch a byte from the source.
      (encode_eol): Pay attention to coding->src_multibyte.
      (detect_coding, detect_eol): Preserve members src_multibyte and
      dst_multibyte.
      (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
      (encoding_buffer_size): Set magnification to 3 for all coding
      systems that require encoding.
      (ccl_coding_driver): For decoding, be sure that the result is
      valid multibyte sequence.
      (decode_coding): Initialize coding->errors and coding->result.
      For emacs-mule, call decode_coding_emacs_mule.  For no-conversion
      and raw-text, always call decode_eol.  Handle the case of last
      block here.  If not coding->dst_multibyte, convert the resulting
      sequence to unibyte.
      (encode_coding): Initialize coding->errors and coding->result.
      For emacs-mule, call encode_coding_emacs_mule.  For no-conversion
      and raw-text, always call encode_eol.  Handle the case of last
      block here.
      (shrink_decoding_region, shrink_encoding_region): Detect cases
      that we can't skip data more rigidly.
      (code_convert_region): Setup src_multibyte and dst_multibyte
      members of coding.  For decoding, if the buffer is multibyte,
      convert the source sequence to unibyte in advance.  For encoding,
      if the buffer is multibyte, convert the resulting sequence to
      multibyte afterward.
      (run_pre_post_conversion_on_str): New function.
      (code_convert_string): Deleted and divided into the following two.
      (decode_coding_string, encode_coding_string): New functions.
      (code_convert_string1, code_convert_string_norecord): Call one of
      above.
      (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
      MAKE_NON_ASCII_CHAR.
      (Fset_terminal_coding_system_internal,
      Fset_safe_terminal_coding_system_internal): Setup src_multibyte
      and dst_multibyte members.
      (init_coding_once): Initialize iso_code_class with new enum
      ISO_control_0 and ISO_control_1.
      b73bfc1c
    • Kenichi Handa's avatar
      (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL, · 6e4dc3e1
      Kenichi Handa authored
      CHARSET_8_BIT_GRAPHIC): New macros.
      (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
      (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
      (CHARSET_REVERSE_CHARSET): Likewise.
      (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
      eight-bit-graphic.
      (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
      (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
      (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
      encounter an invalid multibyte sequence.
      (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
      sequence is always valid.
      (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
      (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
      macros.
      (CHAR_STRING): For 8-bit characters, call char_to_string.
      (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version.  Assume
      multibyte sequence is always valid.
      (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
      (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
      str_as_unibyte): Extern them.
      (BCOPY_SHORT): Fix a bug.
      (CHAR_LEN): This macro deleted.  Callers changed to use
      CHAR_BYTES.
      (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
      (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
      (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
      6e4dc3e1
    • Kenichi Handa's avatar
      (Qeight_bit_control, Qeight_bit_graphic): New · 2e344af3
      Kenichi Handa authored
      variables.
      (SPLIT_CHARACTER_SEQ): This macro deleted.
      (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
      valid.
      (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
      and eight-bit-graphic.
      (char_to_string): Likewise.  Signal an error for too large
      character code.
      (char_printable_p): Return 0 for 8-bit characters.
      (update_charset_table): Update iso_charset_table only when a final
      character is non-negative.
      (find_charset_in_text): Renamed from find_charset_in_str.
      Arguments and return value changed.  Callers changed.
      (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
      be -1 if CHARSET is used only internally.
      (Fmake_char_internal): Handle new charsets; eight-bit-control and
      eight-bit-graphic.
      (Fcharset_after): Simplified.
      (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
      (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
      (multibyte_chars_in_text): Simplified by assuming there's no
      invalid multibyte sequence.
      (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
      str_as_unibyte): New functions.
      (Fstring): Simpified by assuming that byte combining never
      happens.
      (init_charset_once): Initialization for
      LEADING_CODE_8_BIT_CONTROL.
      (syms_of_charset): Intern and staticpro Qeight_bit_control and
      Qeight_bit_graphic.  Include them in Vcharset_list.  Make charsets
      eight-bit-control and eight-bit-graphic.
      2e344af3
    • Kenichi Handa's avatar
      (CCL_WRITE_CHAR): Be sure to write single byte characters · bd045987
      Kenichi Handa authored
      as is.
      (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
      bd045987
    • Kenichi Handa's avatar
      (Fmodify_category_entry): Use SPLIT_CHAR, not · 75ec644a
      Kenichi Handa authored
      SPLIT_NON_ASCII_CHAR.
      75ec644a
    • Kenichi Handa's avatar
      (Fcall_process): Always encode an argument string if · c5bfa12b
      Kenichi Handa authored
      it is multibyte.  Setup src_multibyte and dst_multibyte members of
      process_coding properly.
      c5bfa12b
    • Kenichi Handa's avatar
      (Fbyte_code): If arg BYTESTR is multibyte, convert it · 089b985f
      Kenichi Handa authored
      to unibyte.
      089b985f
    • Kenichi Handa's avatar
      (advance_to_char_boundary): Don't use DEC_POS to find a · a9bcded1
      Kenichi Handa authored
      apparent char boundary.
      (Fset_buffer_multibyte): Convert 8-bit characters in the range
      0x80..0x9F to/from multibyte form.
      a9bcded1
    • Kenichi Handa's avatar
      (Fmake_byte_code): If BYTECODE-STRING is multibyte, · 9eac9d59
      Kenichi Handa authored
      convert it to unibyte.
      (make_string): Use parse_str_as_multibyte, not chars_in_text.
      9eac9d59
    • Kenichi Handa's avatar
      (fns.o): Depend on charset.h. · b195b25d
      Kenichi Handa authored
      b195b25d
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      (lisp-mode-variables): Set comment-add. · 3f0c3d8b
      Stefan Monnier authored
      3f0c3d8b
    • Gerd Moellmann's avatar
      *** empty log message *** · 2b63d473
      Gerd Moellmann authored
      2b63d473
    • Gerd Moellmann's avatar
      (gud-jdb-directories): Doc fix. · 8050f8c8
      Gerd Moellmann authored
      8050f8c8
    • Gerd Moellmann's avatar
    • Stefan Monnier's avatar
      Fix license text and author. · 59a1ce8d
      Stefan Monnier authored
      Move aliases (indent-for-comment, set-comment-column, kill-comment
      and indent-new-comment-line) to the beginning of the file.
      Get rid of the last few CLisms.
      (comment-forward): Avoid decf.
      (comment-make-extra-lines): Comment-out asserts.
      (comment-with-narrowing): Properly create uninterned symbol.
      (comment-region-internal): Comment-out asserts.  Avoid incf and decf.
      (comment-indent-new-line): Fix bug where compt could be set but
      not comstart.  Set comment-column more carefully.
      59a1ce8d
    • Stefan Monnier's avatar
      *** empty log message *** · f1355756
      Stefan Monnier authored
      f1355756
    • Gerd Moellmann's avatar
      *** empty log message *** · 5f64c9e0
      Gerd Moellmann authored
      5f64c9e0
    • Gerd Moellmann's avatar
      08fb7a1c
    • Gerd Moellmann's avatar
      (Vimages_types): Moved to xdisp.c. · 729ae547
      Gerd Moellmann authored
      (syms_of_xfns): Move `image-types' to xdisp.c.
      729ae547
    • Gerd Moellmann's avatar
      (Vimage_types): Add extern declaration. · 8ee2a6b1
      Gerd Moellmann authored
      8ee2a6b1
    • Gerd Moellmann's avatar
      (Vimage_types): Moved here from xfns.c. · e00daaa0
      Gerd Moellmann authored
      (syms_of_xdisp): Move `image-types' variable here from xfns.c.
      e00daaa0
    • Gerd Moellmann's avatar
      (Vimage_types): Removed. · c6718dc4
      Gerd Moellmann authored
      (syms_of_w32fns): Remove `image-types'.
      c6718dc4
    • Andreas Schwab's avatar
      . · db7314bd
      Andreas Schwab authored
      db7314bd
  2. 18 May, 2000 13 commits
  3. 17 May, 2000 3 commits
    • Kenichi Handa's avatar
      *** empty log message *** · 813086ea
      Kenichi Handa authored
      813086ea
    • Kenichi Handa's avatar
      (describe-char-after): Call · c151654a
      Kenichi Handa authored
      internal-char-font, not char-font.  If internal-char-font returns
      nil, display "-- none --".
      c151654a
    • Kenichi Handa's avatar
      Include "buffer.h". · 1ff005e1
      Kenichi Handa authored
      (fs_load_font): If the face has fontset, record the face ID in
      that fontset.
      (Finternal_char_font): New function.
      (accumulate_font_info): New function.
      (Ffontset_info): Rewritten for the new fontset implementation.
      (syms_of_fontset): Register Vdefault_fontset in the first element
      of Vfontset_table.  Include Vdefault_fontset in
      Vfontset_alias_alist.  Declare `internal-char-font' as a Lisp
      function.
      1ff005e1