Miles Bader [Thu, 26 Oct 2000 07:44:46 +0000 (07:44 +0000)]
(undo): Correctly distinguish between numeric and non-numeric prefix
args in non-transient-mark-mode, as per the doc string. When in
transient-mark-mode, treat all prefix-args as numeric.
Miles Bader [Thu, 26 Oct 2000 00:46:47 +0000 (00:46 +0000)]
(comint-mode): Locally set `next-line-add-newlines' to nil.
(comint-mode-map): Reverse order of `comint-write-output' and
`comint-append-output-to-file'.
(comint-append-output-to-file): Reinstate this function, for the
benefit of the menu.
Stefan Monnier [Thu, 26 Oct 2000 00:45:01 +0000 (00:45 +0000)]
More `unsigned char' -> `re_char' changes.
Also change several `int' into `re_wchar_t'.
(PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
(PUSH_FAILURE_POINTER): Don't cast any more.
(POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
We want GCC to complain, since this piece of code makes
re_match non-reentrant, which *should* be fixed.
(GET_BUFFER_SPACE): Use size_t rather than unsigned long.
(EXTEND_BUFFER): Use RETALLOC.
(SET_LIST_BIT): Don't cast.
(re_wchar_t): New type.
(re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
that those two functions will always properly return.
(IMMEDIATE_QUIT_CHECK): Cast to void.
(analyse_first): Use recursion rather than an explicit stack.
(re_compile_fastmap): Can't fail anymore.
(re_search_2): Don't check re_compile_fastmap for failure.
(PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
Now also sets the new value (passed in a new argument).
(re_match_2_internal): Use it.
Also, use a new var `reg' of type size_t when looping through regs
rather than reuse the inappropriate `mcnt'.
Stefan Monnier [Wed, 25 Oct 2000 23:35:21 +0000 (23:35 +0000)]
(where_is_cache, where_is_cache_keymaps): New vars.
(Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
(where_is_internal): Renamed from Fwhere_is_internal.
Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
(Fwhere_is_internal): New function wrapping where_is_internal.
(where_is_internal_1): Handle the case where we're filling the cache.
(syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
Gerd Moellmann [Wed, 25 Oct 2000 19:01:38 +0000 (19:01 +0000)]
(batch-update-authors): New function.
(authors-fixed-entries): New defconst.
(authors-add-fixed-entries): New function.
(authors): Call it.: Don't process lispref/.
Kenichi Handa [Wed, 25 Oct 2000 11:06:51 +0000 (11:06 +0000)]
(send_process): If OBJECT is t, it means that the data
is from C string, but we should encode it. Before calling
setup_raw_text_coding_system, be sure to flush out data by the
previous coding system.
Miles Bader [Wed, 25 Oct 2000 07:16:44 +0000 (07:16 +0000)]
(widget-field-at): New function.
(widget-at, widget-field-activate): Use it.
(widget-tabable-at): Use `widget-at'.
(widget-specify-field): If the terminating character of the widget
field (which is read-only) is a newline, put it into a special
`boundary' field so that C-n/C-p act more naturally.
(widget-field-end): Also don't subtract one if a special
`boundary' field has been added after the widget field.
Miles Bader [Wed, 25 Oct 2000 05:37:15 +0000 (05:37 +0000)]
(widget-beginning-of-line, widget-end-of-line):
Replace with aliases of the normal emacs b-o-l/e-o-l functions.
(widget-field-keymap, widget-text-keymap):
Don't bind C-a/C-e.
Miles Bader [Wed, 25 Oct 2000 05:21:54 +0000 (05:21 +0000)]
(comint-output-filter, comint-send-input):
Don't bother adding stickiness fields to overlays to fool the field
code, since it should notice the overlay insertion-types now.
Miles Bader [Wed, 25 Oct 2000 05:18:10 +0000 (05:18 +0000)]
(find_field):
Set the field stickiness correctly from overlay fields.
Use renamed `text_property_stickiness'.
(text_property_stickiness):
Renamed from `char_property_stickiness'.
Stefan Monnier [Wed, 25 Oct 2000 04:42:23 +0000 (04:42 +0000)]
Use AREF, ASET and ASIZE macros.
(Fmake_sparse_keymap): Docstring fix.
(synkey): Remove.
(shadow_lookup): Move up.
Handle the case where lookup-key returns an integer.
(where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
(where_is_internal_2): Adapt to fewer args for where_is_internal_1.
(Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
Simplify/rewrite the keymap-finding code.
Add check for command shadowing, using shadow_lookup.
Gerd Moellmann [Tue, 24 Oct 2000 21:17:06 +0000 (21:17 +0000)]
Now there is a column formatting mechanism.
Modified to customization mechanisms convention. Doc fix.
(columns): New group for delim-col.
(delimit-columns-before, delimit-columns-after)
(delimit-columns-format, delimit-columns-extra, delimit-columns-start)
(delimit-columns-end): New vars.
(delimit-columns-customize, delimit-columns-format): New funs.
(delimit-columns-region, delimit-columns-rectangle)
(delimit-columns-rectangle-line): Modified to support column
formatting.
Andrew Innes [Tue, 24 Oct 2000 14:45:36 +0000 (14:45 +0000)]
(directory_files_internal_unwind): New function.
(directory_files_internal): Use it to ensure closedir is called
even if expand-file-name or file-attributes throw, eg. because of
a user interrupt. Also enable immediate_quit while calling
re_search, so that matching can be interrupted as well.
Andrew Innes [Tue, 24 Oct 2000 14:00:55 +0000 (14:00 +0000)]
(IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
NT-Emacs only.
(re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
so that re_search functions only quit when callers expect them to.
Gerd Moellmann [Tue, 24 Oct 2000 12:41:23 +0000 (12:41 +0000)]
(state_protected_p, last_state_size, last_heapinfo)
[GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
(protect_malloc_state) [GC_MALLOC_CHECK &&
GC_PROTECT_MALLOC_STATE]: New function.
(PROTECT_MALLOC_STATE): New macro.
(__malloc_initialize, morecore, _malloc_internal)
(_free_internal) _realloc_internal): Use it to make _heapinfo
read-only outside of gmalloc.
Gerd Moellmann [Tue, 24 Oct 2000 12:27:45 +0000 (12:27 +0000)]
(widget-field-keymap, widget-text-keymap): Define
the tool-bar map as nil, as for the menu-bar. Otherwise, we'll
get duplicate tool-bar entries because we'll see the global ones
on more than one path through keymaps.
Andrew Choi [Mon, 23 Oct 2000 17:49:59 +0000 (17:49 +0000)]
Andrew Choi <akochoi@i-cable.com>
* international/mule-conf.el (mac-roman-lower, mac-roman-upper):
New charsets.
* term/mac-win.el: Remove definitions of mac-roman-lower and
mac-roman-upper, require dired, and define instead of set
mac-ready-for-drag-n-drop to avoid compilation error.
* src/macterm.c (XTread_socket): check whether Lisp variable
mac-ready-for-drag-n-drop is bound rather than non-nil value.