Commit graph

99488 commits

Author SHA1 Message Date
Glenn Morris
9af30bdf17 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.
2011-03-26 19:27:11 -07:00
Leo Liu
7a097943f7 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.
2011-03-27 09:56:35 +08:00
Chong Yidong
f2eefd2477 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.
2011-03-26 19:18:42 -04:00
Glenn Morris
181855e600 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.
2011-03-26 12:29:10 -07:00
Eli Zaretskii
6653704919 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)
2011-03-26 14:20:20 +02:00
Juanma Barranquero
59eb0929f7 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'.
2011-03-26 03:48:03 +01:00
Juanma Barranquero
f868cd8a71 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.
2011-03-26 02:23:15 +01:00
Teodor Zlatanov
dc8026879e 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).
2011-03-25 23:27:18 +00:00
Leo Liu
625897eca3 Remove redundant (require 'timer) in midnight.el 2011-03-26 06:26:30 +08:00
Leo Liu
1f48f7d236 Remove unused and erroneous midnight-time-float 2011-03-26 06:11:15 +08:00
Chong Yidong
2ecf6fdb28 Discard changes to buffer->clip_changed incurred during fontification.
* src/xdisp.c (handle_fontified_prop): Discard changes to clip_changed
incurred during fontification.
2011-03-25 16:00:25 -04:00
Andreas Schwab
9ee0d17461 * autogen/update_autogen: Remove useless function keyword. 2011-03-25 19:16:41 +01:00
Juanma Barranquero
6b1f9ba477 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.
2011-03-25 19:06:33 +01:00
Juanma Barranquero
a9b53ad377 src/fileio.c: Move computation of encoded_absname inside `if'. 2011-03-25 18:37:15 +01:00
Juanma Barranquero
0f4a96b5d7 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'.
2011-03-25 16:39:59 +01:00
Andreas Schwab
f9e771e246 .gitignore: Add compile, config.guess, config.sub, depcomp,
install-sh, missing.
2011-03-25 15:06:41 +01:00
Eli Zaretskii
f98cac3375 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.
2011-03-25 14:55:10 +02:00
Eli Zaretskii
f4d87671c6 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.
2011-03-25 14:52:03 +02:00
Eli Zaretskii
07da4b3c92 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.
2011-03-25 14:10:45 +02:00
Glenn Morris
9257ee21a4 * admin/make-tarball.txt: Comment. 2011-03-25 00:17:23 -07:00
Glenn Morris
f6ca84c095 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.
2011-03-25 00:14:31 -07:00
Glenn Morris
577c4ec057 * admin/notes/copyright: Remove info on some files no longer present. 2011-03-25 00:00:36 -07:00
Leo Liu
c5b40130ec Some ido cleanups
* ido.el (ido-read-internal): Simplify with read-from-minibuffer.
(ido-completions): Remove unused arguments.  (Bug#8329)
2011-03-25 08:42:26 +08:00
Stefan Monnier
d86d2721aa 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.
2011-03-24 18:05:01 -04:00
Drew Adams
e8974c48ae Add support for defun in thingatpt.el 2011-03-25 00:38:12 +08:00
Juanma Barranquero
1149507c7f src/w32term.c (x_set_glyph_string_clipping): Don't pass uninitialized region to CombineRgn. 2011-03-24 03:30:26 +01:00
Leo Liu
cb5af48e50 Move abbrevlist.el to obsolete/abbrevlist.el 2011-03-24 02:11:15 +08:00
Juanma Barranquero
9c88f33949 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.
2011-03-23 17:25:38 +01:00
Leo Liu
def71b5e5b Tweak regexp in help-mode-finish
Without this fix, "This special-form is advised." won't be correctly
fontified.
2011-03-23 19:56:34 +08:00
Julien Danjou
dee091a37f Use Frun_hooks rather than calling Vrun_hooks manually 2011-03-23 11:06:57 +01:00
Glenn Morris
904a432cf4 * autogen/update_autogen (msg): Remove function; use `exec' instead. 2011-03-23 00:58:05 -07:00
Glenn Morris
9bb73912f7 * autogen/update_autogen: Fix typo. 2011-03-22 23:40:56 -07:00
Glenn Morris
6ad6792b39 Auto-commit of generated files. 2011-03-23 00:09:49 -04:00
Glenn Morris
abd57f5960 * admin/notes/copyright: Remove comments about deleted files in src/{m,s}.
Files that were merged into other files have been kept.
2011-03-22 20:38:15 -07:00
Glenn Morris
fe7be2210f Fix ChangeLog typo. 2011-03-22 20:32:55 -07:00
Glenn Morris
8cc1d51933 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.
2011-03-22 20:09:55 -07:00
Glenn Morris
8ae17ff2bf * admin/notes/bzr: Update bzr changelog_merge plugin details. 2011-03-22 19:57:57 -07:00
Glenn Morris
18d05bed65 esh-opt trivia.
* lisp/eshell/esh-opt.el (eshell-eval-using-options):
Do not bind unused local variable `eshell-option-stub'.
2011-03-22 19:52:52 -07:00
Glenn Morris
927c53e762 * lisp/progmodes/gdb-mi.el (gdb): Fix typo in previous change. 2011-03-22 19:50:28 -07:00
Paul Eggert
c9c49752e1 Fix more problems found by GCC 4.5.2's static checks. 2011-03-22 18:01:59 -07:00
Paul Eggert
b9b4b7cb4c Merge removals from trunk. 2011-03-22 17:53:37 -07:00
Paul Eggert
2c520ab5fb Merge from mainline. 2011-03-22 17:24:09 -07:00
Juanma Barranquero
9d0da923eb lisp/emacs-lisp/derived.el: Don't warn about keymaps already `defconst'ed. 2011-03-22 21:58:27 +01:00
Sebastian Hermida
6508470910 * etc/themes/misterioso-theme.el: New file. 2011-03-22 14:59:50 -04:00
Chong Yidong
c59da222fa Remove an apparently unnecessary XClearWindow call.
* src/xterm.c (x_clear_frame): Remove XClearWindow call.  This appears
not to be necessary, and produces flickering.
2011-03-22 14:15:52 -04:00
Paul Eggert
8af8e70ee5 Merge from mainline. 2011-03-22 10:33:16 -07:00
Paul Eggert
b12ef41167 Add Bug# 2011-03-22 09:43:12 -07:00
Paul Eggert
8abc3f1295 * 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.
2011-03-22 09:20:45 -07:00
Leo Liu
4b978a677c Use utf-8 if safe for writing to abbrev file
and fall back on emacs-mule or utf-8-emacs.
2011-03-22 23:38:40 +08:00
Juanma Barranquero
0b1596c6ad lisp/simple.el: Avoid warning about `delete-backward-char'. 2011-03-22 16:15:21 +01:00