bpt/emacs.git
13 years agoFix more problems found by GCC 4.6.0's static checks.
Paul Eggert [Wed, 30 Mar 2011 00:39:12 +0000 (17:39 -0700)]
Fix more problems found by GCC 4.6.0's static checks.

13 years ago* unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
Paul Eggert [Wed, 30 Mar 2011 00:19:27 +0000 (17:19 -0700)]
* unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:

Remove unused local var.

13 years ago* editfns.c (Fmessage_box): Remove unused local var.
Paul Eggert [Wed, 30 Mar 2011 00:17:26 +0000 (17:17 -0700)]
* editfns.c (Fmessage_box): Remove unused local var.

13 years agoMerge from mainline.
Paul Eggert [Tue, 29 Mar 2011 23:35:49 +0000 (16:35 -0700)]
Merge from mainline.

13 years ago* allout.el (allout-hide-by-annotation, allout-flag-region): Reduce
Ken Manheimer [Tue, 29 Mar 2011 18:26:01 +0000 (14:26 -0400)]
* allout.el (allout-hide-by-annotation, allout-flag-region): Reduce
possibility of overlay leakage by making them volatile.

* allout-widgets.el (allout-widgets-tally): Define as nil so the hash is
not shared between buffers.  Mode initialization is responsible for giving
it a useful starting value.
(allout-item-span): Reduce possibility of overlay leakage by making them
volatile.
(allout-widgets-count-buttons-in-region): Add diagnostic function for
tracking down overlay leaks.

13 years agosrc/scroll.c, src/w32.c: Trivial whitespace changes.
Juanma Barranquero [Tue, 29 Mar 2011 14:00:16 +0000 (16:00 +0200)]
src/scroll.c, src/w32.c: Trivial whitespace changes.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Tue, 29 Mar 2011 13:23:38 +0000 (13:23 +0000)]
Merge changes made in Gnus trunk.

mm-view.el (mm-display-inline-fontify): Use `set-normal-mode' with local variables disabled rather than `normal-mode'.
imap.el (imap-shell-open, imap-process-connection-type): Use imap-process-connection-type for 'shell' streams as well as Kerberos, SSL, other subprocesses.

13 years agoAdd to minibuffer-history if HISOTRY is nil in ido.el
Leo Liu [Tue, 29 Mar 2011 08:25:31 +0000 (16:25 +0800)]
Add to minibuffer-history if HISOTRY is nil in ido.el

It is broken by the change on 2011-03-21.

13 years ago* xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
Paul Eggert [Tue, 29 Mar 2011 07:01:11 +0000 (00:01 -0700)]
* xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):

(note_mode_line_or_margin_highlight, note_mouse_highlight):
Omit unused local vars.

13 years ago* window.c (shrink_windows): Omit unused local var.
Paul Eggert [Tue, 29 Mar 2011 06:59:27 +0000 (23:59 -0700)]
* window.c (shrink_windows): Omit unused local var.

13 years ago* menu.c (digest_single_submenu): Omit unused local var.
Paul Eggert [Tue, 29 Mar 2011 06:58:36 +0000 (23:58 -0700)]
* menu.c (digest_single_submenu): Omit unused local var.

13 years ago* dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
Paul Eggert [Tue, 29 Mar 2011 06:57:40 +0000 (23:57 -0700)]
* dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:

Omit unused local var.

13 years ago* etags.c (just_read_file): Remove dummy variable and simplify.
Paul Eggert [Tue, 29 Mar 2011 06:54:38 +0000 (23:54 -0700)]
* etags.c (just_read_file): Remove dummy variable and simplify.

13 years ago* INSTALL.BZR: Tiny re-wording.
Glenn Morris [Tue, 29 Mar 2011 03:33:22 +0000 (20:33 -0700)]
* INSTALL.BZR: Tiny re-wording.

13 years agosrc/*.c: Remove some additional unused parameters.
Juanma Barranquero [Mon, 28 Mar 2011 22:41:01 +0000 (00:41 +0200)]
src/*.c: Remove some additional unused parameters.

* lisp.h (multibyte_char_to_unibyte):
* character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
  unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
* character.h (CHAR_TO_BYTE8):
* cmds.c (internal_self_insert):
* editfns.c (general_insert_function):
* keymap.c (push_key_description):
* search.c (Freplace_match):
* xdisp.c (message_dolog, set_message_1): All callers changed.

* coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
  unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
  All callers changed.

13 years agoDon't reset post-command-hook to nil upon error.
Stefan Monnier [Mon, 28 Mar 2011 20:26:35 +0000 (16:26 -0400)]
Don't reset post-command-hook to nil upon error.
* src/eval.c (enum run_hooks_condition): Remove.
(funcall_nil, funcall_not): New functions.
(run_hook_with_args): Call each function through a `funcall' argument.
Remove `cond' argument, now redundant.
(Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
(Frun_hook_with_args_until_failure): Adjust accordingly.
(run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
* src/keyboard.c (safe_run_hook_funcall): New function.
(safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
don't set the hook to nil, but remove the offending function instead.
(Qcommand_hook_internal): Remove, unused.
(syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
Vcommand_hook_internal.
* doc/lispref/commands.texi (Command Overview): post-command-hook is not reset
to nil any more.

13 years agoPlace empty abbrev tables after nonempty ones when editing
Leo Liu [Mon, 28 Mar 2011 14:34:32 +0000 (22:34 +0800)]
Place empty abbrev tables after nonempty ones when editing

13 years agosrc/*.c: Remove unused parameters and other warnings.
Juanma Barranquero [Mon, 28 Mar 2011 03:29:18 +0000 (05:29 +0200)]
src/*.c: Remove unused parameters and other warnings.

* dispextern.h (string_buffer_position): Remove declaration.

* print.c (strout): Remove parameter `multibyte', unused since
  1999-08-21T19:30:21Z!gerd@gnu.org.  All callers changed.

* search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
  never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
  All callers changed.

* w32.c (_wsa_errlist): Use braces for struct initializers.

* xdisp.c (string_buffer_position_lim): Remove parameter `w',
  never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
  All callers changed.
  (string_buffer_position): Likewise.  Also, make static (it's never
  used outside xdisp.c).
  (cursor_row_p): Remove parameter `w', unused since
  2000-10-17T16:08:57Z!gerd@gnu.org.  All callers changed.
  (decode_mode_spec): Remove parameter `precision', introduced during
  Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
  All callers changed.

13 years ago* autogen/update_autogen: Pass -f to autoreconf.
Glenn Morris [Mon, 28 Mar 2011 01:03:57 +0000 (18:03 -0700)]
* autogen/update_autogen: Pass -f to autoreconf.

13 years agoMake autogen.sh respect AUTOCONF etc.
Glenn Morris [Mon, 28 Mar 2011 00:48:39 +0000 (17:48 -0700)]
Make autogen.sh respect AUTOCONF etc.

* autogen.sh (get_version): Discard "not found" lines.
(check_version): Respect $AUTOCONF etc environment variables.

13 years ago* keyboard.c (read_key_sequence): Don't check last_real_key_start redundantly.
Paul Eggert [Sun, 27 Mar 2011 18:33:45 +0000 (11:33 -0700)]
* keyboard.c (read_key_sequence): Don't check last_real_key_start redundantly.

13 years ago* keyboard.c (keyremap_step, read_key_sequence): Use size_t for sizes.
Paul Eggert [Sun, 27 Mar 2011 18:18:31 +0000 (11:18 -0700)]
* keyboard.c (keyremap_step, read_key_sequence): Use size_t for sizes.

13 years ago* keyboard.c (parse_modifiers_uncached, parse_modifiers):
Paul Eggert [Sun, 27 Mar 2011 17:14:11 +0000 (10:14 -0700)]
* keyboard.c (parse_modifiers_uncached, parse_modifiers):

Don't assume string length fits in int.

13 years agoFormat doc and add customize for ns-auto-hide-menu-bar.
Jan Djärv [Sun, 27 Mar 2011 10:55:07 +0000 (12:55 +0200)]
Format doc and add customize for ns-auto-hide-menu-bar.

* lisp/cus-start.el (all): Add boolean ns-auto-hide-menu-bar.

* src/nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.

13 years agoIntroduce ns-auto-hide-menu-bar to hide menubar for Emacs frames.
Jan Djärv [Sun, 27 Mar 2011 10:36:44 +0000 (12:36 +0200)]
Introduce ns-auto-hide-menu-bar to hide menubar for Emacs frames.
Code by Anders Lindgren.

* nsterm.m (ns_menu_bar_is_hidden): New variable.
(ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
(ns_update_auto_hide_menu_bar): New functions.
(ns_update_begin): Call ns_update_auto_hide_menu_bar.
(applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
ns_constrain_all_frames.
(constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
(syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.

13 years ago* nsmenu.m (runDialogAt): Remove argument to timer_check.
Jan Djärv [Sun, 27 Mar 2011 09:23:52 +0000 (11:23 +0200)]
* nsmenu.m (runDialogAt): Remove argument to timer_check.

13 years ago* callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA
Paul Eggert [Sun, 27 Mar 2011 09:07:38 +0000 (02:07 -0700)]
* callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA

instead of alloca (Bug#8344).

13 years ago* eval.c (Fbacktrace_frame): Don't assume nframes fits in int.
Paul Eggert [Sun, 27 Mar 2011 08:31:16 +0000 (01:31 -0700)]
* eval.c (Fbacktrace_frame): Don't assume nframes fits in int.

13 years ago* eval.c (Fbacktrace): Don't assume nargs fits in int.
Paul Eggert [Sun, 27 Mar 2011 08:29:39 +0000 (01:29 -0700)]
* eval.c (Fbacktrace): Don't assume nargs fits in int.

13 years ago* syntax.c (scan_sexps_forward): Avoid pointer wraparound.
Paul Eggert [Sun, 27 Mar 2011 08:21:49 +0000 (01:21 -0700)]
* syntax.c (scan_sexps_forward): Avoid pointer wraparound.

13 years agoMerge from atest branch.
Paul Eggert [Sun, 27 Mar 2011 08:15:26 +0000 (01:15 -0700)]
Merge from atest branch.

13 years ago* chartab.c (sub_char_table_ref_and_range): Redo for slight
Paul Eggert [Sun, 27 Mar 2011 08:10:27 +0000 (01:10 -0700)]
* chartab.c (sub_char_table_ref_and_range): Redo for slight

efficiency gain, and to bypass a gcc -Wstrict-overflow warning.

13 years agoAuto-commit of generated files.
Glenn Morris [Sun, 27 Mar 2011 02:33:36 +0000 (22:33 -0400)]
Auto-commit of generated files.

13 years agoMerge from mainline.
Paul Eggert [Sun, 27 Mar 2011 02:32:40 +0000 (19:32 -0700)]
Merge from mainline.

13 years agoRemove (RET)SIGTYPE; it is identical to void on all supported systems.
Glenn Morris [Sun, 27 Mar 2011 02:27:11 +0000 (19:27 -0700)]
Remove (RET)SIGTYPE; it is identical to void on all supported systems.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg01068.html

* configure.in (AC_TYPE_SIGNAL): Remove obsolete macro.
(AH_BOTTOM): Do not define SIGTYPE.

* lib-src/emacsclient.c: Replace SIGTYPE with void.

* nt/config.nt: Remove RETSIGTYPE, SIGTYPE (identical to void).

* src/syssignal.h: Replace RETSIGTYPE with void.

* src/atimer.c, src/data.c, src/dispnew.c, src/emacs.c, src/floatfns.c:
* src/keyboard.c, src/keyboard.h, src/lisp.h, src/process.c, src/sysdep.c:
* src/xterm.c: Replace SIGTYPE with void everywhere.

* src/s/template.h (SIGTYPE): Remove commented out definition.
* src/s/usg5-4-common.h (SIGTYPE): Remove definition.

* admin/CPP-DEFINES: Remove SIGTYPE.

13 years ago* keyboard.c, keyboard.h (num_input_events): Now size_t.
Paul Eggert [Sun, 27 Mar 2011 02:20:34 +0000 (19:20 -0700)]
* keyboard.c, keyboard.h (num_input_events): Now size_t.

This avoids undefined behavior on integer overflow, and is a bit
more convenient anyway since it is compared to a size_t variable.

13 years agoVariadic C functions now count arguments with size_t, not int.
Paul Eggert [Sun, 27 Mar 2011 02:12:36 +0000 (19:12 -0700)]
Variadic C functions now count arguments with size_t, not int.

13 years agoSupport separate fg and bg colors in ansi-color.el
Leo Liu [Sun, 27 Mar 2011 01:56:35 +0000 (09:56 +0800)]
Support separate fg and bg colors in ansi-color.el

A color suitable for foreground text can make unreadable text if used
as background color, and vice versa.

13 years agoChanges to open-protocol-stream, preparing for merging it with open-network-stream.
Chong Yidong [Sat, 26 Mar 2011 23:18:42 +0000 (19:18 -0400)]
Changes to open-protocol-stream, preparing for merging it with open-network-stream.

* lisp/gnus/proto-stream.el: Changes preparatory to merging open-protocol-stream
with open-network-stream.
(proto-stream-always-use-starttls): Option removed.
(open-protocol-stream): Return a process object by default.  Provide a
new parameter :return-list specifying a list-type return value, which
now has the form (PROP . PLIST) instead of a fixed-length list.  Change
:type `network' to `try-starttls', and `network-only' to `default'.
Make `default' the default, for compatibility with open-network-stream.
Handle the no-parameter case exactly as open-network-stream, with no
additional stream processing.  Search plists using plist-get.
Explicitly add :end-of-commend parameter if it is missing.
(proto-stream-open-default): Renamed from
proto-stream-open-network-only.  Return 'default as the type.
(proto-stream-open-starttls): Rename from proto-stream-open-network.
Use plist-get.  Don't return `tls' as the type if STARTTLS negotiation
failed.  Always return a list with a (possibly dead) process as the
first element, for compatibility with open-network-stream.
(proto-stream-open-tls): Use plist-get.  Always return a list.
(proto-stream-open-shell): Return `default' as connection type.
(proto-stream-capability-open): Use plist-get.
(proto-stream-eoc): Function deleted.

* lisp/gnus/nnimap.el (nnimap-stream, nnimap-open-connection)
(nnimap-open-connection-1): Handle renaming of :type parameter for
open-protocol-stream.
(nnimap-open-connection-1): Pass a :return-list parameter
open-protocol-stream to obtain a list return value.  Parse this list
using plist-get.

* lisp/gnus/nntp.el (nntp-open-connection): Handle renaming of :type parameter
for open-protocol-stream.  Accept open-protocol-stream return value
that is a subprocess object instead of a list.  Handle the case of a
dead returned process.

13 years agoReplace some obsolete autoconf macros with their modern equivalents.
Glenn Morris [Sat, 26 Mar 2011 19:29:10 +0000 (12:29 -0700)]
Replace some obsolete autoconf macros with their modern equivalents.

* configure.in: Replace obsolete macros AC_TRY_COMPILE, AC_TRY_LINK,
AC_TRY_RUN with AC_COMPILE_IFELSE, AC_LINK_IFELSE, AC_RUN_IFELSE.

13 years agoCall try_scrolling even if buffer's clip_changed flag is set.
Eli Zaretskii [Sat, 26 Mar 2011 12:20:20 +0000 (14:20 +0200)]
Call try_scrolling even if buffer's clip_changed flag is set.

 src/xdisp.c (redisplay_window): Don't check buffer's clip_changed
 flag as a prerequisite for invoking try_scrolling.  (Bug#6671)

13 years ago* alloc.c (garbage_collect): Don't assume stack size fits in int.
Paul Eggert [Sat, 26 Mar 2011 04:17:38 +0000 (21:17 -0700)]
* alloc.c (garbage_collect): Don't assume stack size fits in int.

(stack_copy_size): Now size_t, not int.
(stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0.

13 years agosrc/*.c: Fix more warnings about unused parameters.
Juanma Barranquero [Sat, 26 Mar 2011 02:48:03 +0000 (03:48 +0100)]
src/*.c: Fix more warnings about unused parameters.

* keymap.c (describe_vector): Remove parameters `indices' and
  `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
  (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.

* w32.c (read_unc_volume): Use parameter `henum', instead of
  global variable `wget_enum_handle'.

13 years agosrc/*.h: Remove unused parameters and functions.
Juanma Barranquero [Sat, 26 Mar 2011 01:23:15 +0000 (02:23 +0100)]
src/*.h: Remove unused parameters and functions.

* keyboard.h (timer_check, show_help_echo): Remove unused parameters.

* keyboard.c (timer_check): Remove parameter `do_it_now',
  unused since 1996-04-12T06:01:29Z!rms@gnu.org.
  (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
  unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.

* keyboard.c (read_char):
* w32menu.c (w32_menu_display_help):
* xmenu.c (show_help_event, menu_help_callback):
  Adjust calls to `show_help_echo'.

* gtkutil.c (xg_maybe_add_timer):
* keyboard.c (readable_events):
* process.c (wait_reading_process_output):
* xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.

* insdel.c (adjust_markers_gap_motion):
  Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
  (gap_left, gap_right): Don't call it.

13 years agomm-util.el (mm-handle-filename): Move to mm-decode.el (bug#8330).
Teodor Zlatanov [Fri, 25 Mar 2011 23:27:18 +0000 (23:27 +0000)]
mm-util.el (mm-handle-filename): Move to mm-decode.el (bug#8330).
mm-decode.el (mm-handle-filename): Move from mm-util.el (bug#8330).

13 years agoRemove redundant (require 'timer) in midnight.el
Leo Liu [Fri, 25 Mar 2011 22:26:30 +0000 (06:26 +0800)]
Remove redundant (require 'timer) in midnight.el

13 years agoRemove unused and erroneous midnight-time-float
Leo Liu [Fri, 25 Mar 2011 22:11:15 +0000 (06:11 +0800)]
Remove unused and erroneous midnight-time-float

13 years agoDiscard changes to buffer->clip_changed incurred during fontification.
Chong Yidong [Fri, 25 Mar 2011 20:00:25 +0000 (16:00 -0400)]
Discard changes to buffer->clip_changed incurred during fontification.

* src/xdisp.c (handle_fontified_prop): Discard changes to clip_changed
incurred during fontification.

13 years ago* autogen/update_autogen: Remove useless function keyword.
Andreas Schwab [Fri, 25 Mar 2011 18:16:41 +0000 (19:16 +0100)]
* autogen/update_autogen: Remove useless function keyword.

13 years agosrc/*.c: Remove unused function parameters.
Juanma Barranquero [Fri, 25 Mar 2011 18:06:33 +0000 (19:06 +0100)]
src/*.c: Remove unused function parameters.

* buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
  (DEFVAR_PER_BUFFER): Don't pass it.
* dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
  (scrolling_window): Don't pass it.

13 years agosrc/fileio.c: Move computation of encoded_absname inside `if'.
Juanma Barranquero [Fri, 25 Mar 2011 17:37:15 +0000 (18:37 +0100)]
src/fileio.c: Move computation of encoded_absname inside `if'.

13 years agont/*.c, src/*.c: Remove unused variables.
Juanma Barranquero [Fri, 25 Mar 2011 15:39:59 +0000 (16:39 +0100)]
nt/*.c, src/*.c: Remove unused variables.

* nt/addpm.c (main): Remove unused variable `retval'.
* nt/preprep.c (main): Remove unused variable `ptr'.
* src/dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
* src/fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
  and `suffix'.
  (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
  of variables specific to SELinux and computation of `encoded_absname'.
* src/image.c (XPutPixel): Remove unused variable `height'.
* src/keyboard.c (make_lispy_event): Remove unused variable `hpos'.
* src/unexw32.c (get_section_info): Remove unused variable `section'.
* src/w32.c (stat): Remove unused variables `drive_root' and `devtype'.
  (system_process_attributes): Remove unused variable `sess'.
  (sys_read): Remove unused variable `err'.
* src/w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
  (w32_wnd_proc): Remove unused variable `isdead'.
  (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
  (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
  (x_create_tip_frame): Remove unused variable `tem'.
* src/w32inevt.c (w32_console_read_socket): Remove unused variable `no_events'.
* src/w32term.c (x_draw_composite_glyph_string_foreground):
  Remove unused variable `width'.

13 years ago.gitignore: Add compile, config.guess, config.sub, depcomp,
Andreas Schwab [Fri, 25 Mar 2011 14:06:41 +0000 (15:06 +0100)]
.gitignore: Add compile, config.guess, config.sub, depcomp,
install-sh, missing.

13 years agoAdapt the MS-DOS build to lib/stdio.h and autogen/.
Eli Zaretskii [Fri, 25 Mar 2011 12:55:10 +0000 (14:55 +0200)]
Adapt the MS-DOS build to lib/stdio.h and autogen/.

 config.bat: Generate src/config.h and lib/Makefile from
 autogen/config.in and autogen/Makefile.in.
 msdos/sedlibmk.inp: Adapt to addition of the gnulib stdio module.
 Add a description of what needs to be done when a new gnulib
 module is added.
 (MKDIR_P): Fix replacement command.

13 years agoFix previous commit.
Eli Zaretskii [Fri, 25 Mar 2011 12:52:03 +0000 (14:52 +0200)]
Fix previous commit.

 config.bat: Use autogen/config.in in one more place.
 msdos/sedlibmk.inp (GNULIB_PRINTF, GNULIB_PRINTF_POSIX): Add missing
 variables.
 (MKDIR_P): Fix replacement command.
 (NEXT_AS_FIRST_DIRECTIVE_STDIO_H, NEXT_STDIO_H): Edit to
 "<stdio.h>", as lib/stdio.h cannot be left unused.

13 years agoAdapt config.bat and msdos/sedlibmk.inp to autogen and addition of stdio.
Eli Zaretskii [Fri, 25 Mar 2011 12:10:45 +0000 (14:10 +0200)]
Adapt config.bat and msdos/sedlibmk.inp to autogen and addition of stdio.

 msdos/sedlibmk.inp: Adapt to addition of the gnulib stdio module.
 config.bat: Generate src/config.h and lib/Makefile from
 autogen/config.in and autogen/Makefile.in.

13 years ago* admin/make-tarball.txt: Comment.
Glenn Morris [Fri, 25 Mar 2011 07:17:23 +0000 (00:17 -0700)]
* admin/make-tarball.txt: Comment.

13 years agoRemove some files that autoreconf can supply.
Glenn Morris [Fri, 25 Mar 2011 07:14:31 +0000 (00:14 -0700)]
Remove some files that autoreconf can supply.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00863.html

* compile, config.guess, config.sub, depcomp, install-sh, missing:
Remove; autoreconf can supply them.

* Makefile.in (sync-from-gnulib): Don't sync config.sub,
config.guess, install-sh.  Pass -i to autoreconf.

* autogen/update_autogen (genfiles): Add compile, config.guess,
config.sub, depcomp, install-sh, missing.  Pass -i to autoreconf.
Discard non-error output from autoreconf in -q case.

* autogen/compile, autogen/config.guess, autogen/config.sub:
* autogen/depcomp, autogen/install-sh, autogen/missing: New files.

* autogen/copy_autogen: Add compile, config.guess, config.sub, depcomp,
install-sh, missing.

* autogen/README: Add compile, config.guess, config.sub, depcomp,
install-sh, missing.

* INSTALL.BZR, admin/make-tarball.txt: Add -i to autoreconf args.

* .bzrignore: Add compile, config.guess, config.sub, depcomp,
install-sh, missing.

13 years ago* admin/notes/copyright: Remove info on some files no longer present.
Glenn Morris [Fri, 25 Mar 2011 07:00:36 +0000 (00:00 -0700)]
* admin/notes/copyright: Remove info on some files no longer present.

13 years agoSome ido cleanups
Leo Liu [Fri, 25 Mar 2011 00:42:26 +0000 (08:42 +0800)]
Some ido cleanups

* ido.el (ido-read-internal): Simplify with read-from-minibuffer.
(ido-completions): Remove unused arguments.  (Bug#8329)

13 years agoFirst step towards using standard completion in comint.
Stefan Monnier [Thu, 24 Mar 2011 22:05:01 +0000 (18:05 -0400)]
First step towards using standard completion in comint.
* lisp/minibuffer.el (completion--flush-all-sorted-completions):
Remove itself from hook.
(completion-at-point): Let the functions perform the completion
immediately and return nil or t.
* lisp/comint.el (comint-dynamic-complete-functions): Now identical to
completion-at-point-functions.
(comint-dynamic-list-input-ring): Remove unused var `index'.
(comint--match-partial-filename, comint--unquote&expand-filename):
New funs, split from comint-match-partial-filename.
(comint-dynamic-complete): Use completion-at-point.
(comint-dynamic-complete-filename): Use comint--match-partial-filename.

13 years agoAdd support for defun in thingatpt.el
Drew Adams [Thu, 24 Mar 2011 16:38:12 +0000 (00:38 +0800)]
Add support for defun in thingatpt.el

13 years ago* keyboard.c (syms_of_keyboard): Use the same style as later
Paul Eggert [Thu, 24 Mar 2011 08:03:03 +0000 (01:03 -0700)]
* keyboard.c (syms_of_keyboard): Use the same style as later

in this function when indexing through an array.  This also
works around GCC bug 48267.

13 years ago* image.c (tiff_load): Fix off-by-one image count (Bug#8336).
Paul Eggert [Thu, 24 Mar 2011 07:36:32 +0000 (00:36 -0700)]
* image.c (tiff_load): Fix off-by-one image count (Bug#8336).

13 years ago* xselect.c (x_check_property_data): Return correct size (Bug#8335).
Paul Eggert [Thu, 24 Mar 2011 04:17:44 +0000 (21:17 -0700)]
* xselect.c (x_check_property_data): Return correct size (Bug#8335).

13 years agosrc/w32term.c (x_set_glyph_string_clipping): Don't pass uninitialized region to Combi...
Juanma Barranquero [Thu, 24 Mar 2011 02:30:26 +0000 (03:30 +0100)]
src/w32term.c (x_set_glyph_string_clipping): Don't pass uninitialized region to CombineRgn.

13 years agoMove abbrevlist.el to obsolete/abbrevlist.el
Leo Liu [Wed, 23 Mar 2011 18:11:15 +0000 (02:11 +0800)]
Move abbrevlist.el to obsolete/abbrevlist.el

13 years agow32: Fix some warnings reported by -Wall -Wextra.
Juanma Barranquero [Wed, 23 Mar 2011 16:25:38 +0000 (17:25 +0100)]
w32: Fix some warnings reported by -Wall -Wextra.

* lib-src/ntlib.c: Include <ctype.h>.

* nt/cmdproxy.c: Include <ctype.h>.
  (make_absolute): Remove unused variable `i'.

* src/w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
  (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
  (Fx_close_connection): Remove unused variable `i'.

* src/w32font.c (w32font_draw): Return number of glyphs.
  (w32font_open_internal): Remove unused variable `i'.
  (w32font_driver): Add missing initializer.

* src/w32menu.c (utf8to16): Remove unused variable `utf16'.
  (fill_in_menu): Remove unused variable `items_added'.

* src/w32term.c (last_mouse_press_frame): Remove static global variable.
  (w32_clip_to_row): Remove unused variable `f'.
  (x_delete_terminal): Remove unused variable `i'.

* src/w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
  (NOTHING): Remove unused static global variable.
  (uniscribe_check_otf): Remove unused variable `table'.
  (uniscribe_font_driver): Add missing initializers.

13 years agoTweak regexp in help-mode-finish
Leo Liu [Wed, 23 Mar 2011 11:56:34 +0000 (19:56 +0800)]
Tweak regexp in help-mode-finish

Without this fix, "This special-form is advised." won't be correctly
fontified.

13 years agoUse Frun_hooks rather than calling Vrun_hooks manually
Julien Danjou [Wed, 23 Mar 2011 10:06:57 +0000 (11:06 +0100)]
Use Frun_hooks rather than calling Vrun_hooks manually

13 years ago* xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
Paul Eggert [Wed, 23 Mar 2011 08:15:28 +0000 (01:15 -0700)]
* xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow

concerns.

13 years ago* chartab.c (sub_char_table_ref_and_range): Redo to avoid overflow
Paul Eggert [Wed, 23 Mar 2011 08:13:33 +0000 (01:13 -0700)]
* chartab.c (sub_char_table_ref_and_range): Redo to avoid overflow

concerns.

13 years ago* term.c (produce_glyphless_glyph): Remove unnecessary test.
Paul Eggert [Wed, 23 Mar 2011 08:09:13 +0000 (01:09 -0700)]
* term.c (produce_glyphless_glyph): Remove unnecessary test.

13 years ago* cm.c (calccost): Turn while-do into do-while, for clarity.
Paul Eggert [Wed, 23 Mar 2011 08:06:21 +0000 (01:06 -0700)]
* cm.c (calccost): Turn while-do into do-while, for clarity.

13 years ago* autogen/update_autogen (msg): Remove function; use `exec' instead.
Glenn Morris [Wed, 23 Mar 2011 07:58:05 +0000 (00:58 -0700)]
* autogen/update_autogen (msg): Remove function; use `exec' instead.

13 years ago* autogen/update_autogen: Fix typo.
Glenn Morris [Wed, 23 Mar 2011 06:40:56 +0000 (23:40 -0700)]
* autogen/update_autogen: Fix typo.

13 years agoAuto-commit of generated files.
Glenn Morris [Wed, 23 Mar 2011 04:09:49 +0000 (00:09 -0400)]
Auto-commit of generated files.

13 years ago* admin/notes/copyright: Remove comments about deleted files in src/{m,s}.
Glenn Morris [Wed, 23 Mar 2011 03:38:15 +0000 (20:38 -0700)]
* admin/notes/copyright: Remove comments about deleted files in src/{m,s}.
Files that were merged into other files have been kept.

13 years agoFix ChangeLog typo.
Glenn Morris [Wed, 23 Mar 2011 03:32:55 +0000 (20:32 -0700)]
Fix ChangeLog typo.

13 years agoReplace mkinstalldirs with `install-sh -d', as automake recommends.
Glenn Morris [Wed, 23 Mar 2011 03:09:55 +0000 (20:09 -0700)]
Replace mkinstalldirs with `install-sh -d', as automake recommends.

* Makefile.in (mkdir): Use `install-sh -d' instead of mkinstalldirs.
(sync-from-gnulib): Don't sync mkinstalldirs.

* make-dist: Don't distribute mkinstalldirs.

* leim/Makefile.in (install): Use `install-sh -d' rather than mkinstalldirs.

* lib-src/Makefile.in ($(DESTDIR)${archlibdir}):
Use `install-sh -d' rather than mkinstalldirs.

* configure.in, doc/emacs/Makefile.in: Update comments.

* admin/notes/copyright: Remove mkinstalldirs.

13 years ago* admin/notes/bzr: Update bzr changelog_merge plugin details.
Glenn Morris [Wed, 23 Mar 2011 02:57:57 +0000 (19:57 -0700)]
* admin/notes/bzr: Update bzr changelog_merge plugin details.

13 years agoesh-opt trivia.
Glenn Morris [Wed, 23 Mar 2011 02:52:52 +0000 (19:52 -0700)]
esh-opt trivia.

* lisp/eshell/esh-opt.el (eshell-eval-using-options):
Do not bind unused local variable `eshell-option-stub'.

13 years ago* lisp/progmodes/gdb-mi.el (gdb): Fix typo in previous change.
Glenn Morris [Wed, 23 Mar 2011 02:50:28 +0000 (19:50 -0700)]
* lisp/progmodes/gdb-mi.el (gdb): Fix typo in previous change.

13 years agoFix more problems found by GCC 4.5.2's static checks.
Paul Eggert [Wed, 23 Mar 2011 01:01:59 +0000 (18:01 -0700)]
Fix more problems found by GCC 4.5.2's static checks.

13 years agoMerge removals from trunk.
Paul Eggert [Wed, 23 Mar 2011 00:53:37 +0000 (17:53 -0700)]
Merge removals from trunk.

13 years agoMerge from mainline.
Paul Eggert [Wed, 23 Mar 2011 00:24:09 +0000 (17:24 -0700)]
Merge from mainline.

13 years agolisp/emacs-lisp/derived.el: Don't warn about keymaps already `defconst'ed.
Juanma Barranquero [Tue, 22 Mar 2011 20:58:27 +0000 (21:58 +0100)]
lisp/emacs-lisp/derived.el: Don't warn about keymaps already `defconst'ed.

13 years ago* etc/themes/misterioso-theme.el: New file.
Sebastian Hermida [Tue, 22 Mar 2011 18:59:50 +0000 (14:59 -0400)]
* etc/themes/misterioso-theme.el: New file.

13 years agoRemove an apparently unnecessary XClearWindow call.
Chong Yidong [Tue, 22 Mar 2011 18:15:52 +0000 (14:15 -0400)]
Remove an apparently unnecessary XClearWindow call.

* src/xterm.c (x_clear_frame): Remove XClearWindow call.  This appears
not to be necessary, and produces flickering.

13 years agoMerge from mainline.
Paul Eggert [Tue, 22 Mar 2011 17:33:16 +0000 (10:33 -0700)]
Merge from mainline.

13 years agoAdd Bug#
Paul Eggert [Tue, 22 Mar 2011 16:43:12 +0000 (09:43 -0700)]
Add Bug#

13 years ago* coding.c (encode_coding_raw_text): Avoid unnecessary test
Paul Eggert [Tue, 22 Mar 2011 16:20:45 +0000 (09:20 -0700)]
* coding.c (encode_coding_raw_text): Avoid unnecessary test

the first time through the loop, since we know p0 < p1 then.
This also avoids a gcc -Wstrict-overflow warning.

13 years agoUse utf-8 if safe for writing to abbrev file
Leo Liu [Tue, 22 Mar 2011 15:38:40 +0000 (23:38 +0800)]
Use utf-8 if safe for writing to abbrev file

and fall back on emacs-mule or utf-8-emacs.

13 years agolisp/simple.el: Avoid warning about `delete-backward-char'.
Juanma Barranquero [Tue, 22 Mar 2011 15:15:21 +0000 (16:15 +0100)]
lisp/simple.el: Avoid warning about `delete-backward-char'.

13 years agomm-view.el (mm-display-inline-fontify): Make mode optional, and call normal-mode...
Julien Danjou [Tue, 22 Mar 2011 13:40:41 +0000 (13:40 +0000)]
mm-view.el (mm-display-inline-fontify): Make mode optional, and call normal-mode if not set. Set temp buffer unmodified to avoid kill-buffer query.
 (mm-inline-text): Render normal text with fontification whenever possible.
gnus-sum.el (gnus-summary-save-parts-1):
gnus-art.el (gnus-article-browse-html-save-cid-content)
 (gnus-article-browse-html-parts, gnus-mime-delete-part)
 (gnus-mime-copy-part, gnus-mime-inline-part, gnus-insert-mime-button):
 Use `mm-handle-filename'.
mm-util.el (mm-handle-filename): New function, return the filename of an handle.

13 years agolisp/image.el: Avoid some warnings.
Juanma Barranquero [Tue, 22 Mar 2011 13:10:43 +0000 (14:10 +0100)]
lisp/image.el: Avoid some warnings.

* image.el (image-type-file-name-regexps): Make it variable.
  `imagemagick-register-types' modifies it, and the user may want
  to add new extensions for known image types.
  (imagemagick-register-types): Throw error if not using ImageMagick.

13 years agoNew variable rcirc-user-authenticated to pacify compiler
Leo Liu [Tue, 22 Mar 2011 11:51:48 +0000 (19:51 +0800)]
New variable rcirc-user-authenticated to pacify compiler

13 years agoHandle the case when re-search-backward errs
Leo Liu [Tue, 22 Mar 2011 11:30:05 +0000 (19:30 +0800)]
Handle the case when re-search-backward errs

because point is not located after rcirc-prompt-end-marker.

13 years ago.gitignore: Add aclocal.m4, configure, lib/Makefile.in, src/config.in.
Andreas Schwab [Tue, 22 Mar 2011 09:37:37 +0000 (10:37 +0100)]
.gitignore: Add aclocal.m4, configure, lib/Makefile.in, src/config.in.

13 years ago* lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
Paul Eggert [Tue, 22 Mar 2011 09:08:11 +0000 (02:08 -0700)]
* lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow

leading to a memory leak, possible in functions like
load_charset_map_from_file that can allocate an unbounded number
of objects.