Ken Raeburn [Wed, 5 Jul 2000 19:33:00 +0000 (19:33 +0000)]
Sound support for NetBSD through "Linux emulation" support:
* config.in (HAVE_SOUNDCARD_H): Undef.
(HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
* Makefile.in (LIBSOUND): New variable.
(LIBES): Include it.
* sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
(DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
(vox_open): Use DEFAULT_SOUND_DEVICE.
* s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
Andrew Innes [Wed, 5 Jul 2000 16:37:46 +0000 (16:37 +0000)]
Add support for `bootstrap' and related targets.
Include minimal debug info in emacs.exe in release build.
Remove all dependencies on lisp.h, and fixup some others.
Andrew Innes [Wed, 5 Jul 2000 16:32:37 +0000 (16:32 +0000)]
(check_memory_limits) [REL_ALLOC]: Use real_morecore
when non-NULL instead of __morecore, to take account of buffer
memory. This also solves a problem with spurious memory warnings
on Windows.
Andrew Innes [Wed, 5 Jul 2000 16:00:13 +0000 (16:00 +0000)]
(init_environment): Install code from 20.7 for providing
default values for environment variables, based on the
executable's own location.
(map_w32_filename): Handle filenames that are longer than
MAX_PATH.
(sys_socket): Install socket inheritance bug fix from 20.7.
Stefan Monnier [Wed, 5 Jul 2000 15:40:03 +0000 (15:40 +0000)]
(easy-menu-define): Docstring fix.
(easy-menu-do-define): Use `menu-item' format.
Handle case where easy-menu-create-menu returns a symbol.
Manually call the potential top-level filter in the function binding.
(easy-menu-filter-return): New arg NAME.
Convert to a keymap if MENU is an XEmacs menu.
(easy-menu-convert-item-1): New. Extracted from easy-menu-do-add-item.
(easy-menu-converted-items-table, easy-menu-convert-item): New.
(easy-menu-do-add-item): Use it.
(easy-menu-create-menu): Use easy-menu-convert-item.
Wrap easy-menu-filter-return around any :filter specification.
Don't convert the menu if a filter was specified.
Tell easy-menu-make-symbol not to check for MENU being an expression.
(easy-menu-make-symbol): New arg NOEXP.
(eval-defun-2): Remove parameter
EVAL-DEFUN-ARG-INTERNAL; always print to minibuffer.
(eval-defun): If called with prefix arg, instrument code for
Edebug.
Stefan Monnier [Wed, 5 Jul 2000 14:01:15 +0000 (14:01 +0000)]
(show_help_echo): New function, extracted from read_char.
Feval its `msg' argument if it's a cons cell.
(read_char): Use it.
(follow_key): Pass `autoload' to get_keyelt.
(x_append_glyph, x_append_composite_glyph)
(x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
changes in struct glyph starting 1999-12-27. Some bit-fields of
struct glyph were not set, which made glyphs unequal when compared
with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
effects were the result. This also depended on the contents of
memory returned by xmalloc. If flickering happens again, activate
the code in clear_glyph_row that's in #if 0. If the flickering is
gone with that, chances are that it is caused by something
similar.
(add_window_to_list): Add parameter LIST.
(window_list): Order list so that, for each frame, windows are
in canonical order, and so that frames appear in the list in
the order given by Vframe_list.
(next_window): Reverse the handling of NEXT_P.
(Vwindow_list): New variable.
(make_window, delete_window): Set Vwindow_list to nil.
(check_window_containing): New function.
(window_from_coordinates): Rewritten.
(add_window_to_list, window_list, candidate_window_p)
(decode_next_window_args, next_window): New functions.
(Fnext_window, Fprevious_window): Rewritten in terms of
next_window.
(Fwindow_list): New function.
(Fother_window): Cleaned up.
(foreach_window): Add a longer "variable argument list". Let
callback function return 0 to indicate that cycling over windows
should stop.
(foreach_window_1): Likewise.
(freeze_window_start): Return int.
(init_window): New function.
(syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
Miles Bader [Tue, 4 Jul 2000 04:48:49 +0000 (04:48 +0000)]
(prune-directory-list): New function.
(Info-default-directory-list): Rewritten to more methodically
enumerate a big list of possible info directories (based on the
list used by the standalone info reader).
Miles Bader [Tue, 4 Jul 2000 04:46:05 +0000 (04:46 +0000)]
(woman-man.conf-path): Explicitly include the debian man-db config file
"/etc/manpath.config".
(woman-parse-man.conf): Also handle MANDATORY_MANPATH entries, as
are present in `manpath.config'.
(woman-manpath): Include "/usr/share/man".
(edebug-window-live-p, edebug-window-list)
(edebug-get-displayed-buffer-points): Use walk-windows/some-window
instead of cycling through windows with next-window.
Gerd Moellmann [Fri, 30 Jun 2000 19:21:04 +0000 (19:21 +0000)]
(next_frame): Don't check frame-focus redirection in
case MINIBUF is a window. Doing so excludes frames using MINIBUF
unless their focus is redirected, which contradicts the
specification of next-frame, and leads to infinite loops in
certain situations when cycling through windows with next-window.
Kenichi Handa [Fri, 30 Jun 2000 02:56:45 +0000 (02:56 +0000)]
(code_convert_region): Even if the length of text is
zero, try to convert it if coding->type is coding_type_ccl.
(decode_coding_string, encode_coding_string): Likewise.
Gerd Moellmann [Wed, 28 Jun 2000 20:28:50 +0000 (20:28 +0000)]
(struct row_entry): New structure.
(row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
(row_table_size, old_lines, new_lines, old_lines_size)
(new_lines_size, run_pool, runs_size, runs): New variables.
(add_row_entry): New function.
(scrolling_window): Use data structures allocated with xmalloc and
held in global variables, instead of allocing them with alloca and
holding them in local variables. Use a larger hash table whose
size depends on glyph matrix sizes. Don't use bzero to clear the
hash table; instead, clear used slots only.