1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00
Commit graph

29359 commits

Author SHA1 Message Date
Dan Nicolaescu
76fd1ee9bd Clean up unexec.c, remove references to unused code.
* nt/config.nt: Remove code referring to NO_REMAP, unused.

* src/unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
* src/s/usg5-4.h (COFF):
* src/s/template.h:
* src/s/msdos.h (COFF, NO_REMAP):
* src/s/ms-w32.h (NO_REMAP):
* src/s/hpux10-20.h (NO_REMAP):
* src/m/sparc.h (SEGMENT_MASK):
* src/m/m68k.h (NO_REMAP):
* src/m/intel386.h (SEGMENT_MASK):
* src/m/arm.h (NO_REMAP):
* src/m/alpha.h (COFF):
* src/m/template.h: Remove references to unused defines.
2010-07-28 20:25:08 -07:00
Juanma Barranquero
087b38a075 Fix typos in ChangeLogs. 2010-07-29 04:42:53 +02:00
Jan Djärv
8a52f00afa Add tool bar style text-image-horiz (text to the left of the image).
* lisp/cus-start.el (tool-bar-style): Add text-image-horiz.

* src/gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
style text_image_horiz.

* src/lisp.h (Qtext_image_horiz): Declare.

* src/xdisp.c (Qtext_image_horiz): Define.
(syms_of_xdisp): Initialize Qtext_image_horiz.  Add text-image-horiz
to ducumentation of tool-bar-style.

* src/xsettings.c (Ftool_bar_get_system_style): Also check for
Qtext_image_horiz.
2010-07-28 19:34:51 +02:00
Dan Nicolaescu
6079970319 * src/emacs.c (Fkill_emacs): Remove return statement. 2010-07-27 01:02:44 -07:00
Dan Nicolaescu
37254dc10a Remove declarations and unused variables.
* src/term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
(encode_terminal_code, produce_composite_glyph): Remove unused variables.
(set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
local extern declarations.
2010-07-26 21:20:51 -07:00
Dan Nicolaescu
71c7345a4d * src/xmenu.c: Do not included lwlib.h, not needed. 2010-07-26 21:12:42 -07:00
Dan Nicolaescu
6ba577cbed * src/m/iris4d.h (XUINT, XSET): Remove, not needed. 2010-07-26 21:03:14 -07:00
Dan Nicolaescu
fdb183d636 * src/process.c: Move definitions earlier to minimize #ifdefs. 2010-07-26 20:59:42 -07:00
Dan Nicolaescu
eec47d6ba4 Use const, move declarations to header files.
* src/buffer.c (Fset_buffer_multibyte): Remove local extern declaration.

* src/character.c (strwidth, parse_str_to_multibyte): Add const.

* src/character.h (strwidth, parse_str_to_multibyte): Likewise.

* src/charset.c (add_to_log): Remove declaration.

* src/composite.c (syms_of_composite): Remove local extern declarations.

* src/data.c (Finteractive_form): Use const.

* src/dired.c (scmp): Add const.
(directory_files_internal): Remove local extern declaration.

* src/dispextern.h (add_to_log): Remove declaration.
(x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
(x_frame_get_and_record_arg, x_default_parameter): Add const.

* src/dispnew.c: Remove duplicate #include <unistd.h>.
(update_window, update_frame_1, init_display): Remove local extern
declarations.

* src/editfns.c (region_limit, syms_of_editfns): Remove local extern
declarations.

* src/emacs.c (main): Remove local extern declaration.

* src/font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
(QCheight, QCsize, QCname): Remove declarations.

* src/frame.c (x_get_resource_string, x_get_string_resource)
(x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
(x_default_parameter): Use const.

* src/image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
(QCdata, QCtype, Qcenter): Remove declarations.

* src/keyboard.h (do_mouse_tracking): Add declaration.

* src/minibuf.c (Qmouse_face): Remove declaration.

* src/msdos.c (IT_note_mouse_highlight): Remove local extern declaration.

* src/xdisp.c (do_mouse_tracking): Remove declaration.
(add_to_log): Use const.

* src/xfaces.c (Qmouse_face): Remove declaration.
(face_color_gray_p, tty_defined_color, defined_color)
(face_color_gray_p, face_color_supported_p). Add const.

* src/xfns.c: Include xlwmenu.h when USE_LUCID.
(x_defined_color, xic_set_xfontset): Use const.
(Fx_hide_tip): Remove local extern declaration.

* src/xselect.c (selection_data_to_lisp_data)
(x_property_data_to_lisp):
* src/xrdb.c (x_get_string_resource, file_p)
(x_get_customization_string, magic_file_p, search_magic_path)
(get_system_app, get_user_app, x_load_resources, x_get_resource)
(x_get_string_resource): Use const.

* src/xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
(x_text_icon, x_check_errors, x_connection_closed): Use const.

* src/xterm.h (x_get_customization_string, x_load_resources)
(x_get_resource, x_text_icon, x_text_icon, x_check_errors)
(x_check_errors, x_property_data_to_lisp, defined_color)
(xic_set_xfontset, x_defined_color): Use const.
2010-07-26 20:52:35 -07:00
Dan Nicolaescu
89dc303eb6 * src/lisp.h (Fkill_emacs): Mark as NO_RETURN. 2010-07-26 19:45:53 -07:00
Juanma Barranquero
0ed082fedf Merge from emacs-23 2010-07-27 04:10:05 +02:00
Dan Nicolaescu
977105dcbf NO_RETURN functions should not return.
* keyboard.c (Ftop_level, Fexit_recursive_edit)
(Fabort_recursive_edit): Remove return statements in NO_RETURN
functions.
2010-07-26 10:11:43 -07:00
Dan Nicolaescu
f5ada8903b * frame.h (Qtty_color_mode): Add declaration. 2010-07-26 09:57:19 -07:00
Juanma Barranquero
e29eb8cf27 src/ChangeLog: Add missing bug reference. 2010-07-26 12:09:02 +02:00
Dan Nicolaescu
ccaf03362b Mark functions as NO_RETURN.
* src/lisp.h (Ftop_level, Fexit_recursive_edit)
(Fabort_recursive_edit): Mark as NO_RETURN.
2010-07-25 23:37:26 -07:00
Kenichi Handa
50efd41b43 merge trunk 2010-07-26 13:29:08 +09:00
Kenichi Handa
dfe3c90fa5 font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the number of glyphs gets smaller than the original length. 2010-07-26 13:28:02 +09:00
Juanma Barranquero
7d383292d1 * lread.c (unreadpure, mapatoms_1): Make static. 2010-07-26 02:43:58 +02:00
Christoph Scholtes
a2a0d36b5b * minibuf.c (Fread_buffer): Doc fix (bug#6528). 2010-07-26 01:56:56 +02:00
Juanma Barranquero
da31e629b6 * terminfo.c (tparam): Fix prototype of tparm (followup to 2010-07-25T00:20:51Z!lekktu@gmail.com). 2010-07-25 21:30:14 +02:00
Andreas Schwab
dcc19aacb7 Use __executable_start to find start of text segment for profiling
* emacs.c (main) [PROFILING]: Use __executable_start if defined to
find start of text segment.
* dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
is defined.

* configure.in: Check for __executable_start.
2010-07-25 21:09:54 +02:00
Andreas Schwab
7bfa6d7793 * callproc.c (set_initial_environment): Avoid unbalanced braces. 2010-07-25 20:36:37 +02:00
Ken Brown
63f9a672cb * vm-limit.c (check_memory_limits): Fix previous change; accidentally reverted an earlier change. 2010-07-25 10:13:30 -04:00
Ken Brown
2493307567 Cygwin build cleanup (Bug#6715).
* mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
* vm-limit.c: ...add 'defined (CYGWIN)' here.
2010-07-25 09:46:48 -04:00
Juanma Barranquero
361358ea12 Make building under stricter warning flags somewhat cleaner.
Flags used: -Wold-style-declaration -Wunused-function -Wstrict-prototypes

* lib-src/emacsclient.c (getcwd, w32_getenv):
* lib-src/ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes.

* nt/runemacs.c (set_user_model_id): Fix prototype.

* src/callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
* src/dired.c (opendir, readdir): Fix prototypes.
* src/editfns.c (w32_get_internal_run_time): Fix prototypes.
* src/keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
* src/ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
  (telldir): Remove declaration.
* src/ralloc.c (real_morecore, __morecore): Fix prototypes.
* src/sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
* src/syssignal.h (strsignal): Fix prototype.
* src/term.c (tparam): Fix prototype.
  (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
  (term_get_fkeys): Set inside "#ifndef DOS_NT".
* src/vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
  and __morecore.
* src/w32gui.h (XParseGeometry): Fix prototype.
* src/w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
* src/w32term.c (my_set_focus): Declare inside #if 0.
* src/w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
  (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
  (drain_message_queue, get_next_msg, post_msg, parse_button)
  (ClipboardSequence_Proc): Fix prototypes.
  (wait_for_sync): Remove declaration.
2010-07-25 02:20:51 +02:00
Juanma Barranquero
630b95924e * w32fns.c (w32_to_x_color): Remove, unused. 2010-07-24 22:52:43 +02:00
Andreas Schwab
6a0d661142 * lisp.h: Remove leftover P_. 2010-07-24 20:15:40 +02:00
Dan Nicolaescu
4e8608ff8e Add ChangeLog entry for previous commit:
* ecrt0.c, unexalpha.c: Remove files, unused.
2010-07-24 10:03:41 -07:00
Andreas Schwab
c8197983c5 Make internal_self_insert static
* cmds.c (internal_self_insert): Make static.
* lisp.h (internal_self_insert): Remove declaration.
2010-07-24 17:21:56 +02:00
Juanma Barranquero
c4cc8b9a23 Fix typos in ChangeLogs. 2010-07-24 13:53:19 +02:00
Dan Nicolaescu
80eb92cea8 * src/ecrt0.c, src/unexalpha.c: Remove files, unused. 2010-07-23 21:44:29 -07:00
Juanma Barranquero
33ac04147b Remove unused static functions.
* alloc.c (free_float)
* font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse)
* frame.c (delete_frame_handler)
* ralloc.c (reorder_bloc)
* w32menu.c (menubar_id_to_frame, add_left_right_boundary)
2010-07-23 19:50:14 +02:00
Juanma Barranquero
94da839793 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS". 2010-07-23 12:32:02 +02:00
Juanma Barranquero
2e6c8532c7 * w32term.c (my_set_focus): #ifdef away; currently not used. 2010-07-23 12:09:27 +02:00
Juanma Barranquero
97b372d714 * w32fns.c, xfaces.c: Remove obsolete static declarations. 2010-07-23 11:52:32 +02:00
Christoph Scholtes
a77cfeaf4b * window.c (Fwindow_height): Doc fix (bug#6518). 2010-07-23 01:57:23 +02:00
Juanma Barranquero
14fb570491 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix. 2010-07-21 12:45:01 +02:00
Juanma Barranquero
7c3320d8b9 Convert some more functions to standard C.
* lib-src/emacsclient.c (get_current_dir_name, w32_get_resource)
  (w32_getenv, w32_set_user_model_id, w32_window_app, w32_execvp)
  (close_winsock, initialize_sockets, w32_find_emacs_process)
  (w32_give_focus):
* lib-src/ntlib.c (getlogin, getuid, getgid, getegid):
* nt/addpm.c (add_registry, main):
* nt/cmdproxy.c (get_env_size):
* nt/ddeclient.c (main):
* nt/runemacs.c (set_user_model_id):
* src/alloc.c (emacs_blocked_free, emacs_blocked_malloc)
  (emacs_blocked_realloc, uninterrupt_malloc):
* src/fringe.c (w32_reset_fringes):
* src/image.c (convert_mono_to_color_image, lookup_rgb_color)
  (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
* src/sound.c (be2hs, do_play_sound):
* src/vm-limit.c (get_lim_data, ret_lim_data):
* src/w32term.c (x_free_frame_resources):
* src/xfaces.c (x_create_gc, x_free_gc):
  Convert definitions to standard C.
2010-07-20 22:21:03 +02:00
Stefan Monnier
d5273788df Fix up "missing braces" warning.
* src/eval.c (Feval, Ffuncall): Use the new names.
* src/lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
(DEFUN): Add braces around the union initialisation and use ## to
specify the right union alternative and avoid a cast.
2010-07-20 17:26:53 +02:00
Juanma Barranquero
a628ad9d97 Fix typos in ChangeLogs. 2010-07-20 13:13:25 +02:00
Juanma Barranquero
8d16a25986 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies. 2010-07-18 15:59:40 +02:00
Chong Yidong
3b8eff3233 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660). 2010-07-17 14:34:44 -04:00
Jan D
ce6e9d7fc6 * gtkutil.c (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0 2010-07-17 18:03:16 +02:00
Chong Yidong
1c5f6018d5 Merge latest fix to xg_event_is_for_menubar. 2010-07-17 10:41:10 -04:00
Juanma Barranquero
f6003da52e src/ChangeLog: Fix typos and dates. 2010-07-17 13:38:31 +02:00
Jan D
499322cef9 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
is related to the menu bar (Bug#6499).
2010-07-17 11:59:19 +02:00
Chong Yidong
fea9cabd27 Merge changes from emacs-23 branch. 2010-07-16 11:42:15 -04:00
Jan D
23243f2971 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
widget is non-null (Bug#6645).
2010-07-16 09:50:37 +02:00
Andreas Schwab
01b564ff5e * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font): Convert old-style definition. 2010-07-15 23:54:10 +02:00
Andreas Schwab
2b23d2a6b1 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of timestamp argument. 2010-07-15 23:53:32 +02:00