Miles Bader [Mon, 4 Sep 2000 13:04:49 +0000 (13:04 +0000)]
(remap_menubar):
Only include the menu-margin in the initial X & Y positions for
horizontal menu-bars.
(fit_to_screen):
If moving a sub-menu to the left-side, increment its x-position by the
shadow-thickness to make it look more attached to the invoking
menu-item (similarly to the way it would be displayed on the right side).
Miles Bader [Mon, 4 Sep 2000 11:56:36 +0000 (11:56 +0000)]
(xmenu_show):
Call x_set_menu_resources_from_menu_face before initially popping up
the menu, so the menu doesn't flash when the face settings are
significantly different from the defaults.
Stefan Monnier [Mon, 4 Sep 2000 04:24:00 +0000 (04:24 +0000)]
(WIDE_CHAR_SUPPORT): New macro.
(btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
(BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
(BIT_UNIBYTE): Remove.
(re_match_2_internal): Delete corresponding code and streamline the
BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
(CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
(re_wctype_t): New type.
(re_wctype, re_iswctype, re_wctype_to_bit): New functions.
(regex_compile): Use them and fix handling of overly long char classes.
Andrew Innes [Sun, 3 Sep 2000 17:37:09 +0000 (17:37 +0000)]
(CFLAGS): No need for -D_ANONYMOUS_UNION
-D_ANONYMOUS_STRUCT on compile line.
(EMACS_EXTRA_C_FLAGS): No need for -DORDINARY_LINK.
(ARCH_CFLAGS): Change optimization flags to -O2.
(FOREACH, FORVAR, FORDO, ENDFOR): New definitions.
(ARGQUOTE, DQUOTE): New defines.
Andrew Innes [Sun, 3 Sep 2000 17:36:34 +0000 (17:36 +0000)]
(CFLAGS): No need for -D_ANONYMOUS_UNION
-D_ANONYMOUS_STRUCT on compile line.
(FOREACH, FORVAR, FORDO, ENDFOR): New definitions.
(ARGQUOTE, DQUOTE): New defines.
Miles Bader [Sun, 3 Sep 2000 11:37:45 +0000 (11:37 +0000)]
(x_alloc_lighter_color_for_widget):
New extern declaration.
(make_shadow_gcs) [emacs]:
Use x_alloc_lighter_color_for_widget to do shadow calculation.
(make_shadow_gcs):
Remove code that tests whether the top shadow is dimmer than the bottom
shadow--it shouldn't ever happen.
(redisplay_mode_lines): New function.
(display_mode_lines): Return number of mode lines displayed.
(echo_area_display): Use redisplay_mode_lines to draw garbaged
mode lines. Don't temporarily bind redisplay-dont-pause to t.
Eli Zaretskii [Fri, 1 Sep 2000 13:50:50 +0000 (13:50 +0000)]
(toplevel): Remove redundant <fcntl.h>. Provide definitions for F_OK
and friends only after including both fcntl.h and unistd.h: some
systems define them on unistd.h.
Stefan Monnier [Thu, 31 Aug 2000 17:19:15 +0000 (17:19 +0000)]
* regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
(struct re_pattern_buffer): Remove newline_anchor.
* regex.c: Keep namespace clean for GNU libc by renaming <fun>
to __<fun> and using `weak_alias (__<fun>, <fun>)'.
(re_max_failures, fail_stack): Use size_t rather than unsigned.
(regex_compile): For ^ and $, choose between buffer and line (beg|end)
depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
(print_compiled_pattern, re_search_2, mutually_exclusive_p)
(re_match_2_internal, re_compile_pattern, re_comp, regcomp):
Get rid of references to newline_anchor.
(regcomp): Allocate and precompute a fastmap.
Stefan Monnier [Wed, 30 Aug 2000 18:31:30 +0000 (18:31 +0000)]
Merge some changes from GNU libc. Add prototypes.
(bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
Use memcmp and memcpy instead of bcopy and bcmp.
(init_syntax_once): Use ISALNUM.
(PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
(REG_UNSET_VALUE): Remove. Use NULL instead.
(REG_UNSET, re_match_2_internal): Use NULL.
(SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
New macros.
(EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
(GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
(regex_compile): In handle_interval, return an error rather than try to
unfetch the interval if we can't find the closing brace.
Obey the RE_NO_GNU_OPS syntax bit.
(TOLOWER): New macro.
(regcomp): Use it.
(regexec): Allocate regs.start and regs.end as one block.
Gerd Moellmann [Wed, 30 Aug 2000 15:00:17 +0000 (15:00 +0000)]
(update_frame): Only set display_completed here; use
the update_begin and update_end calls here from update_frame_1.
(update_frame_1): Don't set display_completed here, don't call
update_begin/update_end.
Andrew Innes [Wed, 30 Aug 2000 12:39:15 +0000 (12:39 +0000)]
(run-with-idle-timer): Undo last change, so that timer
is not activated immediately if Emacs is already idle. Some
existing code relies on this behaviour.
Gerd Moellmann [Tue, 29 Aug 2000 15:04:48 +0000 (15:04 +0000)]
(build_frame_matrix_from_leaf_window): If a row of a
desired window matrix hasn't been displayed, use the current row
instead. Make sure that only those frame rows are updated for
which there is a corresponding enabled desired row.