Commit graph

17779 commits

Author SHA1 Message Date
Kenichi Handa
fe905025d0 (Fmd5): If OBJECT is a buffer different from the current
one, set buffer to OBJECT temporarily.
2004-01-23 00:14:48 +00:00
Stefan Monnier
455316e213 *** empty log message *** 2004-01-22 15:28:25 +00:00
Stefan Monnier
d92f48d3ab (kbd_buffer_gcpro): Remove.
(kbd_buffer_store_event, clear_event, Fdiscard_input)
(stuff_buffered_input, init_keyboard, syms_of_keyboard):
Don't intitialize and/or maintain the variable any more.  It was made
redundant by my commit of 2003-06-15.
2004-01-21 20:19:41 +00:00
Stefan Monnier
438fc6c0c0 *** empty log message *** 2004-01-21 19:36:00 +00:00
Stefan Monnier
1b35bdf447 [USE_LSB_TAG && !DECL_ALIGN]: Signal an error. 2004-01-21 19:32:49 +00:00
Jan Djärv
5335a4eeb8 lisp.h: Add undef DECL_ALIGN 2004-01-21 15:30:28 +00:00
Stefan Monnier
371b1542e5 Add .gdb_history 2004-01-21 05:47:54 +00:00
Stefan Monnier
dcdaeebcaf *** empty log message *** 2004-01-21 05:46:48 +00:00
Stefan Monnier
43ff45a00d (wait_reading_process_input) [SYNC_INPUT]: Check interrupt_input_pending. 2004-01-21 05:27:58 +00:00
Stefan Monnier
35d3b513d3 (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well. 2004-01-21 05:24:01 +00:00
Stefan Monnier
b65c1b4489 (handle_async_input): New fun, extracted from input_available_signal.
(input_available_signal, reinvoke_input_signal): Use it.
2004-01-21 05:15:12 +00:00
Stefan Monnier
d710758638 *** empty log message *** 2004-01-21 05:03:24 +00:00
Stefan Monnier
d4f8198baf (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN. 2004-01-21 04:32:19 +00:00
Stefan Monnier
9aa0928de7 [USE_LSB_TAG]: Add definitions for Lisp_Object value
manipulation macros for when tags are in the lower bits.
(struct Lisp_Free) [USE_LSB_TAG]: Add padding.
(DECL_ALIGN): New macro.
(DEFUN): Use it.
2004-01-21 04:31:21 +00:00
Stefan Monnier
39eec98ffd [ENABLE_CHECKING]: Don't force union type. 2004-01-21 04:19:21 +00:00
Stefan Monnier
4fa2eaa05c (__attribute__): Remove outdated workaround. 2004-01-21 04:04:01 +00:00
Stefan Monnier
6839cd1500 (main) [USE_LSB_TAG]: Don't range check the ram. 2004-01-21 04:02:39 +00:00
Stefan Monnier
831b476c5a (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
Don't check range of malloc address.
(pure_alloc) [USE_LSB_TAG]: Enforce alignment.
2004-01-21 03:34:32 +00:00
Stefan Monnier
9076a82311 (wait_reading_process_input): Lisp_Object/int mixup. 2004-01-20 21:19:33 +00:00
Stefan Monnier
45c7d781c6 (Ffile_attributes): Lisp_Object/int mixup. 2004-01-20 21:18:31 +00:00
Kenichi Handa
ba0290651f *** empty log message *** 2004-01-19 00:35:31 +00:00
Kenichi Handa
07836f47b2 (fontset_font_pattern): Fix previous change. 2004-01-19 00:22:03 +00:00
Miles Bader
7af0e8d775 Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-41
Make fringe-drawing stuff compile without a window-system

* src/xdisp.c (Voverflow_newline_into_fringe)
(move_it_in_display_line_to, redisplay_internal)
(update_window_fringes, redisplay_window, display_line, window):
Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
that it compiles without a window-system.
* src/dispnew.c (direct_output_for_insert, update_window): Likewise.
2004-01-17 03:31:26 +00:00
Kim F. Storm
3c0882ae5c (x_update_window_end): Call draw_window_fringes.
(x_after_update_window_line): Just set redraw_fringe_bitmaps_p
in row instead of actually drawing fringe bitmaps.
(x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
(x_draw_window_cursor): Draw cursor in fringe.
2004-01-16 18:47:40 +00:00
Kim F. Storm
88e6b646f5 (Voverflow_newline_into_fringe): New variable.
(IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
(move_it_in_display_line_to): Overflow newline into fringe for
rows that are exactly as wide as the window.
(up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
(filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
(hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
(fringe_bitmaps): Add new bitmaps.
(draw_fringe_bitmap): Make extern.  Remove WHICH arg.
Select proper bitmap for cursor in fringe when appropriate.
Handle alignment of bitmap to top or bottom of row.
(draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
done by update_window_fringes.
(update_window_fringes, draw_window_fringes): New functions.
(redisplay_internal): Call update_window_fringes in case only
cursor row is updated.
(redisplay_window): Call update_window_fringes.
Explicitly call draw_window_fringes if redisplay was done using
the current matrix or the overlay arrow is in the window.
(try_window_reusing_current_matrix): Mark scrolled rows for
fringe update (to update buffer-boundaries / scrolling icons).
(find_last_unchanged_at_beg_row): Handle exact width lines line
continued lines.
(display_line): Overflow newline into fringe for rows that are
exactly as wide as the window.  Don't append space for newline
in this case.
(notice_overwritten_cursor): Explicitly clear cursor bitmap
in fringe as if it had been overwritten.
(erase_phys_cursor): Erase cursor bitmap in fringe.
(syms_of_xdisp): Mark show-trailing-whitespace and
void-text-area-pointer as user options.
DEFVAR_LISP Voverflow_newline_into_fringe.  Enable by default.
2004-01-16 18:47:20 +00:00
Kim F. Storm
5fbcdd1927 (x_update_window_end): Call draw_window_fringes.
(x_after_update_window_line): Just set redraw_fringe_bitmaps_p
in row instead of actually drawing fringe bitmaps.
(w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
(w32_draw_window_cursor): Draw cursor in fringe.
2004-01-16 18:46:47 +00:00
Kim F. Storm
797dc7b8e2 (x_update_window_end): Call draw_window_fringes.
(x_after_update_window_line): Just set redraw_fringe_bitmaps_p
in row instead of actually drawing fringe bitmaps.
(x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
(mac_draw_window_cursor): Draw cursor in fringe.
2004-01-16 18:46:29 +00:00
Kim F. Storm
60e992936a (row_equal_p, update_window_line): Compare fringe bitmaps
instead of related indicator fields.
Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
(direct_output_for_insert): Handle exact width lines like
contined lines.  Call update_window_fringes.
(update_window): Call update_window_fringes.
(scrolling_window): Don't skip desired rows with changed bitmaps.
Check if fringe bitmaps changes when assigning scrolled rows.
2004-01-16 18:46:11 +00:00
Kim F. Storm
557c387e70 (struct glyph_row): New members left_fringe_bitmap,
right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
New members exact_window_width_line_p and cursor_in_fringe_p for
overflowing newlines into right fringe.
New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
and indicate_bottom_line_p for buffer boundaries and scrolling.
(enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
and HOLLOW_SQUARE_BITMAP.
(draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
Add prototypes.
2004-01-16 18:40:46 +00:00
Kim F. Storm
40b2672a79 (struct buffer): New member indicate_buffer_boundaries. 2004-01-16 18:40:33 +00:00
Kim F. Storm
8e8767f80e (init_buffer_once): Set buffer_defaults and
buffer_local_flags for indicate_buffer_boundaries.
(syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
default- variable for it.
2004-01-16 18:40:22 +00:00
Kim F. Storm
77a9cf6944 Add cursor in fringe support.
Add buffer boundary and scrolling indications.
2004-01-16 18:39:56 +00:00
Jan Djärv
a633a9544b * xterm.c (handle_one_xevent): Don't handle characters that are part
of an old style (XLookupString) compose sequence.
2004-01-16 10:21:54 +00:00
Kenichi Handa
8046052576 (Freplace_match): Use make_multibyte_string or
make_unibyte_string according to the buffer multibyteness.
2004-01-15 11:31:57 +00:00
Stefan Monnier
7fc34f8550 *** empty log message *** 2004-01-14 14:40:24 +00:00
Stefan Monnier
d05b383acd (struct interval_block, struct string_block)
(struct symbol_block, struct marker_block, live_string_p)
(live_cons_p, live_symbol_p, live_float_p, live_misc_p):
Better preserve alignment for objects in blocks.
(FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
2004-01-14 14:35:23 +00:00
Stefan Monnier
2fcad71e3e (defvar_per_buffer): Remove dead declaration. 2004-01-14 14:29:48 +00:00
Stefan Monnier
eccab14434 (do_check_ram_size): Don't hardcode the lisp address space size. 2004-01-14 14:24:38 +00:00
Jan Djärv
66070bd113 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
if a key press should pop down.  Only pop down if a key is pressed
outside the menu/dialog.
(create_and_show_popup_menu): Pass 0 for down_on_keypress to
popup_get_selection.
(create_and_show_dialog): Pass 1 for down_on_keypress to
popup_get_selection.
2004-01-12 01:46:49 +00:00
Jan Djärv
de7515d6b8 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
BLOCK/UNBLOCK_INPUT.
2004-01-11 21:50:12 +00:00
Jan Djärv
160b1b50f9 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
specified.
2004-01-08 21:04:32 +00:00
Kenichi Handa
3a9f36e634 (Fformat): Fix '&' to '&&'. 2004-01-08 08:40:12 +00:00
Andreas Schwab
3803eb324e (print_preprocess) <case Lisp_Vectorlike>: Only mask
size if PSEUDOVECTOR_FLAG is set.
2004-01-08 00:16:25 +00:00
Kenichi Handa
74ac5074b4 (Fdeclare_equiv_charset): Fix docstring. 2004-01-07 12:50:15 +00:00
Kenichi Handa
9da88f3786 (fontset_ref_via_base): Fix previous change. 2004-01-07 00:24:44 +00:00
Kim F. Storm
05faee07bb *** empty log message *** 2004-01-06 23:49:51 +00:00
Kim F. Storm
05b72afdef (read_process_output): Only activate adaptive
buffering if we read less than 256 bytes at a time.
2004-01-06 23:34:45 +00:00
Kim F. Storm
349c653ee5 (note_mode_line_or_margin_highlight): Use modified
mode_line_string and marginal_area_string functions to handle
both string object and image object properties.
2004-01-06 22:38:23 +00:00
Kim F. Storm
03c975a4cb (POSN_POSN, POSN_SET_POSN): Rename macros from
POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
(POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
2004-01-06 22:37:48 +00:00
Kim F. Storm
eee5863b68 (make_lispy_position): Use modified mode_line_string,
buffer_posn_from_coords, and marginal_area_string functions to
include both string object and image object in the lispy position.
Also add actual glyph width and height to position.
(read_key_sequence): Use real buffer position from mouse
event to find keymap property even when click is in marginal area.
2004-01-06 22:37:39 +00:00