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

100017 commits

Author SHA1 Message Date
Glenn Morris
ca36e0ff83 Auto-commit of generated files. 2011-04-18 06:17:49 -04:00
Paul Eggert
cc2e7b46b8 Merge from gnulib. 2011-04-17 21:03:18 -07:00
Chong Yidong
4581706e27 Minor redisplay cleanups.
* src/dispextern.h (FACE_SUITABLE_FOR_ASCII_CHAR_P): Add missing
definition for no-X builds.

* src/termhooks.h (FRAME_WINDOW_P): Remove duplicated definitions.

* src/xdisp.c (get_next_display_element): Remove unnecessary ifdefs.
2011-04-17 14:40:55 -04:00
Glenn Morris
14964899b3 * etc/CONTRIBUTE: Recommend bug-gnu-emacs for patches. 2011-04-16 19:30:56 -07:00
Glenn Morris
4d2d1ccdbb Replace stack-trace-on-error usage in calendar.
* lisp/calendar/diary-lib.el (diary-sexp-entry):
* lisp/calendar/holidays.el (holiday-sexp):
Set debug-on-error rather than the removed stack-trace-on-error.
2011-04-16 19:11:49 -07:00
Glenn Morris
61c2b50edd ChangeLog fix. 2011-04-16 16:31:57 -07:00
Glenn Morris
239da61d98 Use lexcical-binding in f90.el.
* lisp/progmodes/f90.el: Use lexical-binding.  Use utf-8 coding.
(f90-get-correct-indent): Remove unnecessary local variable `cont'.
2011-04-16 16:30:15 -07:00
Paul Eggert
fd35b6f967 Static checks with GCC 4.6.0 and non-default toolkits. 2011-04-16 16:11:35 -07:00
Paul Eggert
399c71d323 * xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512). 2011-04-16 15:48:31 -07:00
Paul Eggert
68afa9ca47 * pop.c: Undo previous change. 2011-04-16 15:32:35 -07:00
Paul Eggert
c7b7425e22 Merge from mainline. 2011-04-16 15:30:01 -07:00
Paul Eggert
5c1ccb0154 * s/sol2-6.h, s/unixware.h (PTY_TTY_NAME_SPRINTF): Protoize decl. 2011-04-16 15:06:00 -07:00
Paul Eggert
006c5daa68 * process.c (keyboard_bit_set): Define only if SIGIO.
(send_process_trap): Mark it with NO_RETURN if it doesn't return.
(send_process): Repair possible setjmp clobbering.
2011-04-16 15:04:41 -07:00
Paul Eggert
efc736d319 * s/usg5-4-common.h (SETUP_SLAVE_PTY): Don't pass extra arg to 'fatal'. 2011-04-16 14:57:28 -07:00
Paul Eggert
4e2fe2e61d * eval.c: Include <stdio.h>, for vsnprintf on non-GNU/Linux hosts. 2011-04-16 14:50:01 -07:00
Paul Eggert
f97334a26e * data.c (arith_error): Mark with NO_RETURN if it doesn't return. 2011-04-16 14:48:36 -07:00
Paul Eggert
4e75f29d3a * alloc.c (bytes_used_when_full, SPARE_MEMORY, BYTES_USED):
Define only if needed.
2011-04-16 14:47:57 -07:00
Paul Eggert
761383f4ec * xterm.c (xembed_send_message): Likewise. 2011-04-16 14:29:00 -07:00
Paul Eggert
875975e94d * xfaces.c (USG, __TIMEVAL__): Likewise. 2011-04-16 14:28:14 -07:00
Paul Eggert
e264f2620b * termhooks.h (struct terminal): Likewise. 2011-04-16 14:27:29 -07:00
Paul Eggert
90efadd1f6 * sysdep.c (_FILE_OFFSET_BITS): Make this hack even uglier
by pacifying GCC about it.  Maybe it's time to retire it?
2011-04-16 14:26:33 -07:00
Paul Eggert
3c647824ce * dispextern.h (struct redisplay_interface): Rename param
to avoid shadowing.
2011-04-16 14:24:54 -07:00
Paul Eggert
b165261a47 * lwlib-utils.c (XtCompositeChildren): Likewise. 2011-04-16 14:23:30 -07:00
Paul Eggert
5c5e6a401e * lwlib-Xm.c (make_dialog): Rename local to avoid shadowing.
(make_menu_in_widget): Add cast to avoid warning.
2011-04-16 14:22:40 -07:00
Paul Eggert
fe3bfdde8d * pop.c (socket_connection): Double-cast to avoid GCC warning
about alignment.
2011-04-16 14:21:24 -07:00
Paul Eggert
5a9c1e26a7 * movemail.c (mail_spool_name): Protoize.
(main): Remove unused var.  Mark var as initialized.
Move locals to avoid shadowing, and use time_t for times.
2011-04-16 14:20:25 -07:00
Paul Eggert
cd52b2441e * fakemail.c (xmalloc, xreallc): Use standard C prototypes
with void *.  This avoids warnings about pointer casts.
2011-04-16 14:13:07 -07:00
Paul Eggert
c5443aa547 * emacsclient.c (main): Don't use uninitialized var.
(IS_ANY_SEP): Remove; unused.
(get_current_dir_name): Add an extern decl.
2011-04-16 14:11:28 -07:00
Paul Eggert
b58c5c4af7 * insdel.c (make_gap_smaller): Define only if
USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC.
2011-04-16 13:32:18 -07:00
Paul Eggert
cad5903248 * keyboard.c (read_char): Make a var volatile so longjmp won't clobber
it.
2011-04-16 13:27:04 -07:00
Paul Eggert
c339dc2e7e * emacs.c (MAX_HEAP_BSS_DIFF, my_edata): Move to where they're used,
so that we aren't warned about unused symbols.
2011-04-16 13:21:26 -07:00
Paul Eggert
94578f9cc2 Add bug#. 2011-04-16 13:09:28 -07:00
Paul Eggert
91a3e27bb7 * xfns.c (Fx_file_dialog): Rename local to avoid shadowing. 2011-04-16 13:07:17 -07:00
Paul Eggert
7a3fb1252c * xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var. 2011-04-16 12:42:09 -07:00
Eli Zaretskii
c4354cb4f4 Fix argument to error' in gnutls-boot'.
src/gnutls.c (Fgnutls_boot): Don't pass Lisp_Object to `error'.
2011-04-16 15:16:40 -04:00
Eli Zaretskii
d1dfb56cc8 Fix regex.c, syntax.c and friends for buffers > 2GB.
src/syntax.h (struct gl_state_s): Declare character position members
 EMACS_INT.
 src/syntax.c (update_syntax_table): Declare 2nd argument EMACS_INT.
 src/textprop.c (verify_interval_modification, interval_of): Declare
 arguments EMACS_INT.
 src/intervals.c (adjust_intervals_for_insertion): Declare arguments
 EMACS_INT.
 src/intervals.h (CHECK_TOTAL_LENGTH): Cast to EMACS_INT, not `int'.
 src/indent.c (Fvertical_motion): Local variable it_start is now
 EMACS_INT.
 src/regex.c (re_match, re_match_2, re_match_2_internal)
 (bcmp_translate, regcomp, regexec, print_double_string)
 (group_in_compile_stack, re_search, re_search_2, regex_compile)
 (re_compile_pattern, re_exec): Declare arguments and local
 variables `size_t' and `ssize_t' and return values `regoff_t', as
 appropriate.
 (POP_FAILURE_REG_OR_COUNT) <pfreg>: Declare `long'.
 (CHECK_INFINITE_LOOP) <failure>: Declare `ssize_t'.
 <compile_stack_type>: `size' and `avail' are now `size_t'.
 src/regex.h <regoff_t>: Use ssize_t, not int.
 (re_search, re_search_2, re_match, re_match_2): Arguments that
 specify buffer/string position and length are now ssize_t and
 size_t.  Return type is regoff_t.
2011-04-16 21:26:30 +03:00
Paul Eggert
dda3aeddcb * xterm.c (x_dispatch_event): More accurate ifdefs. 2011-04-16 09:44:58 -07:00
Paul Eggert
748945cc8b * lwlib.c (first_child) [USE_MOTIF]: Protoize. 2011-04-16 09:42:58 -07:00
Paul Eggert
8ffc96f571 * xfns.c (x_real_positions): Mark locals as initialized. 2011-04-16 08:39:35 -07:00
Paul Eggert
eef9bc799a * xmenu.c (xmenu_show): Don't use uninitialized vars. 2011-04-16 08:38:15 -07:00
Paul Eggert
098db9dd8b * xterm.c: Fix problems found by static analysis with other toolkits.
(toolkit_scroll_bar_interaction): Define and use only if USE_X_TOOLKIT.
(x_dispatch_event): Declare static only if !USE_GTK && USE_X_TOOLKIT.
Define if USE_GTK || (HAVE_MENUS && USE_X_TOOLKIT); USE_MOTIF need
not be part of this test.
(SET_SAVED_BUTTON_EVENT): Define only if USE_X_TOOLKIT || USE_GTK.
* xterm.h (x_dispatch_event): Use USE_GTK, not USE_MOTIF, when testing
whether to declare.
* xterm.c, xterm.h (x_mouse_leave): Bring this function back, but only if
defined HAVE_MENUS && !defined USE_X_TOOLKIT && !defined USE_GTK.
2011-04-16 08:24:20 -07:00
Paul Eggert
eb18f6cc66 * xmenu.c (menu_help_callback): Pointer type fixes.
Use const pointers when pointing at readonly data.  Avoid pointer
signedness clashes.
(FALSE): Remove unused macro.
(update_frame_menubar): Remove unused decl.
2011-04-16 08:15:17 -07:00
Paul Eggert
1fe72bf861 * xfns.c (Fx_hide_tip): Move locals to avoid shadowing. 2011-04-16 08:12:29 -07:00
Paul Eggert
60d9e1db81 * menu.c (push_submenu_start, push_submenu_end): Do not define unless
USE_X_TOOLKIT || USE_GTK || HAVE_NS || defined HAVE_NTGUI.
(single_menu_item): Rename local to avoid shadowing.
2011-04-16 08:11:41 -07:00
Lars Magne Ingebrigtsen
10472dd0d6 (url-http-wait-for-headers-change-function): Protect against malformed headerless responses from servers. 2011-04-16 15:59:54 +02:00
Paul Eggert
39261c266b * keyboard.c (make_lispy_event): Remove unused local var. 2011-04-16 01:37:21 -07:00
Paul Eggert
018c5e19a5 * frame.c, frame.h (x_get_resource_string): Bring this back, but
only if HAVE_X_WINDOWS && !USE_X_TOOLKIT.
2011-04-16 01:36:41 -07:00
Paul Eggert
63d2b86e5d Change bitmaps back to X11-compatible types. 2011-04-16 01:30:05 -07:00
Paul Eggert
55660072db Modernize to C89, for better static checking.
* Activate.c (XMenuActivate): Callback's first arg is readonly.
* AddPane.c (XMenuAddPane): Label is readonly.  Rename local
to avoid shadowing.
* AddSel.c (XMenuAddSelection): Help arg is readonly.  Rename local.
* Create.c (atoi, atof): Remove decls; include <stdlib.h>.
(MAX_INACT_PNUM, TILE_BUF_SIZE): Remove; unused.
(x_get_resource_string): Args are readonly.
(XAllocDisplayColor): colorName is readonly.
(XMenuCreate): def_env is readonly.  Remove unused locals.  Avoid
"else;".
* Destroy.c (XMenuDestroy): Return void.
* Error.c (XMenuError): Remove const pointer.
* EvHand.c (XMenuEventHandler): Return void.
* FindPane.c, FindSel.c: Include <string.h>.
* InsPane.c (XMenuInsertPane): Rename local to avoid shadowing.
* InsSel.c (XMenuInsertSelection): Likewise.
* Internal.c (toggle_color, BUFFER_SIZE): Remove; unused.
(_XMErrorList): Now const.
(_XMWinQueInit, _XMRecomputeGlobals, _XMTransToOrigin, _XMRefreshPane):
(_XMRefreshSelection): Return void.
(_XMWinQueFlush, _XMRefreshSelection): Rename locals to avoid
shadowing.
(_XMWinQueFlush): Use stack, not heap.  Don't use uninitialized var.
* SetAEQ.c (XMenuSetAEQ): Now returns void.
* SetFrz.c (XMenuSetFreeze): Likewise.
* X10.h (XAssoc): Use void * for generic pointer.
* XDelAssoc.c: Include XMenuInt.h rather than duplicating part of it.
* XDestAssoc.c, XMakeAssoc.c: Likewise.
* XDestAssoc.c (XDestroyAssocTable): Return void.
* XMakeAssoc.c (XMakeAssoc): Use void * for generic pointer.
* XMenu.h, XMenuInt.h: Adjust to signature changes.  Use const
for pointers to readonly storage.
* insque.c: Include XMenuInt.h, to check our own signature.
(emacs_insque, emacs_remque): Use void * for generic pointers.
2011-04-16 01:25:42 -07:00
Paul Eggert
aefd87e148 * xgselect.c (xgselect_initialize): Check vs interface
even if ! (defined (USE_GTK) || defined (HAVE_GCONF)).
2011-04-16 00:57:31 -07:00