Commit graph

12328 commits

Author SHA1 Message Date
Gerd Moellmann
b74123131b (update_window): Make sure to make desired rows
current even if they are completely invisible at the top
of a window.
2000-09-16 13:39:36 +00:00
Gerd Moellmann
7f8f1edc23 *** empty log message *** 2000-09-15 21:01:39 +00:00
Gerd Moellmann
14819cb379 (lookup_image): Build mask before applying an algorithm.
Recognize algorithm `disabled'.
(cross_disabled_images): New variable.
(COLOR_INTENSITY): New macro.
(x_detect_edges): Use COLOR_INTENSITY.
(x_disable_image): New function.
(syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
2000-09-15 21:01:29 +00:00
Gerd Moellmann
37e4e48286 (build_desired_tool_bar_string): For a toolbar item in
disabled state, don't apply an image transformation algorithm if
the user specified an image for the disabled state.  Use
`:algorthm disabled' for creating a disabled item's image if the
user hasn't specified an image.
2000-09-15 21:01:14 +00:00
Stefan Monnier
0e93ece638 Sort alphabetically and add `Makefile'. 2000-09-15 20:58:45 +00:00
Gerd Moellmann
ebb8f1165d *** empty log message *** 2000-09-15 15:22:07 +00:00
Gerd Moellmann
b243755a13 (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.
2000-09-15 15:19:03 +00:00
Gerd Moellmann
47e351a327 *** empty log message *** 2000-09-15 11:49:22 +00:00
Gerd Moellmann
4a8e312c92 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
(Qedge_detection, Qheuristic): New symbols.
(syms_of_xfns): Initialize new symbols.
(lookup_image): Handle `:mask X', `:algorithm emboss', and
`algorithm (edge-detection ...)'.
(xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
(tiff_format, gif_format, gs_format): Add `:mask'.
(XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
(GIF_MASK, GS_MASK): New enumerators.
(x_laplace_read_row, x_laplace_write_row): Functions removed.
(emboss_matrix, laplace_matrix): New variables.
(x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
(x_edge_detection): New functions.
(x_laplace): Rewritten in terms of x_detect_edges.
(x_build_heuristic_mask): If image has a mask, free it.
2000-09-15 11:48:16 +00:00
Andrew Innes
fe83b953b1 *** empty log message *** 2000-09-14 22:00:54 +00:00
Andrew Innes
7bbaaeddf0 Revert to Unix line endings. 2000-09-14 21:59:59 +00:00
Andrew Innes
3021e8160b *** empty log message *** 2000-09-14 21:51:49 +00:00
Andrew Innes
dfaaaafb67 (w32_per_char_metric): Handle non-TrueType fonts. 2000-09-14 21:34:22 +00:00
Andrew Innes
cf498eda60 Standardize indentation somewhat.
(bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
cater for differences between shells.
2000-09-14 21:32:40 +00:00
Gerd Moellmann
2a32b5ea15 (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.
2000-09-14 20:20:51 +00:00
Dave Love
b4331e964a *** empty log message *** 2000-09-14 19:47:28 +00:00
Dave Love
815add8485 (alloc_buffer_text): Fix xmalloc call. 2000-09-14 19:39:11 +00:00
Gerd Moellmann
085536c273 (handle_fontified_prop): While running fontification
functions, bind `fontification-functions' and
`after-change-functions' to nil.
2000-09-14 19:17:36 +00:00
Gerd Moellmann
ef9e43452f *** empty log message *** 2000-09-14 15:15:16 +00:00
Gerd Moellmann
02bb17d31c Remove everything having to do with the use of mmap. 2000-09-14 15:14:28 +00:00
Gerd Moellmann
39c75ccb52 (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
(enlarge_buffer_text): Add prototype.
2000-09-14 15:14:15 +00:00
Gerd Moellmann
b86af064c5 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.
2000-09-14 15:14:02 +00:00
Gerd Moellmann
71a7bfa7ee (make_gap): Use enlarge_buffer_text. 2000-09-14 15:13:29 +00:00
Gerd Moellmann
a74c5ec1a4 Change conditional compilation on REL_ALLOC_MMAP to
USE_MMAP_FOR_BUFFERS.
2000-09-14 15:13:18 +00:00
Gerd Moellmann
95f784a935 (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o. 2000-09-14 15:13:02 +00:00
Gerd Moellmann
67cdbf1682 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP. 2000-09-14 15:12:48 +00:00
Gerd Moellmann
2a494b2d89 (Fplay_sound): Doc fix. 2000-09-13 18:23:03 +00:00
Gerd Moellmann
8c907a5633 Avoid some more compiler warnings.
(parse_tool_bar_item): Ignore cached key bindings.
2000-09-13 11:18:03 +00:00
Gerd Moellmann
f860896845 Add some comments about DOUG_LEA_MALLOC's use of mmap
and allocation of Lisp data.
2000-09-13 09:19:05 +00:00
Gerd Moellmann
d12d0a9b79 Remove conditional compilation on SCALABLE_FONTS.
(Finternal_set_lisp_face_attribute): If frame is 0, set new frame
defaults first.
2000-09-12 14:19:54 +00:00
Gerd Moellmann
6ab70e9a61 *** empty log message *** 2000-09-12 10:59:03 +00:00
Gerd Moellmann
6a69efd78e (Fload): Put code checking for recursive loads in #if 0. 2000-09-12 10:58:42 +00:00
Kenichi Handa
54fa5bc13a 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.
2000-09-12 02:30:13 +00:00
Kenichi Handa
63c36c3c74 *** empty log message *** 2000-09-12 02:29:12 +00:00
Gerd Moellmann
8ec8a5ec9e (png_load, jpeg_load): Declare some variables volatile
that might be clobbered by longjmp.
(check_x_display_info, x_decode_color, create_frame_xic)
(Fx_display_backing_store, Fx_display_visual_class)
(x_build_heuristic_mask, pbm_scan_number): Avoid compiler
warnings.
2000-09-11 19:54:11 +00:00
Gerd Moellmann
f74b07059d (init_lread): Set Vloads_in_progress to nil.
(Fload): Show list of recursively loaded files, when signaling an
error.
2000-09-11 13:01:38 +00:00
Gerd Moellmann
7ee3bd7bf8 (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.
2000-09-11 12:52:59 +00:00
Gerd Moellmann
093386ca6c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
compiler warnings.
2000-09-11 12:51:13 +00:00
Miles Bader
974e1e5b2a (Fbuffer_string): Doc fix. 2000-09-11 10:48:34 +00:00
Gerd Moellmann
9824c4e39e (mmap_enlarge): Don't return 0 if successful. 2000-09-10 11:19:00 +00:00
Ken Raeburn
6a72fdd12e s/netbsd.h: NO_C_SOURCE->NOT_C_CODE 2000-09-10 01:12:09 +00:00
Gerd Moellmann
28e6fb6637 (CYCLE_CHECK): Don't use the Lisp_Object returned
by Fmemq in a condition.
2000-09-09 13:14:56 +00:00
Stefan Monnier
7f8b6551de *** empty log message *** 2000-09-09 00:50:26 +00:00
Stefan Monnier
cec33c9095 (Finternal_set_lisp_face_attribute): Minor thinko. 2000-09-09 00:18:25 +00:00
Dave Love
460dc922d8 (internal-merge-in-global-face): Fix newline in doc string. 2000-09-08 22:17:17 +00:00
Gerd Moellmann
d1a0288150 (mmap_fd): Remove initializer which can make it
read-only in a dumped Emacs.
(mmap_fd_1): New variable.
(mmap_set_vars): Remove local `fd'.  Save mmap_fd in mmap_fd_1,
restore it from there.
(r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
unconditionally so that mmap_fd can be initialized there.
(r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
(r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
(r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
2000-09-08 19:52:57 +00:00
Dave Love
d93c318653 (r_alloc_init_fd): Move. Fix conditional for pcc. 2000-09-08 16:31:11 +00:00
Dave Love
5ad25b24df (r_alloc_init): Conditionalize on SYSTEM_MALLOC, not REL_ALLOC_MMAP. 2000-09-08 16:03:04 +00:00
Gerd Moellmann
c454aac192 *** empty log message *** 2000-09-08 14:20:44 +00:00
Gerd Moellmann
334a2e2a82 (Finternal_merge_in_global_face): Return a Lisp object. 2000-09-08 14:19:31 +00:00