1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 00:31:01 -08:00
Commit graph

20725 commits

Author SHA1 Message Date
Kim F. Storm
f79bc642c1 *** empty log message *** 2006-03-02 22:34:39 +00:00
Kim F. Storm
c07b35ec17 Minimize the unpleasent visual impact of the requirement
that non-toolkit tool-bars must occupy an integral number of screen
lines, by distributing the rows evenly over the tool-bar screen	area.
(Vtool_bar_border): New variable.
(syms_of_xdisp): DEFVAR_LISP it.
(display_tool_bar_line): Add HEIGHT arg for desired row height.  Make
tool-bar row the desired height.  Use default face for border below
tool-bar.
(tool_bar_lines_needed): Add N_ROWS arg.  Use it to return number of
actual tool-bar rows.
(redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
Adjust the height of the tool-bar rows to fill tool-bar screen area.
(redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
is resized.
2006-03-02 21:55:26 +00:00
Kim F. Storm
045cff16b9 (struct frame): New member n_tool_bar_rows. 2006-03-02 21:55:16 +00:00
Luc Teirlinck
66bc608238 (Fregexp_quote): Do not precede a literal `]' with two backslashes to
try to make clear that it has a literal meaning; it does not do that.
(It could close a character alternative containing a backslash.)
2006-03-01 23:52:22 +00:00
Luc Teirlinck
0bbe0c9ca4 *** empty log message *** 2006-03-01 23:48:14 +00:00
Chong Yidong
c525d842f8 * xselect.c (x_catch_errors_unwind): New function.
(x_reply_selection_request): Put x_uncatch_errors in an unwind.
	(Fx_get_atom_name): Call x_uncatch_errors earlier.

	* window.c (Qscroll_up, Qscroll_down): New syms.
	(window_scroll_pixel_based): Make preserve_y static to avoid
	getting point stuck when scrolling 1 line.
2006-02-28 14:52:46 +00:00
Chong Yidong
4545fa2085 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary
argument.

	* xterm.c: (x_load_font, x_term_init, XTmouse_position)
	(handle_one_xevent, x_connection_closed, x_list_fonts): No arg for
	x_uncatch_errors.

	* xselect.c (x_own_selection, x_decline_selection_request)
	(x_reply_selection_request, x_get_foreign_selection)
	(Fx_get_atom_name, Fx_send_client_event): Likewise.

	* xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
	Likewise.
2006-02-27 03:35:31 +00:00
Luc Teirlinck
c50a2aa682 (check_windows_init_file): Use Fget_load_suffixes instead of Vload_suffixes. 2006-02-27 02:07:37 +00:00
Luc Teirlinck
3ceb69d976 EXFUN Fget_load_suffixes. Extern Vload_file_rep_suffixes. 2006-02-27 02:06:01 +00:00
Luc Teirlinck
971a4293be Declare Vload_file_rep_suffixes instead of
deleted variable default_suffixes.
(Fget_load_suffixes): New function.
(Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
No longer use deleted variable default_suffixes.  Update docstring.
(syms_of_lread): defsubr Sget_load_suffixes.
Expand `load-suffixes' docstring.
Delete default_suffixes and DEFVAR_LISP the new variable
`load-file-rep-suffixes'.
2006-02-27 02:04:35 +00:00
Luc Teirlinck
440cbd9ec5 *** empty log message *** 2006-02-27 01:44:20 +00:00
Luc Teirlinck
a5e25a4c49 *** empty log message *** 2006-02-26 18:18:01 +00:00
Luc Teirlinck
ab83782857 (specpdl_ptr): Remove volatile qualifier for consistency with lisp.h. 2006-02-26 18:08:02 +00:00
Stefan Monnier
a7af588620 (struct specbinding, specpdl_ptr): Remove the volatile qualifier which was
trying to avoid the bug that was fixed by yesterday's changes to xterm.c.
2006-02-26 16:14:20 +00:00
Chong Yidong
e2bcf94d93 buffer.c: Revert last change. 2006-02-25 23:33:57 +00:00
Chong Yidong
7d63db9802 * buffer.c (Foverlay_put): Mark buffer as changed. 2006-02-25 23:32:19 +00:00
Chong Yidong
9ba8e10d99 * xterm.h (x_catch_errors) Return value changed to void.
(x_uncatch_errors): Unused count argument deleted.

	* xterm.c (x_catch_errors): Don't use record_unwind_protect, since
	it can be called in a signal handler.
	(x_catch_errors_unwind): Function deleted.
	(x_uncatch_errors): Deallocate last x_error_message_stack struct.
	(x_check_errors): Call x_uncatch_errors before signalling error.

	(x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
	(x_connection_closed, x_list_fonts): Use new versions of
	x_catch_errors and x_uncatch_errors.

	* xselect.c (x_own_selection, x_decline_selection_request)
	(x_reply_selection_request, x_get_foreign_selection)
	(Fx_get_atom_name, Fx_send_client_event): Likewise.

	* xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
	Likewise.

	* eval.c (record_unwind_protect): Add an assertion.
2006-02-25 23:20:10 +00:00
Stefan Monnier
f523e0c3c5 (Fmake_network_process): Init the process's mark. 2006-02-25 16:49:00 +00:00
Kim F. Storm
18700091b0 (modify_overlay): Force redisplay if we modify an
overlay at the end of the buffer.
2006-02-24 23:31:26 +00:00
Kim F. Storm
a7a7e1d77c *** empty log message *** 2006-02-24 23:31:06 +00:00
Jan Djärv
a821c035f3 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
nil the image file has been removed, in that case use the (cached)
 pixmap.
2006-02-24 15:37:10 +00:00
Kenichi Handa
77343e1d1c (Finsert_file_contents): When a text is replaced
partially, be sure to set point before the inserted characters.
2006-02-24 06:46:54 +00:00
YAMAMOTO Mitsuharu
5b574e6957 (x_set_toolkit_scroll_bar_thumb): Don't set control
values if control is not visible or values are not changed.
2006-02-23 10:43:32 +00:00
Kenichi Handa
92fb551662 *** empty log message *** 2006-02-23 10:13:23 +00:00
YAMAMOTO Mitsuharu
7889775856 (update_text_area): Avoid needless redraw of rightmost
glyph whose face is extended to the text area end.
2006-02-23 09:07:23 +00:00
Stefan Monnier
acc6289a44 (Fwindow_list): Check `window' before doing XWINDOW.
The default `window' should not be "on a different frame".
2006-02-22 21:01:34 +00:00
Kim F. Storm
78744fc370 (Fvertical_motion): Only try to move back if we can. 2006-02-22 20:29:41 +00:00
Kim F. Storm
c4336e88cc *** empty log message *** 2006-02-22 20:29:24 +00:00
YAMAMOTO Mitsuharu
b6e3efe044 (GC_CLIP_REGION): Remove macro.
(mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
All uses changed.  Don't do clipping if n_clip_rects is zero.
(mac_set_clip_rectangles): Use xassert instead of abort.  Set
n_clip_rects.  Don't make clip_region empty when number of
clipping rectangles is zero.
(mac_reset_clip_rectangles): Set n_clip_rects directly instead of
calling mac_set_clip_rectangles.
(x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
avoid multiple redraws.
2006-02-22 08:00:12 +00:00
YAMAMOTO Mitsuharu
e188aa29a9 (digest_single_submenu): Apply 2006-02-19 change for xmenu.c. 2006-02-22 07:59:34 +00:00
YAMAMOTO Mitsuharu
c6c4517778 (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member n_clip_rects. 2006-02-22 07:59:26 +00:00
Kim F. Storm
a1b24e137f (draw_fringe_bitmap): Fix overlay-arrow display. 2006-02-21 23:19:40 +00:00
Kim F. Storm
6f62a45eec *** empty log message *** 2006-02-21 23:19:31 +00:00
Andreas Schwab
8ea094cffa Fix indentation. 2006-02-21 12:58:58 +00:00
Kim F. Storm
a4b7b036d2 (syms_of_fringe) <fringe-bitmaps>: Doc fix. 2006-02-21 09:42:16 +00:00
Kim F. Storm
dd9959dab8 *** empty log message *** 2006-02-21 09:41:20 +00:00
Jan Djärv
a8f4bdc694 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
returning it.
2006-02-21 08:37:33 +00:00
Juanma Barranquero
9866a438cc *** empty log message *** 2006-02-21 08:34:23 +00:00
Juanma Barranquero
68a33afa3c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
(standard_bitmaps): Use it.
2006-02-21 08:11:07 +00:00
YAMAMOTO Mitsuharu
9fb446e3f1 (mac_draw_string_common): Remove arg MODE. New arg
BG_WIDTH.  All uses changed.  Draw background if BG_WIDTH is not zero.
(mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
[USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
mac_draw_string_cg.  New arg BG_WIDTH.  All uses changed.  Draw
background if BG_WIDTH is not zero.  Use float constants as
divisors instead of double.  Use alloca instead of xmalloc/xfree.
(x_draw_glyph_string_background, x_draw_glyph_string_foreground)
[!MAC_OS8 || USE_ATSUI]: Background may be drawn using
mac_draw_image_string* functions.
(XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
some fonts when srcCopy text transfer mode might be used.
(mac_begin_clip, mac_end_clip): Check if region is empty.
(mac_set_clip_rectangles): When resetting clip region, make it
empty instead of disposing of it.
2006-02-21 08:10:04 +00:00
Kim F. Storm
49af2995e0 *** empty log message *** 2006-02-20 22:31:16 +00:00
Kim F. Storm
d76c7a77e2 Add fringe.elc to WINDOW_SUPPORT. 2006-02-20 22:16:00 +00:00
Kim F. Storm
7840b33201 (enum fringe_bitmap_type): Remove. Change all uses
to use `int'.
(NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
Define explicitly.
(Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
(Qhollow_small): New variables.
(syms_of_fringe): Intern and staticpro them.
(question_mark_bits): Rename from unknown_bits.
(left_curly_arrow_bits): Rename from continuation_bits.
(right_curly_arrow_bits): Rename from continued_bits.
(left_triangle_bits): Rename from ov_bits.
(right_triangle_bits): Added.
(filled_rectangle_bits): Rename from filled_box_cursor_bits.
(hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
(filled_square_bits): Added.
(vertical_bar_bits): Rename from bar_cursor_bits.
(horisontal_bar_bits): Rename from hbar_cursor_bits.
(empty_line_bits): Rename from zv_bits.
(standard_bitmaps): Update to use new names.
(draw_fringe_bitmap_1): Make static.
(get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
to map from logical cursors and indicators to physical bitmaps.
(draw_fringe_bitmap): Resolve fringe cursor and	overlay-arrow
bitmaps using symbol names instead of bitmap numbers.
(update_window_fringes): Use logical indicator symbol names
instead of bitmap numbers for logical.  Add bitmap cache.
(LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
2006-02-20 22:14:22 +00:00
Kim F. Storm
856c2c7397 (struct buffer): New members fringe_indicator_alist and
fringe_cursor_alist.
2006-02-20 22:14:12 +00:00
Kim F. Storm
c6a46372a3 (init_buffer_once): Set dummy default values for
fringe-indicator-alist and fringe-cursor-alist.  The proper
default values are set by pre-loading fringe.el.
(syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
correspondig default- variables.
2006-02-20 22:14:06 +00:00
Chong Yidong
a073faa64c * regex.c: Revert 2006-02-19 change.
Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
2006-02-20 16:44:09 +00:00
Chong Yidong
a77f947b23 * regex.c (xmalloc, xrealloc): Define these when not linked to
Emacs.
2006-02-20 16:25:21 +00:00
Luc Teirlinck
2f90d2bc9d *** empty log message *** 2006-02-20 03:53:56 +00:00
Luc Teirlinck
4aea1d4bd7 (extend_range_table_work_area): Fix typo. 2006-02-20 03:48:53 +00:00
Richard M. Stallman
7b1d7d664b (regex_compile): Call xmalloc and xrealloc.
(regcomp): Use xmalloc.
2006-02-20 01:19:15 +00:00