Commit graph

19934 commits

Author SHA1 Message Date
YAMAMOTO Mitsuharu
d005338b2a [MAC_OS] (XCreateGC): Remove extern. 2005-07-18 05:42:23 +00:00
YAMAMOTO Mitsuharu
e81a5b61b1 (struct mac_display_info): Change types of scratch_cursor_gc
black_relief.gc, and white_relief.gc to GC.
(XCreateGC, XParseGeometry): Move externs from macgui.h.
2005-07-18 05:41:03 +00:00
YAMAMOTO Mitsuharu
e4f5e01926 (x_bitmap_icon, x_make_frame_visible): Remove declarations.
(XSetFont): Add declaration.
(mac_set_forecolor, mac_set_backcolor, mac_set_colors): Remove
functions.
(GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC): New
defines.
(XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
(mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
(mac_draw_rectangle, mac_draw_string_common, mac_scroll_area): Use
them.
(mac_erase_rectangle): New function.
(XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
(x_draw_stretch_glyph_string): Use it.
(XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
(XSetBackground, XSetFont): Adjust for new GC implementation.
(x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
(XTset_vertical_scroll_bar): Clear area under scroll bar.
2005-07-18 05:40:30 +00:00
YAMAMOTO Mitsuharu
623cc1d8d7 (struct _XGC): New struct.
(GC): Use it.
(GCForeground, GCBackground, GCFont): Use X11 mask values.
(XCreateGC, XParseGeometry): Move externs to macterm.h.
2005-07-18 05:39:27 +00:00
YAMAMOTO Mitsuharu
88ad5ea792 (x_set_cursor_color): Use XSetBackground and XSetForeground. 2005-07-18 05:38:38 +00:00
Richard M. Stallman
9b0c2c5620 *** empty log message *** 2005-07-17 03:47:36 +00:00
Richard M. Stallman
a625ee20c8 (Fmake_overlay): Doc fix. 2005-07-17 03:47:19 +00:00
Eli Zaretskii
2e9c1c6def *** empty log message *** 2005-07-16 11:54:17 +00:00
Eli Zaretskii
af621bc3f0 (syms_of_ntproc): staticpro Qhigh, Qlow,
Vw32_valid_locale_ids, and Vw32_valid_codepages.
2005-07-16 11:25:43 +00:00
YAMAMOTO Mitsuharu
407289a44d [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Use
Fstring_as_unibyte instead of string_make_unibyte.
2005-07-16 07:16:55 +00:00
Richard M. Stallman
e4b477a1d1 *** empty log message *** 2005-07-15 18:11:53 +00:00
Richard M. Stallman
673b8d0eca (select_frame_for_redisplay): Use find_symbol_value. 2005-07-15 18:11:34 +00:00
Kim F. Storm
367d949f19 Fix redisplay loop in last change.
(IT_POS_VALID_AFTER_MOVE_P): New macro.
(move_it_vertically_backward, move_it_by_lines): Use it.
2005-07-15 11:32:15 +00:00
Kim F. Storm
a8613adf06 *** empty log message *** 2005-07-15 11:31:55 +00:00
Jason Rumney
2d5324c520 (init_environment): Default HOME directory to user's
appdata directory if possible.
2005-07-14 22:32:50 +00:00
Kim F. Storm
501b66fa1c (pitx): Fix output format. Print string charpos. 2005-07-14 11:30:35 +00:00
Kim F. Storm
7b9389b0d0 *** empty log message *** 2005-07-14 11:30:10 +00:00
Kim F. Storm
a2994c46f9 (syms_of_syntax): Staticpro lisp objects in gl_state.
Staticpro re_match_object.
2005-07-14 11:24:18 +00:00
Kim F. Storm
aa77b5ce04 (syms_of_search): Staticpro searchbuf.whitespace_regexp. 2005-07-14 11:24:08 +00:00
Kim F. Storm
f153db138b (syms_of_lread): Initialize seen_list. 2005-07-14 11:24:00 +00:00
Kim F. Storm
3ed70dc4ab *** empty log message *** 2005-07-14 11:23:40 +00:00
YAMAMOTO Mitsuharu
ef029e5a69 (mac_window_to_frame): Remove duplicate define. 2005-07-14 09:23:40 +00:00
YAMAMOTO Mitsuharu
10b8ef61c0 (get_scrap_target_type_list): Avoid NULL pointer dereference. 2005-07-14 09:23:12 +00:00
Kenichi Handa
16ef9c5612 (code_convert_region_unwind): ARG is changed to a cons.
(code_convert_region): Adjusted for the above change.
(set_conversion_work_buffer): If the work buffer is already in
use, generate a new buffer and return it.  Otherwise return Qnil.
(run_pre_post_conversion_on_str): Adjusted for the above change.
(run_pre_write_conversin_on_c_str): Likewise.
2005-07-14 07:57:42 +00:00
Kim F. Storm
010b9a45b1 *** empty log message *** 2005-07-13 10:29:22 +00:00
Kim F. Storm
0163a0d503 (Fvertical_motion): If start position is on an image,
don't move back if we move too far (that's almost certain to happen).
2005-07-13 10:02:58 +00:00
Kim F. Storm
e0e9a80e8b * xdisp.c (start_display): Don't reseat to next visible line start
if current start position is in a string or image.
(move_it_vertically_backward): Be sure to move out of strings and
images when moving it2 forward.
(move_it_by_lines): When moving forward, move to next buffer
position if we end up in a string or image.  When moving backward,
count rows moved over when moving to start of current row in case
row starts in middle of a string or image.  Also move further
backward if we end up in a string or image.
(try_cursor_movement): if overlay string spans multiple lines,
move backward to set cursor on start of an overlay string.
(cursor_row_p): Row is ok if cursor is at newline from string, but
string starts on this line (so we always position cursor at start
of string).
2005-07-13 10:02:42 +00:00
Kim F. Storm
e3ea3a51e6 (cursor_row_fully_visible_p): Allow partially visible
row in minibuffer windows.
(try_window): Don't check margins in minibuffer windows.
2005-07-13 09:36:12 +00:00
Kim F. Storm
098e1273d8 *** empty log message *** 2005-07-13 09:35:20 +00:00
YAMAMOTO Mitsuharu
c229fb1566 *** empty log message *** 2005-07-13 09:13:35 +00:00
YAMAMOTO Mitsuharu
17d0f03b64 (try_font_list) [MAC_OS]: Try font family name
beginning with that for ASCII.
2005-07-13 09:13:19 +00:00
YAMAMOTO Mitsuharu
95dfb19275 Don't include stdlib.h or composite.h.
(x_use_underline_position_properties, last_mouse_press_frame)
(x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
(syms_of_macterm, mac_initialize): Don't initialize them.
(waiting_for_input, initial_argv, initial_argc)
(Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
(set_frame_menubar, path_from_vol_dir_name): Remove externs.
(extra_keyboard_modifiers): Fix type in extern.
(x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
(x_scroll_bar_report_motion): Add argument types to declaration.
(mac_compute_glyph_string_overhangs): Add declaration.
(disable_mouse_highlight): Remove unused variable.
[USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
(x_scroll_bar_handle_press, x_scroll_bar_handle_release)
(x_scroll_bar_handle_drag): Remove argument `timestamp'.  All
callers changed.
[USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
timestamp.
[USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
(x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
only when its width is less than the height.
(XTredeem_scroll_bar): Sync with xterm.c.
(font_name_table, font_name_table_size, font_name_count): Make
static.
(drag_and_drop_file_list): Remove variable.  Previous use is now
local to function.
(do_ae_open_documents): Move DRAG_N_DROP event construction part
from XTread_socket.
(XTread_socket): Consolidate setting of event timestamp.  Move
DRAG_N_DROP event construction part to do_ae_open_documents.
Support extra_keyboard_modifiers.
2005-07-13 09:12:59 +00:00
Stefan Monnier
69d05d838f *** empty log message *** 2005-07-13 05:38:25 +00:00
Stefan Monnier
aa37e9e246 (gc_cons_threshold): Make it static. 2005-07-13 05:33:34 +00:00
Stefan Monnier
43afcf1762 (gc_cons_threshold): Remove declaration. 2005-07-13 05:32:52 +00:00
Stefan Monnier
856163dbe8 (Feval, Ffuncall): Use gc_cons_combined_threshold. 2005-07-13 05:31:35 +00:00
Stefan Monnier
2a7a50eaea (read_char): Use gc_cons_combined_threshold. 2005-07-13 05:30:56 +00:00
Stefan Monnier
a41abbf623 (gc_cons_combined_threshold): Declare. 2005-07-13 05:30:04 +00:00
Stefan Monnier
642cd12be9 (MAYBE_GC): Use gc_cons_combined_threshold. 2005-07-13 05:29:10 +00:00
Stefan Monnier
96f077ad71 (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
(Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
(syms_of_alloc): Declare gc-cons-percentage.
2005-07-13 05:28:37 +00:00
Kim F. Storm
76e9c4e8ff (intern): Remove dup. intern and staticpro for QTIMESTAMP. 2005-07-12 13:16:44 +00:00
Kim F. Storm
387f6ba5c2 * coding.c (Qprocess_argument):
* coding.h (Qprocess_argument): Remove unused var.
2005-07-12 13:16:18 +00:00
Kim F. Storm
5c7f9de125 *** empty log message *** 2005-07-12 13:16:01 +00:00
YAMAMOTO Mitsuharu
c37efb7a84 *** empty log message *** 2005-07-12 11:33:57 +00:00
YAMAMOTO Mitsuharu
908b04563d [!TARGET_API_MAC_CARBON] Include charset.h, coding.h, and Endian.h.
[!MAC_OSX] (fchmod, fchown): New functions.
(mac_get_code_from_arg): Don't accept Lisp integer as argument.
Use SBYTES and EndianU32_BtoN.
(mac_get_object_from_code): Return 4 byte string even if argument
is 0.  Use make_unibyte_string and EndianU32_NtoB.
(Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
(Fmac_set_file_type): Fix documents and argument declarations.
Don't specify kFSCatInfoNodeFlags.  Support Mac OS Classic.
2005-07-12 11:33:42 +00:00
Stefan Monnier
a4429c5b74 (Frecenter): Yet another int/Lisp_Object mixup (YAILOM). 2005-07-11 21:43:20 +00:00
Richard M. Stallman
51f74c375f *** empty log message *** 2005-07-11 19:28:21 +00:00
Jan Djärv
a2d7e7225c * xfaces.c (x_update_menu_appearance): Use fontSet resource for
Lucid if X_I18N, font otherwise.
2005-07-11 14:28:43 +00:00
Steven Tamm
9a4183e9ea Adding in functions for setting and retrieving file type info
mac.c (Fmac_get_file_type, Fmac_get_file_creator): Added.
	(Fmac_set_file_type, Fmac_set_file_creator): Added
	(mac_get_object_from_code, mac_get_code_from_arg): Added
2005-07-10 18:17:18 +00:00
Richard M. Stallman
3f39f99678 (Qeval_buffer_list, Veval_buffer_list): New vars.
(syms_of_lread): Set up eval-buffer-list.
(Feval_buffer, Feval_region): Bind eval-buffer-list.
2005-07-10 17:02:49 +00:00