Commit graph

20884 commits

Author SHA1 Message Date
Richard M. Stallman
a53fe666c2 (read_key_sequence): Explicitly avoid keybuf[-1]. 2006-04-13 01:25:52 +00:00
Nick Roberts
a526e8f579 (note_mouse_highlight): Add help echo for dragging vertical line. 2006-04-13 01:21:48 +00:00
Nick Roberts
5c24517a22 *** empty log message *** 2006-04-13 01:19:56 +00:00
Richard M. Stallman
9d1a8e5da1 (conv_lisp_to_sockaddr): Fix previous change. 2006-04-13 01:08:27 +00:00
Romain Francoise
7e37cb6957 *** empty log message *** 2006-04-12 18:17:17 +00:00
Richard M. Stallman
27448380dc (Fprocess_send_eof): Abort if fail to open null device. 2006-04-12 15:01:37 +00:00
Richard M. Stallman
6bf890d76a (conv_lisp_to_sockaddr): If FAMILY unknown, just return. 2006-04-12 15:00:32 +00:00
YAMAMOTO Mitsuharu
190998d863 *** empty log message *** 2006-04-12 08:11:35 +00:00
YAMAMOTO Mitsuharu
27d744ae6c (Finternal_merge_in_global_face, try_font_list): Add
explicit braces to avoid ambiguous `else'.
2006-04-12 08:11:04 +00:00
YAMAMOTO Mitsuharu
f6645c84ed (get_glyph_string_clip_rects): Add parentheses around &&
within ||.  Add explicit braces to avoid ambiguous `else'.
(dump_glyph_row): Remove label for `inverse_p' from legend.
2006-04-12 08:10:33 +00:00
YAMAMOTO Mitsuharu
7f900522c4 Include config.h before using HAVE_MALLOC_MALLOC_H.
(malloc, realloc, free): Add undefs.
(read_load_commands): Remove unused variable `n' and `j'.
(copy_data_segment): Remove unused variable `r'.
2006-04-12 08:10:07 +00:00
YAMAMOTO Mitsuharu
5eabdcc1a2 (x_set_mouse_position, x_set_mouse_pixel_position)
(x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
(x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
(do_menu_choice, have_menus_p, x_real_positions)
(x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
(x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
(free_frame_menubar): Add externs.
2006-04-12 08:09:44 +00:00
YAMAMOTO Mitsuharu
f93e4d4f49 Don't include gnu.h.
(x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
(x_sync): Move to macfns.c.
[USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
variable `mask_bits'.
(mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
(x_draw_image_glyph_string): Remove unused variable `pixmap'.
(x_mac_to_emacs_modifiers): Remove function.
(XTset_vertical_scroll_bar, mac_handle_visibility_change)
(x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
Add explicit braces to avoid ambiguous `else'.
(x_make_frame_visible): Remove unused variables `type',
`original_top', and `original_left'.
(mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
(x_load_font): Remove unused variables `full_name', and `value'.
(do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
Remove functions.
(do_zoom_window): Reorganize variables with respect to conditionals.
(init_command_handler): Remove unused variable `err'.
[MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
2006-04-12 08:09:24 +00:00
YAMAMOTO Mitsuharu
961bf5901f (get_flavor_type_from_symbol): Remove unused variable `val'.
(get_scrap_private_timestamp, x_get_foreign_selection)
(copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
(Fmac_process_deferred_apple_events): Remove unused variables
`keyword', `reply', `apple_event', `count', and `err'.
2006-04-12 08:08:30 +00:00
YAMAMOTO Mitsuharu
3e7f257019 (min_menu_id): Make element type explicit. 2006-04-12 08:07:48 +00:00
YAMAMOTO Mitsuharu
28a11ed69d (x_to_mac_color): Remove unused variable `tail'.
(x_set_mouse_color): Remove unused variable `dpy'.
(Fx_create_frame): Remove unused variable `x_frame_count'.
(Fx_server_version): Add explicit braces to avoid ambiguous `else'.
(x_sync): Move from macterm.c.
(Fx_file_dialog): Remove unused variable `default_filter_index'.
2006-04-12 08:07:32 +00:00
YAMAMOTO Mitsuharu
1fcd1370e2 (init_process): Remove undef.
(select) [MAC_OSX]: Undefine before including sysselect.h.
(posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
Remove functions and prototypes.
(parse_value): Add parentheses around + inside shift.
(path_from_vol_dir_name): Make static.
(get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
[!MAC_OSX] (get_path_to_system_folder): Likewise.
(Fmac_get_file_creator, Fmac_get_file_type): Remove unused
variable `cCode'.
(Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
(Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
2006-04-12 08:06:59 +00:00
YAMAMOTO Mitsuharu
4f48f1abea (syms_of_fontset, Fset_fontset_font): Put extern and
EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
(syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
Put externs in #ifdef HAVE_X_WINDOWS.
(syms_of_macfns, syms_of_macselect, syms_of_macterm)
(syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
(init_mac_osx_environment) [MAC_OSX]: Add extern.
2006-04-12 08:06:25 +00:00
YAMAMOTO Mitsuharu
9db94f8296 [MAC_OS] (xpm_load_image): Add parentheses around
assignment used as truth value.  Add explicit braces to avoid
ambiguous `else'.
[MAC_OS] (gif_load): Remove unused variable `gcpro1'.
2006-04-12 08:05:52 +00:00
YAMAMOTO Mitsuharu
3df07ecd20 [HAVE_MENUS && MAC_OS]: Include macterm.h. 2006-04-12 08:05:07 +00:00
Jan Djärv
00d70d574c * dispnew.c (init_display): Don't init X display if the user asked
for a non-X display.
2006-04-12 06:23:12 +00:00
Kenichi Handa
957b3c5f2f (setup_coding_system): Use system_eol_type for default
coding->eol_type.
2006-04-12 05:48:37 +00:00
Dan Nicolaescu
db926d8091 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
* data.c (wrong_type_argument): Try to avoid compiler warnings due
to the fact the function is now marked as NO_RETURN.
2006-04-11 07:13:33 +00:00
Eli Zaretskii
978781a5f7 *** empty log message *** 2006-04-10 20:11:12 +00:00
Eli Zaretskii
9b67f3aaa7 (pid_t) [_MSC_VER]: New typedef. 2006-04-10 20:10:33 +00:00
Romain Francoise
8fd0f424be (gethomedir): Use xstrdup. 2006-04-10 11:01:29 +00:00
Andreas Schwab
f8f107772d (gethomedir): Make sure to always return a pointer that
can be passed to free.
2006-04-10 09:33:40 +00:00
Richard M. Stallman
2a8da5551c Undo previous change. 2006-04-09 19:56:27 +00:00
Eli Zaretskii
b6063442a6 Fix last lisp.h entry. 2006-04-09 18:35:58 +00:00
Eli Zaretskii
a86a2f6d7e Remove extraneous newline. 2006-04-09 18:32:11 +00:00
Dan Nicolaescu
4ca412ecd0 (args_out_of_range, args_out_of_range_3)
(Fkill_buffer): Likewise.
2006-04-09 09:18:47 +00:00
Dan Nicolaescu
404be028b9 * puresize.h (pure_write_error): Mark as NO_RETURN.
* lisp.h (args_out_of_range, args_out_of_range_3): Likewise.
2006-04-09 09:03:44 +00:00
Richard M. Stallman
6786a1071a (boyer_moore): Test ch >= 0400, not >. 2006-04-09 01:59:45 +00:00
Eli Zaretskii
f93bd8e401 (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements if a menu is active
on this frame.
2006-04-08 20:05:43 +00:00
Dan Nicolaescu
31a4f621f9 (report_file_error): Mark as NO_RETURN. 2006-04-08 19:35:48 +00:00
Eli Zaretskii
4f27350a99 [STDC_HEADERS]: Include stddef.h. 2006-04-08 16:44:27 +00:00
Eli Zaretskii
7e77352939 (PSEUDOVECSIZE): Fix last change. 2006-04-08 16:37:46 +00:00
Stefan Monnier
6bfd98e75d * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
`raw_status_high', and `raw_status_low' with plain integers, and move
them to the end of the structure.

* alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
pseudovector's size field so only the Lisp_Object fields get GC'd.

* process.c (update_status, make_process, Fdelete_process)
(Fprocess_status, list_processes_1, start_process_unwind)
(create_process, Fmake_network_process, server_accept_connection)
(wait_reading_process_output, send_process, Fprocess_running_child_p)
(process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
(sigchld_handler, status_notify): Adjust to new non-Lisp fields for
`pid' and `raw_status'.
(Fprocess_id, Fsignal_process): Same, and additionally use floats when
representing PIDs that are larger than most-positive-fixnum.
2006-04-08 15:07:35 +00:00
Stefan Monnier
df631196ed (PSEUDOVECTOR_SIZE_MASK): Expand docstring. 2006-04-08 14:34:31 +00:00
Stefan Monnier
15fdcac722 (describe_map): Don't use XINT if we haven't checked INTEGERP. 2006-04-08 14:20:10 +00:00
Stefan Monnier
d0ebe33a4a (OFFSETOF, PSEUDOVECSIZE): New macros. 2006-04-08 14:15:04 +00:00
Eli Zaretskii
1d79e5217c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos. 2006-04-08 12:27:13 +00:00
Paul Eggert
d65b42351f * lib-src/b2m.c (main): Don't include <limits.h>.
(TM_YEAR_BASE): New macro.
(TM_YEAR_IN_ASCTIME_RANGE): Don't define if already defined, so
that s/ files can override this.  Use the more-conservative range
1000-9999.
(main): Check for asctime returning NULL.
* lib-src/fakemail.c: Likewise.
* src/editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
../lib-src/b2m.c and ../lib-src/editfns.c.
(Fcurrent_time_string): Use it.
Document that the year might not consume 4 columns if it's outside
the range 1000-9999.
Check for asctime failure.
Don't assume that the output string length is always exactly 24.
2006-04-04 04:13:02 +00:00
YAMAMOTO Mitsuharu
fc9f8d1541 (XTread_socket): Initialize variable `f' before its use. 2006-04-03 06:28:48 +00:00
Kenichi Handa
022af1243c Include "charset.h" and "coding.h".
(x_find_image_file): Return an encoded file name.
2006-04-03 01:23:44 +00:00
Eli Zaretskii
61be4a8a1f *** empty log message *** 2006-04-01 14:32:13 +00:00
Eli Zaretskii
7c00e1e974 Regenerated. 2006-04-01 13:51:18 +00:00
Kenichi Handa
a869edd4e7 (xg_set_icon): Delete superfluous UNGCPRO. 2006-03-31 00:40:21 +00:00
Dan Nicolaescu
29444a2f7c (syms_of_xdisp): Fix variable name. 2006-03-30 19:35:11 +00:00
Kenichi Handa
3c5f949213 (x_term_init): Delete superfluous UNGCPRO. 2006-03-30 00:47:04 +00:00