1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-17 05:30:43 -08:00
Commit graph

11050 commits

Author SHA1 Message Date
Kenichi Handa
6ecb43cedf (Fx_create_frame): Don't cal fs_register_fontset.
(x_create_tip_frame): Likewise.
(Fx_close_connection): Free full_name of font_info.
2000-03-21 00:42:32 +00:00
Kenichi Handa
980806b6cf (charset_at_position): Function removed.
(init_iterator): Don't set member charset of struct `it'.
(handle_face_prop, reseat_to_string, set_iterator_to_next,
next_element_from_display_vector, insert_left_trunc_glyphs):
Likewise.
(face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
FACE_FOR_CHARSET.
(get_next_display_element, append_space,
extend_face_to_end_of_line): Likewise.
2000-03-21 00:41:41 +00:00
Kenichi Handa
b8c434926b (XMenuActivate): Args to lookup_derived_face changed. 2000-03-21 00:40:54 +00:00
Kenichi Handa
45a962e0d5 (struct frame): Member `fontset_data' removed.
(FRAME_FONTSET_DATA): Macro removed.
2000-03-21 00:39:29 +00:00
Kenichi Handa
c08758e259 (make_frame): Don't allocate f->fontset_data.
(Fdelete_frame): Don't free f->fontset_data.
2000-03-21 00:39:10 +00:00
Kenichi Handa
1afa4408c0 (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
(struct fontset_info, struct fontset_data): Structs removed.
(allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
Vglobale_fontset_alist, font_idx_temp): Externs removed.
(fs_load_font, fs_query_fontset): Adjusted for new argument.
(fs_free_face_fontset, fontset_font_pattern,
face_suitable_for_char_p, face_for_char,
make_fontset_for_ascii_face): Extern them.
(FS_LOAD_FONT): Adjusted for the change of fontset implementation.
(FS_LOAD_FACE_FONT): New macro.
2000-03-21 00:38:44 +00:00
Kenichi Handa
0d407d7782 All codes rewritten or adjusted for the change of
fontset implementation.  Now fontset is represented by char table.
(Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
removed.
(my_strcasecmp): Function removed.
(Vfontset_table, next_fontset_id, Vdefault_fontset): New
variables.
(AREF, ASIZE): New macros.
(FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
(fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
fontset_id_valid_p, font_family_registry, fontset_name,
fontset_ascii, free_face_fontset, face_suitable_for_char_p,
face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
New functions.
(fs_load_font): New arg FACE.  Caller changed.
(fs_query_fontset): Argument changed.  Caller changed.
(Fquery_fontset): call fs_query_fontset.
(fs_register_fontset, alloc_fontset_data, free_fontset_data):
Functions removed.
(clear_fontset_elements, check_registry_encoding,
check_fontset_name): New functions.
(syms_of_fontset): Set char-table-extra-slots property of fontset
to 3.  Staticpro and initialize Vfontset_table and
Vdefault_fontset.  Defsubr fontset_font and fontset_list.
2000-03-21 00:38:14 +00:00
Kenichi Handa
52ef6c896e (optimize_sub_char_table): New function.
(Foptimize_char_table): New function.
(syms_of_fns): Defsubr Soptimize_char_table.
2000-03-21 00:37:25 +00:00
Kenichi Handa
b3091a2388 (struct glyph): New member glyph_not_available_p.
Use 22 bits for face_id.
(enum lface_attribute_index): Add LFACE_FONT_INDEX.
(struct face): Delete member registry, new member ascii_face.
(FACE_SUITABLE_FOR_CHAR_P): Renamed from
FACE_SUITABLE_FOR_CHARSET_P.  Caller changed.
(FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET.  Caller changed.
(struct it): Delete member charset, new member
glyph_not_available_p.
2000-03-21 00:36:45 +00:00
Kenichi Handa
9170cbcc18 (mark_face_cache): Don't mark face->registry. 2000-03-21 00:36:12 +00:00
Kenichi Handa
9111d4b571 Fontsets related initialization is simplified. 2000-03-21 00:34:45 +00:00
Gerd Moellmann
b33dd3b087 *** empty log message *** 2000-03-20 12:34:21 +00:00
Gerd Moellmann
8ec01c70fa (Fset_buffer_modified_p): Set update_mode_lines
only if buffer is displayed in some window.
2000-03-20 12:24:57 +00:00
Gerd Moellmann
15e26c76c9 (handle_single_display_prop): Initialize local `value'.
(try_window_reusing_current_matrix): Don't call scroll run
function if run's current and desired position are the same;
this prevents cursor flickering.
2000-03-20 12:24:13 +00:00
Stefan Monnier
4e8a913269 (RE_STRING_CHAR): New macro.
(GET_CHAR_AFER_2): Remove.
(RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
(enum re_opcode_t): Remove on_failure_jump_exclusive.
(print_partial_compiled_pattern, re_compile_fastmap)
(re_match_2_internal): Remove on_failure_jump_exclusive.
(regex_compile): Turn optimizable P+ loops into PP*, so that the
optimization only need to work for * (ie. can use of_keep_string_jump).
Remove the special case for .*\n since it is now covered by the general
optimization.
(re_search_2): Don't bother with `room'.
(skip_one_char): New function.
(skip_noops): Simplify since `memory' is not needed any more.
(mutually_exclusive_p): Restructure slightly to use `switch' and
add handling for "all" remaining cases.
(re_match_2_internal): Change on_failure_jump_smart to use
on_failure_keep_string_jump (and redirect the end-of-loop jump)
rather than on_failure_jump_exclusive.
2000-03-19 23:23:50 +00:00
Stefan Monnier
fc4e96c8e8 (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c. 2000-03-19 23:21:42 +00:00
Gerd Moellmann
2136fdd4f5 (calculate_costs): Remove code dealing with X frames. 2000-03-19 17:04:41 +00:00
Gerd Moellmann
94ac875b41 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
number of bits per RGB because it's everywhere used as the depth
of the visual.
2000-03-19 17:00:51 +00:00
Richard M. Stallman
e53ae11c20 *** empty log message *** 2000-03-19 15:56:23 +00:00
Richard M. Stallman
afdca07054 (syms_of_lread): Doc fix for load-convert-to-unibyte. 2000-03-19 15:45:02 +00:00
Gerd Moellmann
d7b511c441 *** empty log message *** 2000-03-18 01:42:31 +00:00
Gerd Moellmann
b632fa48b1 (read_integer): Unread the last char not consumed. 2000-03-18 01:04:28 +00:00
Gerd Moellmann
16b5d424a7 (x_update_window_cursor): Don't update in frames
who are in the process of being deleted.
2000-03-17 21:12:54 +00:00
Gerd Moellmann
83488cce94 *** empty log message *** 2000-03-16 23:14:29 +00:00
Gerd Moellmann
3320cc503c (mostlyclean): Add `*.core'.
(clean): Add `bootstrap-emacs'.
2000-03-16 22:55:31 +00:00
Gerd Moellmann
1fa2857844 *** empty log message *** 2000-03-16 13:24:56 +00:00
Gerd Moellmann
bf5d1a173b (read_integer): New function.
(read1): Support read syntax #o, #x, #b, #r.
2000-03-16 13:23:06 +00:00
Stefan Monnier
99633e97e9 (re_match_2): Fix string shortening (to fit `stop') to make sure
POINTER_TO_OFFSET gives the same value before and after PREFETCH.
Use `dfail' to guarantee "atomic" matching.
(PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
(debug): Now only active if > 0 rather than if != 0.
(DEBUG_*): Update for the new meaning of `debug'.
(print_partial_compiled_pattern): Add missing `succeed' case.
Use CHARSET_* macros in the charset(_not) branch.
Fix off-by-two bugs in `succeed_n', `jump_n' and `set_number_at'.
(store_op1, store_op2, insert_op1, insert_op2)
(at_begline_loc_p, at_endline_loc_p): Add prototype.
(group_in_compile_stack): Move to after its arg's types are declared
and add a prototype.
(PATFETCH): Define in terms of PATFETCH_RAW.
(GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
(QUIT): Redefine as a nop except for NTemacs.
(regex_compile): Handle intervals {,M} as if it was {0,M}.
Fix indentation of the greedy-op and shy-group code.
(at_(beg|end)line_loc_p): Fix argument's types.
(re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
(re_search_2): Use POS_AS_IN_BUFFER.  Simplify `room' computation.
(MATCHING_IN_FIRST_STRING): Remove.
(re_match_2): Use POS_AS_IN_BUFFER.
Ifdef out failure_stack_ptr to shut up gcc.
Use FIRST_STRING_P and POINTER_TO_OFFSET.
Use QUIT unconditionally.
2000-03-16 02:55:33 +00:00
Gerd Moellmann
699238d9cd *** empty log message *** 2000-03-15 19:59:06 +00:00
Gerd Moellmann
a1c5aa96e2 (Fminibuffer_complete): Set point to ZV if finding
a sole completion.
2000-03-15 19:58:19 +00:00
Gerd Moellmann
1fb0098cc6 (send_process): Add a hint that the function
can call Lisp code to its comment.
2000-03-15 19:58:03 +00:00
Gerd Moellmann
da84f340a4 (load_dangerous_libraries): New variable.
(Vbytecomp_version_regexp): New variable.
(safe_to_load_p): New function.
(Fload): Handle files not compiled with Emacs specially.
(syms_of_lread): New Lisp variable load-dangerous-libraries.
2000-03-15 19:57:38 +00:00
Gerd Moellmann
9c763cca0b (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in. 2000-03-14 21:17:59 +00:00
Gerd Moellmann
25e9f929ec (HAVE_X_I18N): Moved here from xterm.h.
(HAVE_X11R6_XIM): Define.
2000-03-14 21:16:55 +00:00
Gerd Moellmann
383d6ffc56 (X_I18N_INHIBITED): Don't define.
(create_frame_xic): Remove conditional compilation on
X_I18N_INHIBITED.
(x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
2000-03-14 21:16:36 +00:00
Gerd Moellmann
32be16dfed (INHIBIT_X11R6_XIM): Define. 2000-03-14 21:16:04 +00:00
Gerd Moellmann
b9de836cab (xim_close_dpy, xim_initialize): Use X11R6-style XIM
support functions only if HAVE_X11R6_XIM is defined.
(xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
2000-03-14 21:15:46 +00:00
Gerd Moellmann
1c7df982a8 (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon. 2000-03-14 21:15:03 +00:00
Gerd Moellmann
34e23e5a04 *** empty log message *** 2000-03-14 15:19:58 +00:00
Stefan Monnier
66f0296e48 * regex.c: Declare a new type `re_char' used throughout the code for the
string char type.  It's `const unsigned char' to match the rest of Emacs.
Consistently make sure all pointers to strings use it and make sure all
pointers into the pattern use `unsigned char'.
(re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
GET_CHAR_AFTER_2.
Also merge wordbound and notwordbound to reduce code duplication.
* charset.h (GET_CHAR_AFTER_2): Remove.
(GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
2000-03-14 00:27:57 +00:00
Kenichi Handa
a735b7e1cf *** empty log message *** 2000-03-13 23:33:46 +00:00
Ken Raeburn
854a025cb7 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary variable before
the invocation of YMF_PASS_LDFLAGS, in case both of them try to use backquotes.
2000-03-13 01:04:12 +00:00
Dave Love
b9d2c7e263 *** empty log message *** 2000-03-12 17:43:39 +00:00
Dave Love
1b963cdda9 Restore changes of 1999-10-19.
(unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
fix its type and alignment; copy it from current process.
2000-03-12 17:04:43 +00:00
Gerd Moellmann
9b2f3c3830 *** empty log message *** 2000-03-12 17:01:50 +00:00
Gerd Moellmann
4ab1d4be61 (cancel_atimer): Break out of the loop as soon as timer
has been found.  Fix bug not computing timer's predecessor.
2000-03-12 17:01:02 +00:00
Gerd Moellmann
9172b88ddf (Fread_file_name): Handle case that DIR contains a
file name.
2000-03-12 16:24:20 +00:00
Gerd Moellmann
e1cff36058 *** empty log message *** 2000-03-12 15:22:51 +00:00
Gerd Moellmann
8ed92cf0f2 (Fsave_window_excursion): Doc fix. 2000-03-12 15:19:21 +00:00
Gerd Moellmann
5e5dff44e7 *** empty log message *** 2000-03-12 13:49:28 +00:00