1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 02:10:46 -08:00
Commit graph

19098 commits

Author SHA1 Message Date
Jan Djärv
9b85e63d34 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
gtk_menu_popup if not for_click, so callbacks for the menu are called.
2005-01-07 20:50:46 +00:00
Jan Djärv
ff59904afe * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
(xg_tool_bar_callback, xg_tool_bar_help_callback)
(update_frame_tool_bar): Cast to EMACS_INT to avoid compiler
warning.

* xselect.c (x_get_foreign_selection, x_fill_property_data)
(Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
XFLOAT_DATA to get extract number from Lisp object.
2005-01-07 16:59:57 +00:00
Kim F. Storm
60227bf44e (set_iterator_to_next): Fix 2004-12-13 change.
Set stop_charpos to current charpos instead of 0.
2005-01-07 13:13:05 +00:00
Kim F. Storm
f9a23a6f5b *** empty log message *** 2005-01-07 13:12:32 +00:00
Steven Tamm
a6fffcdcb7 * macterm.c (XLoadQueryFont): Correctly handle 0 size
font widths that are returned from some Japanese fonts.
2005-01-07 07:11:24 +00:00
Kim F. Storm
49ce2dbd86 (fringe_faces): Change to Lisp_Object pointer.
(draw_fringe_bitmap_1): Lookup user defined fringe faces here.
(destroy_fringe_bitmap): Set fringe_faces element to nil.
(Fdefine_fringe_bitmap, init_fringe): Change allocation of
fringe_faces array and init elements to nil.
(Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
non-persistent face id.
(mark_fringe_data): New function for GC.
2005-01-06 22:03:00 +00:00
Kim F. Storm
454d797353 (mark_fringe_data): Declare extern.
(Fgarbage_collect): Call mark_fringe_data.

(overrun_check_free): Invalidate freed memory if
XMALLOC_CLEAR_FREE_MEMORY is defined.
2005-01-06 22:02:32 +00:00
Kim F. Storm
c35b0c6bc3 *** empty log message *** 2005-01-06 22:01:38 +00:00
Richard M. Stallman
8a6fd2a78d (Fformat_mode_line): First arg now required. 2005-01-06 17:47:18 +00:00
Steven Tamm
e0e76ab914 * macfns.c: Include sys/param.h.
[TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
	and function.
	[TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
	of filename string.  Set event callback function when creating
	dialog boxes.  Add code conversions for filenames.  Don't dispose
	apple event descriptor record if failed to create it.
* macterm.c: Include sys/param.h.
	[USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
	kEventWindowUpdate.
	(install_window_handler) [USE_CARBON_EVENTS]: Register it.
	(do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
	of FSSpec from apple event descriptor record.
	(do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
	size of filename string.
	[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
	[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
	file dialog is in action.
	[TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.  Reject
	only when there are no filename items.  Set background color
	before (un)highlighting the window below the dragged items.
	(XTread_socket) [!USE_CARBON_EVENTS]: Don't call do_window_update.
2005-01-06 02:53:39 +00:00
Kenichi Handa
043bc640a7 *** empty log message *** 2005-01-06 00:58:07 +00:00
Kenichi Handa
fd4a9f8fae (encode_terminal_code): Fix buffer size computation. 2005-01-06 00:47:50 +00:00
Richard M. Stallman
dd496df6bc *** empty log message *** 2005-01-05 00:09:40 +00:00
Richard M. Stallman
721d04ba97 (Fformat_mode_line): Doc fix. 2005-01-05 00:09:29 +00:00
Stefan Monnier
026cdede85 (refill_memory_reserve): Move.
(emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
(reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
2005-01-04 20:22:41 +00:00
Richard M. Stallman
d57c7572e8 *** empty log message *** 2005-01-04 03:00:45 +00:00
Richard M. Stallman
fa3c342659 (window_scroll_pixel_based): Don't correct preserve_y
for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
2005-01-04 03:00:21 +00:00
Kenichi Handa
d8ca23a0de *** empty log message *** 2005-01-04 00:49:57 +00:00
Jason Rumney
b14f868ca5 *** empty log message *** 2005-01-04 00:44:02 +00:00
Jason Rumney
ad5674f5a1 (w32_load_system_font): Set FONT_WIDTH to maximum, not
average width. Set fontp->average_width and fontp->space_width to
their appropriate values.
2005-01-03 22:53:30 +00:00
Jason Rumney
3aefd49fb9 (x_new_font): Set FRAME_COLUMN_WIDTH to fontp->average_width,
not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to fontp->space_width.
2005-01-03 22:52:51 +00:00
Jason Rumney
a4d75ad7ce (w32_load_bdf_font): Set fontp->average_width and
fontp->space_width to FONT_WIDTH so they are valid.
2005-01-03 22:52:01 +00:00
Steven Tamm
e169f939a5 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
(x_font_min_bounds, XLoadQueryFont): Use the correct font width
	metrics for max and min bounds.
	(x_load_font): Correctly calculate average font width metrics.
2005-01-03 16:49:35 +00:00
Richard M. Stallman
19996af44a *** empty log message *** 2005-01-02 23:46:12 +00:00
Richard M. Stallman
303b041210 (Fgarbage_collect): Don't truncate_undo_list on dead buffers. 2005-01-02 22:52:23 +00:00
Richard M. Stallman
b437860aad (struct it): New element ellipsis_p.
(struct glyph_row): New element ends_in_ellipsis_p.
2005-01-01 01:36:48 +00:00
Richard M. Stallman
f323e507d0 (setup_for_ellipsis, get_next_display_element):
Set it->ellipsis_p to 1 or 0.
(display_line): Record whether row ends in mid-ellipsis.
(set_cursor_from_row): If ends in ellipsis. find start of it.
(cursor_row_p): If PT's at the end of the ellipsis the row
ends within, don't display cursor on this row.

(BUFFER_POS_REACHED_P): We haven't reached the specified
position if we're reading from something other than the buffer.
2005-01-01 01:34:22 +00:00
Jan Djärv
42d02da077 * xterm.c (handle_one_xevent): Clear area in expose event for GTK. 2004-12-31 18:16:10 +00:00
Richard M. Stallman
1db7dd46a1 *** empty log message *** 2004-12-31 15:21:56 +00:00
Richard M. Stallman
940f53e5f8 (window_scroll_pixel_based): Only look at
Vscroll_preserve_screen_position if the old PT can't be kept.
(syms_of_window) <scroll-preserve-screen-position>: Doc fix.
2004-12-31 15:07:48 +00:00
Kim F. Storm
29aa4ce71f (x_produce_glyphs): Fix last change. 2004-12-30 18:07:07 +00:00
Kim F. Storm
33b2f4eaac *** empty log message *** 2004-12-30 18:02:30 +00:00
Kim F. Storm
99c71e5140 (get_line_height_property): New function extracted from
original calc_line_height_property.
(calc_line_height_property): Rework.  Handle t and (nil . ratio).
(x_produce_glyphs): Use them to handle line-height and
line-spacing according to new height spec.
(Qtotal): Remove.
(syms_of_xdisp): Remove defsubr and intern for Qtotal.
2004-12-30 18:01:59 +00:00
Kim F. Storm
1225f637fb (Line Height): Total line-height is now specified
in line-height property of form (HEIGHT TOTAL).  Swap (FACE . RATIO)
in cons cells.  (nil . RATIO) is relative to actual line height.
Use line-height `t' instead of `0' to get minimum height.
2004-12-30 18:01:43 +00:00
Kenichi Handa
c243063e8e *** empty log message *** 2004-12-30 12:45:22 +00:00
Kenichi Handa
37a3c7744c (Finsert_file_contents): Don't use
current_buffer->buffer_file_coding_system even if REPLACE is
non-nil.  Call Qafter_insert_file_set_coding with the second arg
VISIT.
2004-12-30 12:28:41 +00:00
Kenichi Handa
6875d1ae8c (x_new_font): Set FRAME_COLUMN_WIDTH to
fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
fontp-?space_width..
(x_load_font): Calculate fontp->space_width and
fontp->average_width.
(x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
2004-12-30 12:26:31 +00:00
Kenichi Handa
7335e61a83 (x_produce_glyphs): Calculate tab width by
FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
2004-12-30 12:25:28 +00:00
Kenichi Handa
7e2d9efd85 (struct x_display_info): New member Xatom_AVERAGE_WIDTH. 2004-12-30 12:24:39 +00:00
Kenichi Handa
0fc63cc426 (struct frame): New member space_width.
(FRAME_SPACE_WIDTH): New macro.
2004-12-30 12:24:03 +00:00
Kenichi Handa
c773180555 (struct font_info): New members space_width and
average_width.
2004-12-30 12:23:24 +00:00
Steven Tamm
456e761bec * macterm.c (SelectionRange): Add Xcode position apple event struct.
(do_ae_open_documents): Handle Xcode-style file position open
	events.
* term/mac-win.el (mac-drag-n-drop): Handle drag-n-drop events
	that include line numbers.
2004-12-30 02:04:31 +00:00
Luc Teirlinck
188577ceca (syms_of_buffer) <vertical-scroll-bar>: Correct typo. 2004-12-29 22:18:41 +00:00
Richard M. Stallman
99ec74b964 *** empty log message *** 2004-12-29 20:41:37 +00:00
Richard M. Stallman
7c6b20070e (syms_of_buffer) <vertical-scroll-bar>: Doc fix. 2004-12-29 20:39:38 +00:00
Steven Tamm
30c92fab79 * term/mac-win.el: Require x-dnd.
(mac-drag-n-drop): Sync with W32 version.  Use x-dnd.el functions.
* macfns.c (install_window_handler): Modify extern to return OSErr
	value.
	(mac_window): Handle return value of install_window_handler.
* macterm.c (reflect_byte): Remove function.
	(mac_create_bitmap_from_bitmap_data): Don't call it.  Lookup table
	instead.
	(mac_do_font_lists): Simplify calculation of the longest
	nonspecial string.
	[TARGET_API_MAC_CARBON] (init_mac_drag_n_drop): Remove function
	and declaration.
	(mac_initialize) [TARGET_API_MAC_CARBON]: Don't call it.
	[TARGET_API_MAC_CARBON] (mac_do_track_drag): New function and
	declaration.
	(install_window_handler): Return OSErr value.
	(install_window_handler) [TARGET_API_MAC_CARBON]: Register
	handlers for tracking/receiving drag-and-drop items.
	(do_ae_open_documents): Generate unibyte strings for filenames.
	[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.  Reject
	only non-filename items.  Set event modifiers.  Set return value.
2004-12-29 17:25:02 +00:00
Kim F. Storm
a2c7e69a18 *** empty log message *** 2004-12-29 00:10:31 +00:00
Dan Nicolaescu
4b9829242b (decode_coding): Fix previous change. 2004-12-28 18:22:55 +00:00
Richard M. Stallman
93fdf45f65 (back_to_previous_visible_line_start):
Don't call handle_display_prop.
2004-12-28 17:55:12 +00:00
Dan Nicolaescu
5bdca8af0d (decode_coding_XXX, decode_composition_emacs_mule)
(decode_coding_emacs_mule, encode_coding_emacs_mule)
(decode_coding_iso2022, encode_designation_at_bol)
(encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
(decode_coding): Constify arguments and local vars.
2004-12-28 14:50:49 +00:00