1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

95327 Commits

Author SHA1 Message Date
Dan Nicolaescu
ebd156110c Convert function definitions to standard C.
* src/xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
(x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
(cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
(xaw_jump_callback, xaw_scroll_callback)
(x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
(x_wm_set_size_hint, x_activate_timeout_atimer): Convert
definitions to standard C.
* src/xmenu.c (menubar_id_to_frame, popup_get_selection)
(popup_activate_callback, popup_deactivate_callback)
(menu_highlight_callback, menubar_selection_callback)
(apply_systemfont_to_dialog, apply_systemfont_to_menu)
(free_frame_menubar, popup_selection_callback, as)
(create_and_show_popup_menu, dialog_selection_callback)
(create_and_show_dialog):
* src/xfns.c (hack_wm_protocols, x_window):
* src/xfaces.c (x_update_menu_appearance):
* src/widget.c (get_default_char_pixel_size, pixel_to_char_size)
(char_to_pixel_size, round_size_to_char, get_wm_shell)
(set_frame_size, update_wm_hints, setup_frame_gcs)
(update_various_frame_slots, update_from_various_frame_slots)
(EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
(EmacsFrameSetValues, EmacsFrameQueryGeometry)
(EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2010-07-12 12:29:49 -07:00
Andreas Schwab
de06a2dd4d * dbusbind.c (xd_initialize): Don't compare boolean with a constant. 2010-07-12 21:03:53 +02:00
Eli Zaretskii
1408902e03 (wait_reading_process_output) [!subprocesses]: Convert arg list to ANSI C. 2010-07-12 21:44:35 +03:00
Eli Zaretskii
10a4499802 Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org, 2010-07-12T17:04:38Z!dann@ics.uci.edu, 2010-07-12T17:21:11Z!dann@ics.uci.edu).
src/process.c (setup_process_coding_systems): Move to the part
 shared by non-subprocesses systems, and make its body empty when
 subprocesses is not defined.
 (close_process_descs): Move to the part shared by non-subprocesses
 systems.
 msdos/sed1v2.inp (C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
 Edit to empty.
 msdos/sed3v2.inp(C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
 Edit to empty.
2010-07-12 21:36:48 +03:00
Eli Zaretskii
fc549af9e0 Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org, 2010-07-12T17:04:38Z!dann@ics.uci.edu, 2010-07-12T17:21:11Z!dann@ics.uci.edu).
msdos/sed1v2.inp (C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
 Edit to empty.
 msdos/sed3v2.inp(C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
 Edit to empty.
 src/process.c (setup_process_coding_systems): Move to the part
 shared by non-subprocesses systems, and make its body empty when
 subprocesses is not defined.
 (close_process_descs): Move to the part shared by non-subprocesses
 systems.
2010-07-12 21:23:00 +03:00
Dan Nicolaescu
5dddb7a8b1 * nt/config.nt (volatile): Remove definition. 2010-07-12 11:16:54 -07:00
Andreas Schwab
e9952282f8 * language/tai-viet.el ("TaiViet"): Try to fix re-encoding bugs. (Bug#5806) 2010-07-12 20:10:49 +02:00
Andreas Schwab
beb000f9bc * language/tv-util.el (tai-viet-re): Remove format. 2010-07-12 19:55:35 +02:00
Andreas Schwab
d5a3eaaf13 Convert old-style definitions
* editfns.c (transpose_markers): Convert old-style definition.
* emacs.c (abort, shut_down_emacs, fixup_locale)
(synchronize_system_time_locale)
(synchronize_system_messages_locale, syms_of_emacs): Likewise.
* floatfns.c (extract_float, matherr, init_floatfns)
(syms_of_floatfns): Likewise.
* fns.c (make_hash_table): Likewise.
* ftfont.c (ftfont_get_otf, ftfont_otf_features)
(ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
(ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
(ftfont_variation_glyphs): Likewise.
* gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
* keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
* lread.c (read_filtered_event): Likewise.
* minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
* process.c (wait_reading_process_output): Likewise.
* scroll.c (do_line_insertion_deletion_costs): Likewise.
* search.c (search_buffer, boyer_moore): Likewise.
* syntax.c (scan_sexps_forward): Likewise.
* xdisp.c (try_scrolling): Likewise.
* xfaces.c (face_at_buffer_position, face_for_overlay_string)
(face_at_string_position): Likewise.
* xfns.c (x_default_scroll_bar_color_parameter): Likewise.
* xselect.c (x_get_window_property, receive_incremental_selection)
(x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
Likewise.
* xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2010-07-12 19:47:17 +02:00
Dan Nicolaescu
ded80a25b7 Cleanups for src/callproc.c.
* src/callproc.c (child_setup): Remove subprocesses conditional.
Remove code dealing with SET_EMACS_PRIORITY, unused.
2010-07-12 10:21:11 -07:00
Dan Nicolaescu
49d937f449 * src/buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
* src/process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2010-07-12 10:04:38 -07:00
Dan Nicolaescu
2e31d424a1 Convert function definitions to standard C and some cleanups.
* src/emacs.c (__do_global_ctors, __do_global_ctors_aux)
(__do_global_dtors, __main): Use void in definition.
(main): Remove code dealing with SET_EMACS_PRIORITY, unused.
Remove SYMS_MACHINE code, unused.  Remove SYMS_SYSTEM, inline
the only users from ...
* src/s/ms-w32.h (SYMS_SYSTEM): ... here and ...
* src/s/msdos.h (SYMS_SYSTEM): ... here.  Remove.
(HAVE_VOLATILE): Remove, unused.
2010-07-12 09:56:59 -07:00
Dan Nicolaescu
6f704c7675 Convert more function definitions to standard C.
* src/xdisp.c (window_box_edges, handle_single_display_spec)
(display_string): Convert definition to standard C.
* src/scroll.c (do_direct_scrolling, scrolling_1):
* src/dispnew.c (allocate_matrices_for_frame_redisplay)
(mirrored_line_dance):
* src/coding.c (code_convert_string):
* src/charset.c (map_charset_chars):
* src/ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
(Fregister_ccl_program, Fregister_code_conversion_map):
* src/keyboard.c (kbd_buffer_nr_stored): Likewise.
(head_table): Make static and const.
2010-07-12 09:32:53 -07:00
Andreas Schwab
e6cfa7c31f Properly handle C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS
* configure.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
(PROFILING_LDFLAGS): Substitute, don't add them to CFLAGS/LDFLAGS.
(C_OPTIMIZE_SWITCH): Remove.
(TEMACS_LDFLAGS2): Add ${PROFILING_LDFLAGS}.

* lib-src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
(PROFILING_LDFLAGS): Set from substitution.
(BASE_CFLAGS): Add  ${C_WARNINGS_SWITCH}.
(ALL_CFLAGS, CPP_CFLAGS): Add ${PROFILING_CFLAGS}.
(LINK_CFLAGS): Add ${PROFILING_LDFLAGS}.

* lwlib/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
substitution.
(ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.

* oldXMenu/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
substitution.
(ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.

* src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
(PROFILING_LDFLAGS): Set from substitution.
(ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
CFLAGS last.
2010-07-12 16:16:38 +02:00
Eli Zaretskii
f09e4c6bcd MS-Windows follow-up for 2010-07-12T05:25:46Z!handa@etlken.
makefile.w32-in (lisp2): Change hebrew.el to hebrew.elc.
2010-07-12 12:22:20 +03:00
Kenichi Handa
6f2cdcd112 Improve Hebrew rendering. 2010-07-12 14:25:46 +09:00
Kenichi Handa
2300368463 merge trunk 2010-07-12 11:28:50 +09:00
Kenichi Handa
892dd5657e Add ChangeLog 2010-07-12 11:27:21 +09:00
Chong Yidong
f479ef6e6f * mouse.el (mouse-drag-track): Handle select-active-regions (Bug#6612). 2010-07-11 18:14:53 -04:00
Andreas Schwab
c8fc18ee03 * blockinput.h: Remove obsolete comment. 2010-07-11 21:51:46 +02:00
Andreas Schwab
89887d672a Use offsetof instead of own definition
* lisp.h: Include <stddef.h>.
(OFFSETOF): Don't define.
(VECSIZE): Use offsetof instead of OFFSETOF.
(PSEUDOVECSIZE): Likewise.
* process.c (conv_sockaddr_to_lisp): Likewise.
* alloc.c: Don't include <stddef.h>.
* buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2010-07-11 20:34:43 +02:00
Andreas Schwab
ae96d47a63 * process.c: Remove obsolete comment. 2010-07-11 20:19:16 +02:00
Chong Yidong
635c0aa1a5 * src/xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091). 2010-07-11 12:07:38 -04:00
Eli Zaretskii
4ea6cb0a62 Remove redundant definitions of HAVE_STRCHR and HAVE_STRRCHR for MS-DOS.
sed2v2.inp (HAVE_STRCHR, HAVE_STRRCHR): Don't edit, already
 defined on <sys/config.h>.
2010-07-11 16:43:10 +03:00
Andreas Schwab
8966b7575b Use strchr, strrchr instead of index, rindex
* callint.c (Fcall_interactively): Use strchr, strrchr instead of
index, rindex.
* doc.c (get_doc_string, Fsnarf_documentation): Likewise.
* editfns.c (Fuser_full_name, Fformat): Likewise.
* emacs.c (argmatch, sort_args, decode_env_path): Likewise.
* fileio.c (Ffile_symlink_p): Likewise.
* filelock.c (current_lock_owner): Likewise.
* font.c (font_parse_name, font_parse_family_registry): Likewise.
* fontset.c (fontset_pattern_regexp): Likewise.
* lread.c (read1): Likewise.
* sysdep.c (init_system_name): Likewise.
* xfns.c (select_visual): Likewise.
* s/hpux10-20.h (index, rindex): Don't define.
* s/ms-w32.h (index): Likewise.
* s/usg5-4.h: Likewise.

* sed2v2.inp (HAVE_INDEX, HAVE_RINDEX): Don't edit.
(HAVE_STRCHR, HAVE_STRRCHR): Edit to 1.

* emacsclient.c (set_local_socket): Use strchr, strrchr instead of
index, rindex.
* movemail.c (mail_spool_name, popmail): Likewise.
* pop.c (pop_list): Likewise.

* CPP-DEFINES (HAVE_INDEX, HAVE_RINDEX): Remove.

* configure.in: Don't check for index and rindex, check for strchr
and strrchr.  Define strchr and strrchr as index and rindex,
resp., in src/config.h if not available.
2010-07-11 12:31:10 +02:00
Andreas Schwab
cf237e277f * callproc.c (relocate_fd): Use F_DUPFD if defined. 2010-07-11 11:49:44 +02:00
Andreas Schwab
a8fe7202b4 Constify functions taking char *
* alloc.c (pending_malloc_warning, malloc_warning): Add const.
* callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
(egetenv): Likewise.
* doprnt.c (doprnt): Likewise.
* editfns.c (set_time_zone_rule, format2): Likewise.
* emacs.c (decode_env_path): Likewise.
* eval.c (signal_error, error): Likewise.
* insdel.c (replace_range_2): Likewise.
* keyboard.c (cmd_error_internal): Likewise.
* lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
* print.c (write_string, write_string_1, print_error_message):
Likewise.
* vm-limit.c (warn_function, memory_warnings): Likewise.
* xdisp.c (message1, message1_nolog, message_with_string)
(vmessage, message, message_nolog): Likewise.
* emacs.c: Remove duplicate declaration.
* keyboard.h: Likewise.
* lisp.h: Update prototypes.
2010-07-11 11:27:13 +02:00
Andreas Schwab
bb8e180f2c Fix indentation problem 2010-07-11 10:44:34 +02:00
Andreas Schwab
83380e65cd Fix implicit declaration of kbd_on_hold_p
* keyboard.c: Include "process.h"
2010-07-11 10:38:40 +02:00
Andreas Schwab
a64df65010 Remove obsolete noinline declaration
* eval.c (apply1, call2): Don't declare noinline.
* fns.c (concat): Likewise.
2010-07-11 10:38:22 +02:00
Michael Albinus
3277c1ee3a * net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Do not pass
empty argument to gvfs-copy.
2010-07-11 10:28:04 +02:00
Ken Raeburn
6a8033e1c6 Make doprnt and related functions ANSI C compliant, with prototypes.
* doprnt.c (doprnt): Take a va_list argument instead of count and
pointer.
* eval.c (error): Change to a standard-C variadic function.
* xdisp.c (vmessage): Renamed from message, made static, and
changed to take a va_list argument.
(message): New variadic wrapper.
(message_nolog): Now a variadic function, calling vmessage.
* lisp.h: Include stdarg.h for va_list.
(doprnt, error, message, message_nolog): Decls updated.
2010-07-11 02:59:55 -04:00
Eli Zaretskii
994a7c3beb Fix bug #6603.
makefile.w32-in (obj): Add menu.o, bidi.o, w32uniscrobe.o, and unexw32.o.
2010-07-11 09:39:00 +03:00
Eli Zaretskii
462aa963ef Don't use `subprocesses' in msdos.c.
msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
 (delete_exited_processes): Don't define.
 process.c (syms_of_process) <delete-exited-processes>: Define
 even if !subprocesses.
 (delete_exited_processes): Ditto.
2010-07-11 08:55:06 +03:00
Aleksei Gusev
dce3463576 Add compilation regexps for cucumber and ruby.
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add
regexps for cucumber and ruby.
2010-07-10 15:47:59 -04:00
Chong Yidong
7ac1c66454 Merge changes from emacs-23 branch. 2010-07-10 15:01:01 -04:00
Chong Yidong
4810446229 Adapt terminal frames to latest menu-bar changes.
* frame.c (make_frame): Initialize menu_bar_lines and
tool_bar_lines members.
(make_initial_frame, make_terminal_frame): Initialize
menu_bar_lines using value of menu-bar-mode.

* msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2010-07-10 14:56:47 -04:00
Chong Yidong
2ec1b5ee34 Merge changes from emacs-23 branch. 2010-07-10 14:52:53 -04:00
Chong Yidong
7c33a05722 * xfaces.c (realize_face): Garbage the frame if a face is removed
(Bug#6593).
2010-07-10 13:58:29 -04:00
Eli Zaretskii
c971758df7 Makefile.in ($(DESTDIR)${archlibdir}): Convert spaces to TABs. 2010-07-10 17:29:46 +03:00
Eli Zaretskii
f388c88aec Unify the two branches, with and without subprocesses.
process.c: Reshuffle #include's.  Condition some of the global
 and static variables on `subprocesses'.
 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
 Leave only one implementation.
 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
 (kill_buffer_processes, Flist_system_processes)
 (Fprocess_attributes, init_process, syms_of_process): Unify the
 implementations for with subprocesses and without them.
2010-07-10 16:26:44 +03:00
Michael Albinus
ca1bb391de * tramp.texi (Inline methods): Remove "kludgy" phrase.
(Filename Syntax): Describe port numbers.
2010-07-10 11:49:41 +02:00
Michael Albinus
5bd55c3cb7 * dbus.texi (Top): Introduce Index. Emphasize "nil" whereever
forgotten.
(Type Conversion): Precise conversion of natural numbers.
(Errors and Events): Add "debugging" to concept index.  Add variable
`dbus-debug'.
2010-07-09 21:24:38 +02:00
Andreas Schwab
91a7f76db4 * make-docfile.c (write_c_args): Restructure scanning loop. 2010-07-09 19:00:04 +02:00
Jan D
723f5a070c Fix frame sizing for Lucid/Motif/Lesstif.
* xfns.c (x_window): Set borderWidth to 0 for pane and
EmacsFrame.  Frame size calculation is wrong otherwise.

* xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
correct size for Motif.
(free_frame_menubar): Call x_set_window_size to update frame size.
2010-07-09 18:39:51 +02:00
Michael Albinus
2536a4b7d8 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
allows to suppress errors when polling in Emacs' main loop.
(Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
(Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
(Fdbus_method_error_internal, Fdbus_send_signal)
(xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
(Fdbus_register_method): Use it.  (Bug#6579)
2010-07-09 11:05:47 +02:00
Eli Zaretskii
b88746ba3f Adapt docs of primitives to ANSI C arg list.
internals.texi (Writing Emacs Primitives): Adapt to ANSI C
 calling sequences, which are now the standard.
2010-07-09 11:38:50 +03:00
Kenichi Handa
e1ffae3bb6 merge trunk 2010-07-09 15:55:27 +09:00
Dan Nicolaescu
0508c67f47 Make make-docfile understand DEFUN arguments written in standard C.
* lib-src/make-docfile.c (write_c_args): Deal with type names in DEFUN
arguments.
2010-07-08 18:09:50 -07:00
Dan Nicolaescu
45871610dd * configure.in: Use -Wold-style-definition if available.
This helps with the transition to standard C code, it can be
removed when done.
2010-07-08 16:34:47 -07:00