Commit graph

20981 commits

Author SHA1 Message Date
YAMAMOTO Mitsuharu
bd13cae72f (Fmac_clear_font_name_table): Move defun to macfns.c.
(syms_of_mac): Likewise for defsubr.
2006-05-07 08:04:22 +00:00
YAMAMOTO Mitsuharu
41f7a85e0d *** empty log message *** 2006-05-06 06:52:46 +00:00
YAMAMOTO Mitsuharu
fb8b2fc348 (Qduration) [MAC_OS]: New variable.
(syms_of_image) [MAC_OS]: Intern and staticpro it.
[MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
[MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
instead of cfstring_create_with_string.
2006-05-06 06:52:24 +00:00
Kim F. Storm
28c1e1cac4 (xframe): Print frame name.
(xlist): New command to print a list (max 10 elements).
(xpr): Print lisp object of any type.
(pitx): Print it->pixel_width.
2006-05-05 23:56:35 +00:00
Kim F. Storm
a1dfdf246e *** empty log message *** 2006-05-05 23:54:11 +00:00
Kenichi Handa
ba1eeafade (handle_composition_prop): Fix for the case of empty
composition component.
2006-05-05 11:56:31 +00:00
Kenichi Handa
37e213259f *** empty log message *** 2006-05-05 11:56:08 +00:00
YAMAMOTO Mitsuharu
ef0154b506 *** empty log message *** 2006-05-05 06:45:26 +00:00
YAMAMOTO Mitsuharu
8b6361c15f (enum event_kind) [MAC_OS]: Update comment for MAC_APPLE_EVENT. 2006-05-05 06:45:04 +00:00
YAMAMOTO Mitsuharu
93ad8ad96b (mac_make_lispy_event_code): Remove extern.
(mac_post_mouse_moved_event): Add extern.
(mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
`const AEDesc *' in externs.
(create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
2006-05-05 06:44:55 +00:00
YAMAMOTO Mitsuharu
a733ef1679 (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
path select also for proxy icon click.
[TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
[USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
(xlfdpat_create): Remove unused label `error' and trailing sentences.
(mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
(mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
macselect.c.
(install_drag_handler, remove_drag_handler): Add extern.
(mac_store_apple_event): Change return type to void.  All uses changed.
Create Lisp object from Apple event and store it into input event.
(mac_make_lispy_event_code): Remove function.
[TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
(install_window_handler): Call install_drag_handler.
(remove_window_handler): Call remove_drag_handler.
2006-05-05 06:44:45 +00:00
YAMAMOTO Mitsuharu
044f1b6463 Update copyright year.
(mac_store_apple_event): Change return type to void in extern.
(mac_handle_apple_event): Don't get return value from
mac_store_apple_event.
[TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
(syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
[TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
macterm.c.  Use Vmac_dnd_known_types as acceptable flavors.
[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.  New
implementation using create_apple_event_from_drag_ref.
[TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
(mac_do_receive_dragUPP): Move variables from macterm.c.
(install_drag_handler, remove_drag_handler): New functions.
2006-05-05 06:44:29 +00:00
YAMAMOTO Mitsuharu
0e530e3b36 (restore_menu_items, cleanup_popup_menu): Return a value. 2006-05-05 06:44:10 +00:00
YAMAMOTO Mitsuharu
b99934e6ee (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
`const AEDesc *'.
[TARGET_API_MAC_CARBON] (create_apple_event): New function.
[TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
Use xrealloc instead of repeated xmalloc/xfree.
[TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
function.
2006-05-05 06:44:01 +00:00
YAMAMOTO Mitsuharu
2e1df0e6b9 (make_lispy_event) [MAC_OS]: Get Apple event info from event->arg. 2006-05-05 06:43:50 +00:00
Richard M. Stallman
e4a9a1cfc7 *** empty log message *** 2006-05-03 23:28:43 +00:00
Richard M. Stallman
8e6ec322ba (Fplay_sound_internal): Dynamically allocate
current_sound_device and current_sound.
(sound_cleanup): Free them.
2006-05-03 23:26:40 +00:00
Richard M. Stallman
8b0ba111b1 (read_minibuf): Don't use read_minibuf_noninteractive
when inside a keyboard macro.
2006-05-03 23:12:06 +00:00
Andreas Schwab
64ec8b2f3d (restore_menu_items): Return a value. 2006-05-01 22:58:47 +00:00
Stefan Monnier
fcdd458570 (Fforward_comment): Detect generic comment at beginning of
buffer when moving backwards.
2006-05-01 13:09:24 +00:00
Kim F. Storm
5fed8c15b8 *** empty log message *** 2006-05-01 09:38:57 +00:00
YAMAMOTO Mitsuharu
d5085af01f (mac_update_title_bar): Minor format change. 2006-05-01 02:51:38 +00:00
YAMAMOTO Mitsuharu
c1eb34c22c *** empty log message *** 2006-05-01 01:14:30 +00:00
YAMAMOTO Mitsuharu
15ba779363 (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
(get_glyph_face_and_encoding, get_char_face_and_encoding): Don't
distinguish known faces from others.
2006-05-01 01:14:09 +00:00
YAMAMOTO Mitsuharu
6dc5c8a75b (unexec): Error if trying unexec from dumped executable. 2006-05-01 01:13:42 +00:00
YAMAMOTO Mitsuharu
a019c41a5c (mac_update_title_bar): Add extern.
(struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
(FRAME_FILE_NAME): New macro.
2006-05-01 01:13:29 +00:00
YAMAMOTO Mitsuharu
458dbb8c7a (mac_draw_line, mac_draw_line_to_pixmap): Adjust
endpoints of strictly horizontal/vertical lines.
(mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
(pcm_init, pcm_get_status): New functions.
(x_per_char_metric, XLoadQueryFont): Use them instead of
XCharStructRow and related macros.
(x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
(x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
(XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
and window path pop-up menu on title bar.
(mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
2006-05-01 01:13:06 +00:00
YAMAMOTO Mitsuharu
b0635670ea (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
(USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
(enum pcm_status): New enum.
(XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
(XCharStructRow): Remove.  Now validity is represented by
non-negativeness of sum of ascent and descent.
(struct MacFontStruct): Change type of member `rows'.
(struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
2006-05-01 01:12:23 +00:00
YAMAMOTO Mitsuharu
caec817144 (mac_update_title_bar): New function.
[TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
(show_hourglass, hide_hourglass) [USE_CG_DRAWING]: Call
mac_prepare_for_quickdraw.
2006-05-01 01:11:56 +00:00
YAMAMOTO Mitsuharu
d3601bf266 (mac_coerce_file_name_ptr): Try typeFSRef if coercion
through typeFileURL failed.
2006-05-01 01:11:28 +00:00
YAMAMOTO Mitsuharu
a59871e76d (update_window): Don't set changed_p when mode/header
line is updated.
2006-05-01 01:11:01 +00:00
Richard M. Stallman
9abc5f4519 (Fdefine_key): Improve error message when KEY begins with a non-prefix key. 2006-04-30 22:15:21 +00:00
Stefan Monnier
39c41ad421 (Fforward_comment): Don't forget to break out of the loop
when we skipped backward over a generic comment.
2006-04-30 15:35:54 +00:00
Nick Roberts
5cd35d2cf0 (pp1, pv1): Only print value as expression is now printed out by gud-print.
(pv1): Correct doc string.
2006-04-26 23:02:33 +00:00
Nick Roberts
4a113e3faf *** empty log message *** 2006-04-26 23:01:51 +00:00
Stefan Monnier
e89e07ccac (store_in_keymap): Change def' arg to not be register'.
Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
keymap.c:895: error: address of register variable `def' requested.
2006-04-26 20:50:25 +00:00
Jason Rumney
8b03732ee0 (construct_mouse_wheel): Handle negative coordinates. 2006-04-26 18:19:13 +00:00
Jason Rumney
f5f69b6b47 (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
<WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
where we preempt mouse_button_timer.
2006-04-26 17:54:41 +00:00
Jason Rumney
7d6f8c685e *** empty log message *** 2006-04-26 17:54:06 +00:00
Miles Bader
51d793dabf Revision: emacs@sv.gnu.org/emacs--devo--0--patch-245
(Ffield_beginning, find_field): Undo change of 2006-04-23.

2006-04-25  Miles Bader  <miles@gnu.org>

   * src/editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
2006-04-25 08:18:01 +00:00
Stefan Monnier
a9ec73170e Include headers for pid_t. 2006-04-24 13:10:19 +00:00
Kim F. Storm
4ec9a7e215 Fix last change:
(produce_stretch_glyph): Assume that face box height and width is
already	included in stretch glyph size so caller doesn't have to
consider the extra space otherwise added (fixes problem in ses.el).
2006-04-24 00:22:26 +00:00
Kim F. Storm
6fcd305cf5 *** empty log message *** 2006-04-24 00:21:55 +00:00
Kim F. Storm
536fde8e09 (produce_stretch_glyph): Include face box in stretch glyph size. 2006-04-24 00:08:07 +00:00
Kim F. Storm
e8a0da872a *** empty log message *** 2006-04-24 00:07:47 +00:00
Kim F. Storm
825de9a102 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
2006-04-23 23:50:25 +00:00
Kim F. Storm
1ada896b7d *** empty log message *** 2006-04-23 23:50:09 +00:00
Kim F. Storm
14922abe03 (tool_bar_lines_needed): New local `temp_row' for clarity.
(tool_bar_lines_needed): Clear it when done, so we don't accidentally
draw a second copy of the tool-bar after resetting f->n_tool_bar_rows.
(redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
we recalculate f->n_tool_bar_rows.
2006-04-23 22:28:17 +00:00
Kim F. Storm
ca03f883c5 (x_set_font): Clear f->n_tool_bar_rows and current frame
matrices to force recalculation of tool-bar height after font change.
2006-04-23 22:26:58 +00:00
Kim F. Storm
e934649479 *** empty log message *** 2006-04-23 22:26:35 +00:00