bpt/emacs.git
13 years ago* lisp/vc/vc.el (vc-diff-build-argument-list-internal)
Christoph Scholtes [Wed, 20 Apr 2011 17:33:09 +0000 (14:33 -0300)]
* lisp/vc/vc.el (vc-diff-build-argument-list-internal)
(vc-version-ediff, vc-ediff): New functions.
(vc-version-diff): Use vc-diff-build-argument-list-internal.
* doc/emacs/maintaining.texi (Old Revisions): Add paragraph on new function
vc-ediff.
* etc/NEWS: Document new function `vc-ediff'.

13 years ago* lisp/emacs-lisp/byte-opt.el (byte-decompile-bytecode-1): Remove dead code,
Stefan Monnier [Wed, 20 Apr 2011 17:28:07 +0000 (14:28 -0300)]
* lisp/emacs-lisp/byte-opt.el (byte-decompile-bytecode-1): Remove dead code,
add sanity check.

13 years ago* Makefile.in (config.status): Don't erase in case of error.
Stefan Monnier [Wed, 20 Apr 2011 17:23:30 +0000 (14:23 -0300)]
* Makefile.in (config.status): Don't erase in case of error.
In case it disappeared, rebuild it with `configure'.

13 years ago* lisp/obsolete/erc-hecomplete.el: Make obsolete.
Stefan Monnier [Wed, 20 Apr 2011 17:18:34 +0000 (14:18 -0300)]
* lisp/obsolete/erc-hecomplete.el: Make obsolete.
* obsolete/: Standardize obsolescence info in the header.

13 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 20 Apr 2011 10:23:12 +0000 (06:23 -0400)]
Auto-commit of loaddefs files.

13 years agoAuto-commit of generated files.
Glenn Morris [Wed, 20 Apr 2011 10:18:10 +0000 (06:18 -0400)]
Auto-commit of generated files.

13 years ago* configure.in (use_mmap_for_buffers): Set to yes on Cygwin.
Ken Brown [Wed, 20 Apr 2011 02:18:13 +0000 (22:18 -0400)]
* configure.in (use_mmap_for_buffers): Set to yes on Cygwin.

13 years agosolar.el fixes.
Glenn Morris [Wed, 20 Apr 2011 02:09:06 +0000 (19:09 -0700)]
solar.el fixes.

* lisp/calendar/solar.el (solar-horizontal-coordinates):
Use the longitude argument rather than `calendar-longitude' (15yr old bug).
(solar-date-next-longitude): Remove unused locals.

13 years agognus-registry.el (gnus-registry-action, gnus-registry-fetch-header-fast):
Katsumi Yamaoka [Wed, 20 Apr 2011 00:43:48 +0000 (00:43 +0000)]
gnus-registry.el (gnus-registry-action, gnus-registry-fetch-header-fast):
 Don't use mail-header that looks an internal function of mailheader.el.

13 years ago* lisp/progmodes/octave-mod.el (octave-in-comment-p, octave-in-string-p)
Stefan Monnier [Tue, 19 Apr 2011 15:33:34 +0000 (12:33 -0300)]
* lisp/progmodes/octave-mod.el (octave-in-comment-p, octave-in-string-p)
(octave-not-in-string-or-comment-p): Use syntax-ppss so it works with
multi-line comments as well.

13 years agolisp/*.el: Lexical-binding cleanup.
Juanma Barranquero [Tue, 19 Apr 2011 13:44:55 +0000 (15:44 +0200)]
lisp/*.el: Lexical-binding cleanup.

13 years agoSupport buffers > 2GB on 64-bit hosts.
Eli Zaretskii [Tue, 19 Apr 2011 10:48:30 +0000 (13:48 +0300)]
Support buffers > 2GB on 64-bit hosts.

 src/insdel.c (make_gap_larger): Remove limitation of buffer size
 to <= INT_MAX.
 src/syntax.h (SETUP_SYNTAX_TABLE_FOR_OBJECT): Fix setting of
 gl_state.e_property when gl_state.object is Qt.

13 years agocalendar housekeeping prompted by lexical-binding.
Glenn Morris [Tue, 19 Apr 2011 04:11:01 +0000 (21:11 -0700)]
calendar housekeeping prompted by lexical-binding.

* lisp/calendar/appt.el (appt-make-list):
* lisp/calendar/cal-china.el (calendar-chinese-date-string):
* lisp/calendar/cal-hebrew.el (calendar-hebrew-list-yahrzeits)
(diary-hebrew-yahrzeit):
* lisp/calendar/cal-tex.el (cal-tex-last-blank-p, cal-tex-cursor-week2):
* lisp/calendar/calendar.el (calendar-generate-window):
* lisp/calendar/time-date.el (time-to-days):
Remove unused local variables.

* lisp/calendar/cal-dst.el (dst-adjust-time): Remove never-implemented
optional argument `style'.

* lisp/calendar/cal-tex.el (cal-tex-list-holidays, cal-tex-cursor-month)
(cal-tex-cursor-week, cal-tex-cursor-week2, cal-tex-cursor-week-iso)
(cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week)
(cal-tex-cursor-filofax-daily, cal-tex-mini-calendar)
* lisp/calendar/cal-html.el (cal-html-insert-minical):
* lisp/calendar/diary-lib.el (diary-list-entries-1, diary-list-entries)
(calendar-mark-date-pattern):
Prefix "unused" locals.

13 years agoAllow glyphless-char-display to distinguish between X and text terminals.
Chong Yidong [Mon, 18 Apr 2011 23:21:31 +0000 (19:21 -0400)]
Allow glyphless-char-display to distinguish between X and text terminals.
Use this for Tabulated List mode.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Use a custom
glyphless-char-display table.
(tabulated-list-glyphless-char-display): New var.

* src/term.c (produce_glyphless_glyph): Handle cons cell entry in
glyphless-char-display.

* src/xdisp.c (lookup_glyphless_char_display)
(produce_glyphless_glyph): Handle cons cell entry in
glyphless-char-display.
(Vglyphless_char_display): Document it.

13 years agognus-registry.el, registry.el: Silence the byte compiler.
Katsumi Yamaoka [Mon, 18 Apr 2011 22:59:02 +0000 (22:59 +0000)]
gnus-registry.el, registry.el: Silence the byte compiler.

gnus-registry.el: Eliminate cl functions.
 (gnus-registry-sort-addresses): New function that replaces mapcan.
 (gnus-registry-action, gnus-registry-spool-action)
 (gnus-registry-split-fancy-with-parent)
 (gnus-registry-fetch-recipients-fast): Use it.
 (gnus-registry-import-eld): Replace delete* with dolist + delq.
registry.el (initialize-instance, registry-lookup)
 (registry-lookup-breaks-before-lexbind, registry-lookup-secondary)
 (registry-lookup-secondary-value, registry-search, registry-delete)
 (registry-insert, registry-reindex, registry-size, registry-prune):
 Use eval-and-compile.

13 years ago* lisp/vc/add-log.el (change-log-font-lock-keywords): Add "Thanks to" to acknowledgments.
Sam Steingold [Mon, 18 Apr 2011 20:35:18 +0000 (16:35 -0400)]
* lisp/vc/add-log.el (change-log-font-lock-keywords): Add "Thanks to" to acknowledgments.

13 years agoAuto-commit of generated files.
Glenn Morris [Mon, 18 Apr 2011 10:17:49 +0000 (06:17 -0400)]
Auto-commit of generated files.

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.