(ALLOC_XPM_COLORS): Define if we can use Emacs' color
allocation functions with the XPM lib.
(struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
(XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
(xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
(xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
(xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
functions.
(xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
functions, if possible, because these handle color allocation
failure more gracefully.
(Fimage_mask_p): New function.
Andrew Innes [Thu, 14 Sep 2000 21:51:16 +0000 (21:51 +0000)]
Standardize indentation somewhat.
Add bootstrap support.
Pass $(MFLAGS) when invoking make recursively.
Add shell-specific variants of top-level targets that invoke make
recursively in other directories, and add necessary computed
dependencies.
Andrew Innes [Thu, 14 Sep 2000 21:40:59 +0000 (21:40 +0000)]
Change to DOS line endings.
Simplify the generation of makefiles (don't need to generate
various top-level targets that invoke make in other directories).
Andrew Innes [Thu, 14 Sep 2000 21:15:44 +0000 (21:15 +0000)]
(shell-write-history-on-exit): New function.
(shell-dumb-shell-regexp): New custom variable.
(shell-mode): Make shell-write-history-on-exit the process
sentinel if shell name matches shell-dumb-shell-regexp.
(x_produce_glyphs): If the distance from the current
position to the next tab stop is less than a canonical character
width, use the tab stop after that.
Move allocation with mmap here, from ralloc.c. Change
conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
(mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
from former r_alloc_* functions in ralloc.c.
(mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
variables.
(MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
(mmap_init) [REL_ALLOC_MMAP]: New function.
(alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
BUFFER_FREE.
(quail-start-translation): Translate KEY if necessary even if it
doesn't have any mapping in the current input method.
(quail-start-conversion): Likewise.
(quail-help): The output message is improved.
Miles Bader [Wed, 13 Sep 2000 12:08:32 +0000 (12:08 +0000)]
(comint-output-filter):
Revert to using `insert-before-markers'.
Add bletcherous hack to undo damage caused by `insert-before-markers'.
Put `front-sticky' property on overlays created here so that the field code
understands how the overlay works.
Use a let when making comint-last-prompt-overlay, so that the code is
easier to read.
Dave Love [Tue, 12 Sep 2000 12:49:20 +0000 (12:49 +0000)]
(imenu--truncate-items, imenu--cleanup)
(imenu--generic-function): Avoid mapcar.
(imenu--replace-spaces): Function removed.
(imenu--completion-buffer): Use subst-char-in-string.
(imenu-add-to-menubar): Use keymap inheritance.
Comment fixed.
(MAX_MAP_SET_LEVEL): Increased to 30.
(PUSH_MAPPING_STACK): Enclose with do-while block.
(POP_MAPPING_STACK): Likewise.
(stack_idx_of_map_multiple): New variable.
(CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
(ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
call the corresponding CCL program by
CCL_CALL_FOR_MAP_INSTRUCTION.
(ccl_driver) <CCL_MapSingle>: Likewise.
(ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
with the case where looking up process reaches to the end of
map-set, and call CCL programs as the above change.
(quail-cxterm-package-ext-info): Add extra docstrings for
"chinese-ccdospy", "chinese-ecdict", "chinese-etzy", "chinese-sw", and
"chinese-ziranma". Modify the docstring of "chinese-py".
(quail-translation-docstring): New variable.
(quail-show-keyboard-layout): Docstring modified.
(quail-select-current): Likewise.
(quail-build-decode-map): Change arg MAP to MAP-LIST to avoid
infinite recursive call.
(quail-help): Check quail-translation-docstring. Format of the
output changed.
(quail-help-insert-keymap-description): Adjusted for the above
change.
Miles Bader [Mon, 11 Sep 2000 13:51:21 +0000 (13:51 +0000)]
(diff-apply-hunk): Function basically rewritten. Now understands
non-unified diffs. Some functionality moved into `diff-hunk-text' and
`diff-find-text'. Add OTHER-FILE, DRY-RUN, POPUP, and NOERROR
arguments. If DRY-RUN is true, don't actually modify anything. Only
reposition point in the patched file if the patch succeeds. Only pop
up another window if POPUP is true. Emit a message describing what
happened if successful, and at what line-offset. Automatically detect
reversed hunks and do something appropriate.
(diff-hunk-text, diff-find-text): New functions.
(diff-filter-lines): Function removed.
(diff-test-hunk): New function.
(diff-goto-source): Rewritten in terms of diff-apply-hunk.
(Vloads_in_progress): New variable.
(record_load_unwind): New function.
(Fload): Check for recursive loads.
(syms_of_lread): Initialize Vloads_in_progress.
(read_integer, read1): Avoid some compiler warnings.