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

95315 Commits

Author SHA1 Message Date
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
Dan Nicolaescu
5842a27bbf Convert DEFUNs to standard C.
* src/alloc.c: Convert DEFUNs to standard C.
* src/buffer.c:
* src/bytecode.c:
* src/callint.c:
* src/callproc.c:
* src/casefiddle.c:
* src/casetab.c:
* src/category.c:
* src/character.c:
* src/charset.c:
* src/chartab.c:
* src/cmds.c:
* src/coding.c:
* src/composite.c:
* src/data.c:
* src/dbusbind.c:
* src/dired.c:
* src/dispnew.c:
* src/doc.c:
* src/dosfns.c:
* src/editfns.c:
* src/emacs.c:
* src/eval.c:
* src/fileio.c:
* src/filelock.c:
* src/floatfns.c:
* src/fns.c:
* src/font.c:
* src/fontset.c:
* src/frame.c:
* src/fringe.c:
* src/image.c:
* src/indent.c:
* src/insdel.c:
* src/keyboard.c:
* src/keymap.c:
* src/lread.c:
* src/macros.c:
* src/marker.c:
* src/menu.c:
* src/minibuf.c:
* src/msdos.c:
* src/nsfns.m:
* src/nsmenu.m:
* src/nsselect.m:
* src/print.c:
* src/process.c:
* src/search.c:
* src/sound.c:
* src/syntax.c:
* src/term.c:
* src/terminal.c:
* src/textprop.c:
* src/undo.c:
* src/w16select.c:
* src/w32console.c:
* src/w32fns.c:
* src/w32font.c:
* src/w32menu.c:
* src/w32proc.c:
* src/w32select.c:
* src/window.c:
* src/xdisp.c:
* src/xfaces.c:
* src/xfns.c:
* src/xmenu.c:
* src/xselect.c:
* src/xsettings.c:
* src/xsmfns.c: Likewise.
2010-07-08 14:25:08 -07:00
Eli Zaretskii
71c44c04bb MAINTAINERS: Update Eli Zaretskii's responsibilities. 2010-07-08 21:04:31 +03:00
Eli Zaretskii
e3d5fd37ed Fix MS-DOS configury.
sed1v2.inp (stamp-oldxmenu): Don't edit out in `temacs:' target,
 which doesn't exist.
 sed2v2.inp (HAVE_MEMCPY): Don't edit, already defined on <sys/config.h>.
2010-07-08 20:41:04 +03:00
Eli Zaretskii
d568829b71 Fix MS-DOS build broken by 2010-07-07T17:39:49Z!jan.h.d@swipnet.se.
process.c (kbd_is_on_hold, hold_keyboard_input)
 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2010-07-08 20:30:58 +03:00
Jan D
5221405074 Fix compilation for Motif/Lesstif.
* xmenu.c (set_frame_menubar, create_and_show_popup_menu)
(create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
unless USE_LUCID.
2010-07-08 12:35:54 +02:00
Jan D
c825c0b647 Change function definition from K&R to prototype. Fix prototype warnings.
* lwlib-Xaw.c (xaw_generic_callback, command_reset)
(xaw_update_one_value): Reformat.
(xaw_update_one_widget): Reformat and remove dead code.
(xaw_scrollbar_scroll, xaw_scrollbar_jump, xaw_create_scrollbar)
(xaw_update_scrollbar): Remove (not used).
(make_dialog): Change from K&R to prototype. Remove dead code.
(xaw_creation_table): Remove scrollbar entry.

* lwlib-Xlw.c (x_print_complete_resource_name): Change from K&R to
prototype.
(xlw_update_one_value): Reformat.

* lwlib-Xm.c (x_print_complete_resource_name)
(make_destroyed_instance, free_destroyed_instance, first_child)
(lw_motif_widget_p, resource_motif_string, destroy_all_children)
(xm_arm_callback, xm_update_label, xm_update_list)
(xm_update_pushbutton, xm_update_cascadebutton)
(xm_update_toggle, xm_update_radiobox, make_menu_in_widget)
(update_one_menu_entry, xm_update_menu, xm_update_text)
(xm_update_text_field, xm_update_one_widget)
(xm_update_one_value, activate_button, dialog_key_cb)
(make_dialog, mark_dead_instance_destroyed)
(find_matching_instance, recenter_widget, recycle_instance)
(xm_create_dialog, make_menubar, remove_grabs, make_popup_menu)
(make_main, xm_destroy_instance, xm_popup_menu)
(set_min_dialog_size, xm_pop_instance, do_call)
(xm_internal_update_other_instances, xm_generic_callback)
(xm_nosel_callback, xm_pull_down_callback, xm_pop_down_callback)
(xm_set_keyboard_focus, xm_set_main_areas, xm_manage_resizing): Change
from K&R to prototype.

* lwlib-int.h (widget_creation_function): Fix prototype.

* lwlib.c (allocate_widget_info, lw_register_widget): Change from K&R
to prototype.
(lw_internal_update_other_instances, merge_widget_value): Reformat.

* xlwmenu.c (size_menu_item): Change from K&R to prototype.
Change label_width and height to int.
(draw_arrow, draw_shadow_rectangle, draw_shadow_rhombus)
(draw_separator, display_menu, fit_to_screen, motion_event_is_in_menu)
(map_event_to_widget_value): Reformat.
(display_menu_item): Change from K&R to prototype.
2010-07-08 12:29:51 +02:00
Kenichi Handa
80d4189187 merge trunk 2010-07-08 17:09:35 +09:00
Kenichi Handa
a7840ffb29 Make font-get to get :otf value dynamically from a font-object. 2010-07-08 16:56:21 +09:00
Dan Nicolaescu
0216627eb3 Remove leftover P_ macros.
* lib-src/update-game-score.c (P_): Remove macro.
* lib-src/ebrowse.c: Remove include guards.
(P_): Remove macro.
2010-07-07 22:48:57 -07:00
Dan Nicolaescu
d8825aa36e Remove alternative K&R declarations.
* lwlib/lwlib.c (allocate_widget_instance, get_widget_info)
(get_widget_instance, find_instance, set_one_value)
(update_one_widget_instance, update_all_widget_values)
(lw_modify_all_widgets, lw_get_widget, lw_make_widget)
(lw_create_widget, lw_pop_all_widgets, lw_show_busy)
(lw_refigure_widget, lw_allow_resizing): Remove alternative K&R
declarations.
* lwlib/lwlib-Xlw.c (xlw_update_one_widget):
(xlw_pop_instance): Likewise.
* lwlib/lwlib-Xaw.c (xaw_update_one_widget, xaw_pop_instance):
Likewise.
* lwlib/lwlib-Xm.c (P_): Remove.

* src/xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
2010-07-07 22:42:59 -07:00
Dan Nicolaescu
295d0d8f20 Clean up include guards.
* src/tparam.c: Remove include guards for config.h, string.h and code
that assumes #ifndef emacs.
* src/termcap.c:
* src/unexalpha.c:
* src/sysdep.c:
* src/filemode.c:
* src/filelock.c:
* src/bidi.c: Likewise.
2010-07-07 21:55:07 -07:00
Dan Nicolaescu
49d9e6b07b Remove src/prefix-args.c.
* configure.in (PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS): Remove.

* msdos/sed1v2.inp: Remove reference to prefix-args.

* prefix-args.c: Remove file.
* src/autodeps.mk (ALLOBJS): Remove reference to prefix-args.
* src/Makefile.in (temacs${EXEEXT}): Remove references to
PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
(mostlyclean): Remove reference to prefix-args.
(prefix-args): Remove.
2010-07-07 20:31:04 -07:00