bpt/emacs.git
13 years agoReplace pEd with more-general pI, and fix some printf arg casts.
Paul Eggert [Tue, 19 Apr 2011 00:34:42 +0000 (17:34 -0700)]
Replace pEd with more-general pI, and fix some printf arg casts.
* lisp.h (pI): New macro, generalizing old pEd macro to other
conversion specifiers.  For example, use "...%"pI"d..." rather
than "...%"pEd"...".
(pEd): Remove.  All uses replaced with similar uses of pI.
* src/m/amdx86-64.h, src/m/ia64.h, src/m/ibms390x.h: Likewise.
* alloc.c (check_pure_size): Don't overflow by converting size to int.
* bidi.c (bidi_dump_cached_states): Use pI to avoid cast.
* data.c (Fnumber_to_string): Use pI instead of if-then-else-abort.
* dbusbind.c (xd_append_arg): Use pI to avoid cast.
(Fdbus_method_return_internal, Fdbus_method_error_internal): Likewise.
* font.c (font_unparse_xlfd): Avoid potential buffer overrun on
64-bit hosts.
(font_unparse_xlfd, font_unparse_fcname): Use pI to avoid casts.
* keyboard.c (record_char, modify_event_symbol): Use pI to avoid casts.
* print.c (safe_debug_print, print_object): Likewise.
(print_object): Don't overflow by converting EMACS_INT or EMACS_UINT
to int.
Use pI instead of if-then-else-abort.  Use %p to avoid casts.
* process.c (Fmake_network_process): Use pI to avoid cast.
* region-cache.c (pp_cache): Likewise.
* xdisp.c (decode_mode_spec): Likewise.
* xrdb.c (x_load_resources) [USE_MOTIF]: Use pI to avoid undefined
behavior on 64-bit hosts with printf arg.
* xselect.c (x_queue_event): Use %p to avoid casts.
(x_stop_queuing_selection_requests): Likewise.
(x_get_window_property): Don't truncate byte count to an 'int'
when tracing.

13 years ago* frame.c (frame_name_fnn_p): Get rid of strtol, which isn't right
Paul Eggert [Mon, 18 Apr 2011 23:32:38 +0000 (16:32 -0700)]
* frame.c (frame_name_fnn_p): Get rid of strtol, which isn't right

here, since it parses constructs like leading '-' and spaces,
which are not wanted; and it overflows with large numbers.
Instead, simply match F[0-9]+, which is what is wanted anyway.

13 years ago* alloc.c (check_sblock, check_string_bytes, check_string_free_list): Protoize.
Paul Eggert [Mon, 18 Apr 2011 04:45:15 +0000 (21:45 -0700)]
* alloc.c (check_sblock, check_string_bytes, check_string_free_list): Protoize.

13 years ago* alloc.c: Remove unportable assumptions about struct layout.
Paul Eggert [Mon, 18 Apr 2011 04:41:29 +0000 (21:41 -0700)]
* alloc.c: Remove unportable assumptions about struct layout.

(SDATA_SELECTOR, SDATA_DATA_OFFSET): New macros.
(SDATA_OF_STRING, SDATA_SIZE, allocate_string_data):
(allocate_vectorlike, make_pure_vector): Use the new macros,
plus offsetof, to remove unportable assumptions about struct layout.
These assumptions hold on all porting targets that I know of, but
they are not guaranteed, they're easy to remove, and removing them
makes further changes easier.

13 years ago* alloc.c (allocate_buffer): Don't assume sizeof (struct buffer) is a
Paul Eggert [Mon, 18 Apr 2011 04:25:27 +0000 (21:25 -0700)]
* alloc.c (allocate_buffer): Don't assume sizeof (struct buffer) is a

multiple of sizeof (EMACS_INT); it need not be, if
alignof(EMACS_INT) < sizeof (EMACS_INT).

13 years ago* alloc.c (allocate_string_data) [GC_CHECK_STRING_OVERRUN]: Fix typo that
Paul Eggert [Mon, 18 Apr 2011 04:16:47 +0000 (21:16 -0700)]
* alloc.c (allocate_string_data) [GC_CHECK_STRING_OVERRUN]: Fix typo that

can cause Emacs to crash when string overrun checking is enabled.

13 years ago* alloc.c (string_overrun_cookie): Now const. Use initializers that
Paul Eggert [Mon, 18 Apr 2011 04:13:51 +0000 (21:13 -0700)]
* alloc.c (string_overrun_cookie): Now const.  Use initializers that

don't formally overflow signed char, to avoid warnings.

13 years agoFix typo in comment.
Paul Eggert [Mon, 18 Apr 2011 04:11:56 +0000 (21:11 -0700)]
Fix typo in comment.

13 years ago* alloc.c (BLOCK BYTES): Fix typo by changing "ablock" to "ablocks".
Paul Eggert [Mon, 18 Apr 2011 04:08:35 +0000 (21:08 -0700)]
* alloc.c (BLOCK BYTES): Fix typo by changing "ablock" to "ablocks".

This doesn't fix a bug but makes the code clearer.

13 years agoMerge from gnulib.
Paul Eggert [Mon, 18 Apr 2011 04:03:18 +0000 (21:03 -0700)]
Merge from gnulib.

13 years agoMinor redisplay cleanups.
Chong Yidong [Sun, 17 Apr 2011 18:40:55 +0000 (14:40 -0400)]
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.

13 years ago* etc/CONTRIBUTE: Recommend bug-gnu-emacs for patches.
Glenn Morris [Sun, 17 Apr 2011 02:30:56 +0000 (19:30 -0700)]
* etc/CONTRIBUTE: Recommend bug-gnu-emacs for patches.

13 years agoReplace stack-trace-on-error usage in calendar.
Glenn Morris [Sun, 17 Apr 2011 02:11:49 +0000 (19:11 -0700)]
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.

13 years agoChangeLog fix.
Glenn Morris [Sat, 16 Apr 2011 23:31:57 +0000 (16:31 -0700)]
ChangeLog fix.

13 years agoUse lexcical-binding in f90.el.
Glenn Morris [Sat, 16 Apr 2011 23:30:15 +0000 (16:30 -0700)]
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'.

13 years agoStatic checks with GCC 4.6.0 and non-default toolkits.
Paul Eggert [Sat, 16 Apr 2011 23:11:35 +0000 (16:11 -0700)]
Static checks with GCC 4.6.0 and non-default toolkits.

13 years ago* xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512).
Paul Eggert [Sat, 16 Apr 2011 22:48:31 +0000 (15:48 -0700)]
* xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512).

13 years ago* pop.c: Undo previous change.
Paul Eggert [Sat, 16 Apr 2011 22:32:35 +0000 (15:32 -0700)]
* pop.c: Undo previous change.

13 years agoMerge from mainline.
Paul Eggert [Sat, 16 Apr 2011 22:30:01 +0000 (15:30 -0700)]
Merge from mainline.

13 years ago* s/sol2-6.h, s/unixware.h (PTY_TTY_NAME_SPRINTF): Protoize decl.
Paul Eggert [Sat, 16 Apr 2011 22:06:00 +0000 (15:06 -0700)]
* s/sol2-6.h, s/unixware.h (PTY_TTY_NAME_SPRINTF): Protoize decl.

13 years ago* process.c (keyboard_bit_set): Define only if SIGIO.
Paul Eggert [Sat, 16 Apr 2011 22:04:41 +0000 (15:04 -0700)]
* 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.

13 years ago* s/usg5-4-common.h (SETUP_SLAVE_PTY): Don't pass extra arg to 'fatal'.
Paul Eggert [Sat, 16 Apr 2011 21:57:28 +0000 (14:57 -0700)]
* s/usg5-4-common.h (SETUP_SLAVE_PTY): Don't pass extra arg to 'fatal'.

13 years ago* eval.c: Include <stdio.h>, for vsnprintf on non-GNU/Linux hosts.
Paul Eggert [Sat, 16 Apr 2011 21:50:01 +0000 (14:50 -0700)]
* eval.c: Include <stdio.h>, for vsnprintf on non-GNU/Linux hosts.

13 years ago* data.c (arith_error): Mark with NO_RETURN if it doesn't return.
Paul Eggert [Sat, 16 Apr 2011 21:48:36 +0000 (14:48 -0700)]
* data.c (arith_error): Mark with NO_RETURN if it doesn't return.

13 years ago* alloc.c (bytes_used_when_full, SPARE_MEMORY, BYTES_USED):
Paul Eggert [Sat, 16 Apr 2011 21:47:57 +0000 (14:47 -0700)]
* alloc.c (bytes_used_when_full, SPARE_MEMORY, BYTES_USED):

Define only if needed.

13 years ago* xterm.c (xembed_send_message): Likewise.
Paul Eggert [Sat, 16 Apr 2011 21:29:00 +0000 (14:29 -0700)]
* xterm.c (xembed_send_message): Likewise.

13 years ago* xfaces.c (USG, __TIMEVAL__): Likewise.
Paul Eggert [Sat, 16 Apr 2011 21:28:14 +0000 (14:28 -0700)]
* xfaces.c (USG, __TIMEVAL__): Likewise.

13 years ago* termhooks.h (struct terminal): Likewise.
Paul Eggert [Sat, 16 Apr 2011 21:27:29 +0000 (14:27 -0700)]
* termhooks.h (struct terminal): Likewise.

13 years ago* sysdep.c (_FILE_OFFSET_BITS): Make this hack even uglier
Paul Eggert [Sat, 16 Apr 2011 21:26:33 +0000 (14:26 -0700)]
* sysdep.c (_FILE_OFFSET_BITS): Make this hack even uglier

by pacifying GCC about it.  Maybe it's time to retire it?

13 years ago* dispextern.h (struct redisplay_interface): Rename param
Paul Eggert [Sat, 16 Apr 2011 21:24:54 +0000 (14:24 -0700)]
* dispextern.h (struct redisplay_interface): Rename param

to avoid shadowing.

13 years ago* lwlib-utils.c (XtCompositeChildren): Likewise.
Paul Eggert [Sat, 16 Apr 2011 21:23:30 +0000 (14:23 -0700)]
* lwlib-utils.c (XtCompositeChildren): Likewise.

13 years ago* lwlib-Xm.c (make_dialog): Rename local to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 21:22:40 +0000 (14:22 -0700)]
* lwlib-Xm.c (make_dialog): Rename local to avoid shadowing.

(make_menu_in_widget): Add cast to avoid warning.

13 years ago* pop.c (socket_connection): Double-cast to avoid GCC warning
Paul Eggert [Sat, 16 Apr 2011 21:21:24 +0000 (14:21 -0700)]
* pop.c (socket_connection): Double-cast to avoid GCC warning

about alignment.

13 years ago* movemail.c (mail_spool_name): Protoize.
Paul Eggert [Sat, 16 Apr 2011 21:20:25 +0000 (14:20 -0700)]
* 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.

13 years ago* fakemail.c (xmalloc, xreallc): Use standard C prototypes
Paul Eggert [Sat, 16 Apr 2011 21:13:07 +0000 (14:13 -0700)]
* fakemail.c (xmalloc, xreallc): Use standard C prototypes

with void *.  This avoids warnings about pointer casts.

13 years ago* emacsclient.c (main): Don't use uninitialized var.
Paul Eggert [Sat, 16 Apr 2011 21:11:28 +0000 (14:11 -0700)]
* emacsclient.c (main): Don't use uninitialized var.

(IS_ANY_SEP): Remove; unused.
(get_current_dir_name): Add an extern decl.

13 years ago* insdel.c (make_gap_smaller): Define only if
Paul Eggert [Sat, 16 Apr 2011 20:32:18 +0000 (13:32 -0700)]
* insdel.c (make_gap_smaller): Define only if

USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC.

13 years ago* keyboard.c (read_char): Make a var volatile so longjmp won't clobber
Paul Eggert [Sat, 16 Apr 2011 20:27:04 +0000 (13:27 -0700)]
* keyboard.c (read_char): Make a var volatile so longjmp won't clobber

it.

13 years ago* emacs.c (MAX_HEAP_BSS_DIFF, my_edata): Move to where they're used,
Paul Eggert [Sat, 16 Apr 2011 20:21:26 +0000 (13:21 -0700)]
* emacs.c (MAX_HEAP_BSS_DIFF, my_edata): Move to where they're used,

so that we aren't warned about unused symbols.

13 years agoAdd bug#.
Paul Eggert [Sat, 16 Apr 2011 20:09:28 +0000 (13:09 -0700)]
Add bug#.

13 years ago* xfns.c (Fx_file_dialog): Rename local to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 20:07:17 +0000 (13:07 -0700)]
* xfns.c (Fx_file_dialog): Rename local to avoid shadowing.

13 years ago* xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var.
Paul Eggert [Sat, 16 Apr 2011 19:42:09 +0000 (12:42 -0700)]
* xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var.

13 years agoFix argument to `error' in `gnutls-boot'.
Eli Zaretskii [Sat, 16 Apr 2011 19:16:40 +0000 (15:16 -0400)]
Fix argument to `error' in `gnutls-boot'.

 src/gnutls.c (Fgnutls_boot): Don't pass Lisp_Object to `error'.

13 years agoFix regex.c, syntax.c and friends for buffers > 2GB.
Eli Zaretskii [Sat, 16 Apr 2011 18:26:30 +0000 (21:26 +0300)]
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.

13 years ago* xterm.c (x_dispatch_event): More accurate ifdefs.
Paul Eggert [Sat, 16 Apr 2011 16:44:58 +0000 (09:44 -0700)]
* xterm.c (x_dispatch_event): More accurate ifdefs.

13 years ago* lwlib.c (first_child) [USE_MOTIF]: Protoize.
Paul Eggert [Sat, 16 Apr 2011 16:42:58 +0000 (09:42 -0700)]
* lwlib.c (first_child) [USE_MOTIF]: Protoize.

13 years ago* xfns.c (x_real_positions): Mark locals as initialized.
Paul Eggert [Sat, 16 Apr 2011 15:39:35 +0000 (08:39 -0700)]
* xfns.c (x_real_positions): Mark locals as initialized.

13 years ago* xmenu.c (xmenu_show): Don't use uninitialized vars.
Paul Eggert [Sat, 16 Apr 2011 15:38:15 +0000 (08:38 -0700)]
* xmenu.c (xmenu_show): Don't use uninitialized vars.

13 years ago* xterm.c: Fix problems found by static analysis with other toolkits.
Paul Eggert [Sat, 16 Apr 2011 15:24:20 +0000 (08:24 -0700)]
* 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.

13 years ago* xmenu.c (menu_help_callback): Pointer type fixes.
Paul Eggert [Sat, 16 Apr 2011 15:15:17 +0000 (08:15 -0700)]
* 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.

13 years ago* xfns.c (Fx_hide_tip): Move locals to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 15:12:29 +0000 (08:12 -0700)]
* xfns.c (Fx_hide_tip): Move locals to avoid shadowing.

13 years ago* menu.c (push_submenu_start, push_submenu_end): Do not define unless
Paul Eggert [Sat, 16 Apr 2011 15:11:41 +0000 (08:11 -0700)]
* 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.

13 years ago(url-http-wait-for-headers-change-function): Protect against malformed headerless...
Lars Magne Ingebrigtsen [Sat, 16 Apr 2011 13:59:54 +0000 (15:59 +0200)]
(url-http-wait-for-headers-change-function): Protect against malformed headerless responses from servers.

13 years ago* keyboard.c (make_lispy_event): Remove unused local var.
Paul Eggert [Sat, 16 Apr 2011 08:37:21 +0000 (01:37 -0700)]
* keyboard.c (make_lispy_event): Remove unused local var.

13 years ago* frame.c, frame.h (x_get_resource_string): Bring this back, but
Paul Eggert [Sat, 16 Apr 2011 08:36:41 +0000 (01:36 -0700)]
* frame.c, frame.h (x_get_resource_string): Bring this back, but

only if HAVE_X_WINDOWS && !USE_X_TOOLKIT.

13 years agoChange bitmaps back to X11-compatible types.
Paul Eggert [Sat, 16 Apr 2011 08:30:05 +0000 (01:30 -0700)]
Change bitmaps back to X11-compatible types.

13 years agoModernize to C89, for better static checking.
Paul Eggert [Sat, 16 Apr 2011 08:25:42 +0000 (01:25 -0700)]
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.

13 years ago* xgselect.c (xgselect_initialize): Check vs interface
Paul Eggert [Sat, 16 Apr 2011 07:57:31 +0000 (00:57 -0700)]
* xgselect.c (xgselect_initialize): Check vs interface

even if ! (defined (USE_GTK) || defined (HAVE_GCONF)).

13 years agoregistry.el (registry-reindex): New method to recreate the secondary registry indices.
Teodor Zlatanov [Sat, 16 Apr 2011 06:56:17 +0000 (06:56 +0000)]
registry.el (registry-reindex): New method to recreate the secondary registry indices.
gnus-registry.el (gnus-registry-fixup-registry): Use it if the tracked field changes.
 (gnus-registry-unfollowed-addresses, gnus-registry-track-extra)
 (gnus-registry-action, gnus-registry-spool-action)
 (gnus-registry-handle-action)
 (gnus-registry--split-fancy-with-parent-internal)
 (gnus-registry-split-fancy-with-parent)
 (gnus-registry-register-message-ids): Add recipient tracking on spool, move, and delete actions, and for fancy splitting with parent.
 (gnus-registry-extract-addresses)
 (gnus-registry-fetch-recipients-fast)
 (gnus-registry-fetch-header-fast): Convenience functions.
 (gnus-registry-misc-test): ERT test of `gnus-registry-extract-addresses'.

13 years ago* xmenu.c (xmenu_show): Rename parm to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 05:01:04 +0000 (22:01 -0700)]
* xmenu.c (xmenu_show): Rename parm to avoid shadowing.

13 years ago* xrdb.c (x_load_resources): Omit unused local.
Paul Eggert [Sat, 16 Apr 2011 04:37:14 +0000 (21:37 -0700)]
* xrdb.c (x_load_resources): Omit unused local.

13 years ago* xterm.c (x_create_toolkit_scroll_bar): Use const * for pointers
Paul Eggert [Sat, 16 Apr 2011 04:13:47 +0000 (21:13 -0700)]
* xterm.c (x_create_toolkit_scroll_bar): Use const * for pointers

to read-only memory.

13 years agolisp/ChangeLog, src/ChangeLog: Fix typos.
Juanma Barranquero [Sat, 16 Apr 2011 03:44:06 +0000 (05:44 +0200)]
lisp/ChangeLog, src/ChangeLog: Fix typos.

13 years agoFixed bugs in ns_get_family and ns_descriptor_to_entity that were caused by using...
Ben Key [Sat, 16 Apr 2011 03:14:08 +0000 (22:14 -0500)]
Fixed bugs in ns_get_family and ns_descriptor_to_entity that were caused by using free to deallocate memory blocks that were allocated by xmalloc (via xstrdup).

13 years ago* fns.c (vector): Remove; this old hack is no longer needed.
Paul Eggert [Sat, 16 Apr 2011 03:13:28 +0000 (20:13 -0700)]
* fns.c (vector): Remove; this old hack is no longer needed.

13 years ago* xsmfns.c (gdk_x11_set_sm_client_id) [!USE_GTK]: Don't define.
Paul Eggert [Sat, 16 Apr 2011 03:06:07 +0000 (20:06 -0700)]
* xsmfns.c (gdk_x11_set_sm_client_id) [!USE_GTK]: Don't define.

13 years ago* xsmfns.c: Remove unused var.
Paul Eggert [Sat, 16 Apr 2011 03:04:03 +0000 (20:04 -0700)]
* xsmfns.c: Remove unused var.

13 years ago* xsmfns.c (create_client_leader_window): Rename shadowing arg.
Paul Eggert [Sat, 16 Apr 2011 03:03:01 +0000 (20:03 -0700)]
* xsmfns.c (create_client_leader_window): Rename shadowing arg.

13 years ago* xrdb.c (x_load_resources) [!USE_MOTIF]: Omit unused local.
Paul Eggert [Sat, 16 Apr 2011 03:00:21 +0000 (20:00 -0700)]
* xrdb.c (x_load_resources) [!USE_MOTIF]: Omit unused local.

13 years ago* xfns.c (USG): Use the kludged USG macro, to pacify gcc.
Paul Eggert [Sat, 16 Apr 2011 02:58:53 +0000 (19:58 -0700)]
* xfns.c (USG): Use the kludged USG macro, to pacify gcc.

13 years ago* xfns.c (x_window): Rename locals to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 02:57:41 +0000 (19:57 -0700)]
* xfns.c (x_window): Rename locals to avoid shadowing.

13 years ago* xfns.c (free_frame_menubar, atof): Remove duplicate decls.
Paul Eggert [Sat, 16 Apr 2011 02:51:35 +0000 (19:51 -0700)]
* xfns.c (free_frame_menubar, atof): Remove duplicate decls.

13 years ago* xterm.c (x_term_init): Remove local to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 02:49:21 +0000 (19:49 -0700)]
* xterm.c (x_term_init): Remove local to avoid shadowing.

13 years ago* xterm.c (x_alloc_nearest_color_for_widget): Remove; unused.
Paul Eggert [Sat, 16 Apr 2011 02:47:50 +0000 (19:47 -0700)]
* xterm.c (x_alloc_nearest_color_for_widget): Remove; unused.

13 years ago* xfns.c, xterm.c (_XEditResCheckMessages): Protoize decl.
Paul Eggert [Sat, 16 Apr 2011 02:45:59 +0000 (19:45 -0700)]
* xfns.c, xterm.c (_XEditResCheckMessages): Protoize decl.

13 years ago* xdisp.c, dispextern.h (set_vertical_scroll_bar): Now extern if
Paul Eggert [Sat, 16 Apr 2011 01:54:37 +0000 (18:54 -0700)]
* xdisp.c, dispextern.h (set_vertical_scroll_bar): Now extern if

USE_TOOLKIT_SCROLL_BARS && !USE_GTK, as xterm.c needs it then.

13 years ago* lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;".
Paul Eggert [Sat, 16 Apr 2011 01:42:03 +0000 (18:42 -0700)]
* lwlib.c (EXPLAIN, destroy_one_instance): Avoid "else;".

13 years ago* lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused.
Paul Eggert [Sat, 16 Apr 2011 01:41:12 +0000 (18:41 -0700)]
* lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused.

13 years ago* xlwmenu.c (MINL): Define only if not emacs.
Paul Eggert [Sat, 16 Apr 2011 01:38:14 +0000 (18:38 -0700)]
* xlwmenu.c (MINL): Define only if not emacs.

13 years ago* xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing.
Paul Eggert [Sat, 16 Apr 2011 01:36:46 +0000 (18:36 -0700)]
* xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing.

13 years agoModified the code that parses the --cflags and --ldflags options to support parameter...
Ben Key [Fri, 15 Apr 2011 22:48:00 +0000 (17:48 -0500)]
Modified the code that parses the --cflags and --ldflags options to support parameters that include the = character as long as they are enclosed in quotes.

13 years agonus-registry.el (gnus-registry--split-fancy-with-parent-internal): Track by subject...
Teodor Zlatanov [Fri, 15 Apr 2011 14:29:02 +0000 (14:29 +0000)]
nus-registry.el (gnus-registry--split-fancy-with-parent-internal): Track by subject first, then sender.

13 years agoUse completion-at-point for mailalias.el
Stefan Monnier [Fri, 15 Apr 2011 13:50:04 +0000 (10:50 -0300)]
Use completion-at-point for mailalias.el
* lisp/mail/mailalias.el: Use lexical-binding.
(pattern, mailalias-done): Declare dynamic.
(mail-completion-at-point-function): New function, from mail-complete.
(mail-complete): Use it.
(mail-completion-expand): New function.
(mail-get-names): Use it.
(mail-directory, mail-directory-process, mail-directory-stream):
Don't use `pattern' for lexically bound arg.
* lisp/mail/sendmail.el (mail-mode-map): Use completion-at-point.
(mail-mode): Setup mailalias completion here instead.

13 years ago* lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Use eval-sexp-add-defvars.
Stefan Monnier [Fri, 15 Apr 2011 12:57:53 +0000 (09:57 -0300)]
* lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Use eval-sexp-add-defvars.

13 years ago* lisp/gnus/gnus-draft.el (gnus-draft-setup): New arg `dont-pop'.
Stefan Monnier [Fri, 15 Apr 2011 12:42:51 +0000 (09:42 -0300)]
* lisp/gnus/gnus-draft.el (gnus-draft-setup): New arg `dont-pop'.
(gnus-draft-send): Use it to avoid popping
up frames from gnus-group-send-queue.
* lisp/gnus/gnus.el (gnus-splash-svg-color-symbols): Don't use insert-file
from Lisp.
* lisp/gnus/message.el (message-bogus-system-names): Replace ^...$ => \`...\'.

13 years ago* lisp/htmlfontify.el (hfy-etags-cmd): Remove inoperant eval-and-compile.
Stefan Monnier [Fri, 15 Apr 2011 12:35:32 +0000 (09:35 -0300)]
* lisp/htmlfontify.el (hfy-etags-cmd): Remove inoperant eval-and-compile.
(hfy-e2x-etags-cmd, hfy-etags-cmd-alist-default)
(hfy-etags-cmd-alist): Don't eval-and-compile any more.

13 years ago* lisp/emacs-lisp/bytecomp.el (byte-temp-output-buffer-show)
Stefan Monnier [Fri, 15 Apr 2011 12:30:15 +0000 (09:30 -0300)]
* lisp/emacs-lisp/bytecomp.el (byte-temp-output-buffer-show)
(byte-save-window-excursion, byte-temp-output-buffer-setup)
(byte-interactive-p): Define them again, for use when inlining old code.

13 years ago* sysdep.c (emacs_read): Remove unnecessary check vs MAX_RW_COUNT.
Paul Eggert [Fri, 15 Apr 2011 10:23:56 +0000 (03:23 -0700)]
* sysdep.c (emacs_read): Remove unnecessary check vs MAX_RW_COUNT.

13 years agoemacs_write: Accept and return EMACS_INT for sizes.
Paul Eggert [Fri, 15 Apr 2011 08:51:02 +0000 (01:51 -0700)]
emacs_write: Accept and return EMACS_INT for sizes.

13 years ago* sound.c: Use EMACS_INT rather than size_t.
Paul Eggert [Fri, 15 Apr 2011 08:47:25 +0000 (01:47 -0700)]
* sound.c: Use EMACS_INT rather than size_t.

13 years ago* process.c (send_process): Change a size_t to EMACS_INT.
Paul Eggert [Fri, 15 Apr 2011 08:35:53 +0000 (01:35 -0700)]
* process.c (send_process): Change a size_t to EMACS_INT.

13 years ago* process.c (send_process): Change another size_t to EMACS_INT.
Paul Eggert [Fri, 15 Apr 2011 08:31:40 +0000 (01:31 -0700)]
* process.c (send_process): Change another size_t to EMACS_INT.

13 years agoemacs_write: Accept and return EMACS_INT for sizes.
Paul Eggert [Fri, 15 Apr 2011 08:22:34 +0000 (01:22 -0700)]
emacs_write: Accept and return EMACS_INT for sizes.

13 years agoMerge from mainline.
Paul Eggert [Fri, 15 Apr 2011 07:48:51 +0000 (00:48 -0700)]
Merge from mainline.

13 years agolisp/loadup.el: Use `string-to-number', not `string-to-int'.
Juanma Barranquero [Fri, 15 Apr 2011 03:15:22 +0000 (05:15 +0200)]
lisp/loadup.el: Use `string-to-number', not `string-to-int'.

13 years agoFix link errors in the Mac OS build that were caused by variables being marked as...
Ben Key [Fri, 15 Apr 2011 02:03:43 +0000 (21:03 -0500)]
Fix link errors in the Mac OS build that were caused by variables being marked as static that should not have been.

13 years ago* lisp/progmodes/gud.el (gud-gdb): Use completion-at-point instead of
Stefan Monnier [Fri, 15 Apr 2011 01:44:00 +0000 (22:44 -0300)]
* lisp/progmodes/gud.el (gud-gdb): Use completion-at-point instead of
gud-gdb-complete-command.
(gud-gdb-completions): New function, from gud-gdb-complete-command.
(gud-gdb-completion-at-point): New function.
(gud-gdb-completions): Remove.

13 years agosrc/font.c (Qopentype): Don't make static (used from w32uniscribe.c).
Juanma Barranquero [Fri, 15 Apr 2011 01:26:32 +0000 (03:26 +0200)]
src/font.c (Qopentype): Don't make static (used from w32uniscribe.c).

13 years ago* src/process.c (Qprocessp): Don't declare static.
Stefan Monnier [Fri, 15 Apr 2011 00:58:49 +0000 (21:58 -0300)]
* src/process.c (Qprocessp): Don't declare static.
* src/lisp.h (Qprocessp): Declare again.

13 years agoFix merge typo.
Paul Eggert [Thu, 14 Apr 2011 20:20:17 +0000 (13:20 -0700)]
Fix merge typo.