summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* (CHARSET_TABLE_ENTRY): Fix comment -- argument is a C int, not a lisp integer.Ken Raeburn2000-04-081-1/+1
|
* * coding.h (code_convert_string): Declare.Ken Raeburn2000-04-082-1/+3
| | | | | * coding.c (code_convert_string_norecord): Pass an int, not a lisp object, as the fourth argument to code_convert_string.
* (make_fontset_for_ascii_face): Use XINT on return value.Ken Raeburn2000-04-081-2/+2
| | | | (Fset_fontset_font): Use EQ to compare lisp objects.
* * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for a pointerKen Raeburn2000-04-052-5/+10
| | | | | | | that looks like a lisp object. (SET_INTERVAL_OBJECT): Don't explicitly compare the object with zero, instead see whether it's an integer object, since they can't have intervals. (GET_INTERVAL_OBJECT): Simply assign to the destination.
* * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 && __OPTIMIZE__]:Ken Raeburn2000-04-052-1/+13
| | | | | | | Provide a GNU C macro version that handles lisp-object unions. (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type field, to better cope with ENABLE_CHECKING and calls that modify a Lisp_Object using its old value.
* make_number/XINT/XUINT conversions; EQ/== fixes; ==Qnil -> NILPKen Raeburn2000-04-0510-29/+46
|
* *** empty log message ***Gerd Moellmann2000-04-041-0/+3
|
* (compare_window_configurations): Signal an errorGerd Moellmann2000-04-041-0/+5
| | | | if parameters C1 or C2 aren't window configurations.
* *** empty log message ***Gerd Moellmann2000-04-041-0/+6
|
* (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/Gerd Moellmann2000-04-041-17/+120
| | | | | AFTER_POTENTIAL_GC calls around calls to functions that can signal an error and thus invoke the debugger.
* *** empty log message ***Gerd Moellmann2000-04-031-0/+3
|
* (Fbase64_decode_region, Fbase64_decode_string): SignalGerd Moellmann2000-04-031-10/+10
| | | | an error if decoding fails.
* (NUM_MOUSE_BUTTONS): Removed.Gerd Moellmann2000-04-032-7/+27
|
* (larger_vector): Make externally visible.Gerd Moellmann2000-04-031-2/+1
|
* (larger_vector): Add prototype.Gerd Moellmann2000-04-031-0/+1
|
* (lispy_mouse_names): Variable removed.Gerd Moellmann2000-04-031-34/+43
| | | | | | | | | | | | | | | | (Vlispy_mouse_stem): New variable. (syms_of_keyboard): Initialize Vlispy_mouse_stem. (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort for any mouse button number. Increase size of mouse_syms and button_down_location as needed. Call modify_event_symbol with different arguments. (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]: Call modify_event_symbol with different arguments. (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort for any button number. Call modify_event_symbol with different arguments. (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM. Accept a string for NAME_ALIST_OR_STEM.
* * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.Stefan Monnier2000-04-024-143/+110
| | | | | | | | | | | | | | | | | | | | (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros. (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when we are between str1 and str2. (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default. (PATFETCH): Use `TRANSLATE'. (PATFETCH_RAW): Fetch multibyte char if applicable. (PATUNFETCH): Remove. (regex_compile): Rely on PATFETCH to do most of the multibyte magic. When writing a char, write it directly into the pattern buffer rather than going needlessly through a temp char-array. (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the multibyte magic and remove the useless `#ifdef emacs'. (bcmp_translate): Don't compare as multibyte chars when in a unibyte buffer. * regex.h (struct re_pattern_buffer): Make field `multibyte' conditional on `emacs'. * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
* * composite.c (run_composite_function): Use NILP when checking for nil.Ken Raeburn2000-04-022-4/+8
| | | | | (syms_of_composite): Delete local var NARGS, pass an int as first argument to Fmake_hash_table.
* fix error in last log messageKen Raeburn2000-04-021-2/+3
|
* * editfns.c (text_property_stickiness, Fmessage_or_box): Use NILP to testKen Raeburn2000-04-022-4/+13
| | | | | | Lisp_Object boolean value. (Fformat): Use a temporary variable to avoid ENABLE_CHECKING problems reading from and changing the same lisp value in an XSETSTRING call.
* * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand non-union-typeKen Raeburn2000-04-022-4/+26
| | | | | | versions of XMARK and friends here, because XMARK and friends won't work on an integer field if NO_UNION_TYPE is not defined. (make_number): Define as a function if it's not defined as a macro.
* *** empty log message ***Gerd Moellmann2000-04-011-0/+9
|
* (TN_no_color_video): New variable.Gerd Moellmann2000-04-011-9/+52
| | | | | | | | (term_init): Intitialize TN_no_color_video. (enum no_color_bit): New enumeration. (MAY_USE_WITH_COLORS_P): New macro. (turn_on_face): Use it to determine if attributes may be used combined with colors.
* Fix Lisp_Object/int type confusion revealed by making Lisp_Object a union type:Ken Raeburn2000-04-014-27/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | * xdisp.c (compute_string_pos): Fix order of arguments to string_pos_nchars_ahead. (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as count arg to variable-arg routines like Frun_hook_with_args and Fformat. (back_to_previous_visible_line_start, build_desired_tool_bar_string): Pass Lisp_Object, not int, to fixed-arg routines like Fget_char_property and Fmake_string. (reconsider_clip_changes): Use XINT when comparing integer lisp objects, or passing them as int arguments. (mark_window_display_accurate, insert_left_trunc_glyphs, append_space, extend_face_to_end_of_line): Use make_number when storing or passing integer values as lisp objects. (set_cursor_from_row, highlight_trailing_whitespace): Use INTEGERP, not implicit test against zero, for glyph object. (try_window_id): Don't use make_number when we want an int value. * xfaces.c (xlfd_symbolic_value): Make last argument a Lisp_Object, to be consistent with callers. (Fbitmap_spec_p): Use XINT to get numeric value of height. (lface_hash): Apply XFASTINT to lisp values before folding in. * xfns.c (Fx_show_tip): Use make_number to get lisp objects to fill in window width and height. Pass an int, not a lisp object, as first arg to Finsert.
* * window.c (CURBEG, CURSIZE): Don't overload lisp object lvaluesKen Raeburn2000-04-012-13/+24
| | | | | | | | | with int lvalues via casts; instead, just yield lisp object lvalues. (enlarge_window): Variable sizep now points to Lisp_Object. Use proper accessor macros. (shrink_window_lowest_first): w->top is Lisp_Object; use XINT. (grow_mini_window): Fix typo getting int value of root->height.
* *** empty log message ***Gerd Moellmann2000-04-011-1/+4
|
* (realize_basic_faces): Block input while realizingGerd Moellmann2000-04-011-0/+5
| | | | the faces.
* (lispy_mouse_names): Add additional mouse names.Gerd Moellmann2000-04-012-1/+9
|
* (NUM_MOUSE_BUTTONS): Increase to 15.Gerd Moellmann2000-04-011-1/+1
|
* *** empty log message ***Gerd Moellmann2000-03-311-0/+5
|
* (x_produce_glyphs): When displaying unibyte textGerd Moellmann2000-03-311-3/+14
| | | | or ASCII, handle case that per-char metric is NULL.
* * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.Ken Raeburn2000-03-302-2/+16
|
* * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, XSUBR, XBUFFER):Ken Raeburn2000-03-3013-32/+63
| | | | | | | | | | | | | | | | | | Verify correct object type before returning pointer, using eassert. * frame.h (XFRAME): Likewise. * buffer.c (Frename_buffer, Fset_buffer_multibyte, swap_out_buffer_local_variables, Fmove_overlay): Don't apply XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type. * data.c (set_internal): Likewise. * dispextern.h (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P): Likewise. * fileio.c (auto_save_1): Likewise. * insdel.c (check_markers): Likewise. * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise. * undo.c (record_insert): Likewise. * vmsproc.c (child_sig): Likewise. * window.c (unshow_buffer, window_loop): Likewise. * xterm.c (x_erase_phys_cursor): Likewise.
* (xstrdup): Add prototype.Gerd Moellmann2000-03-302-0/+17
|
* (realize_tty_face): Use find_symbol_value insteadGerd Moellmann2000-03-301-18/+4
| | | | | of Fsymbol_value. (xstrdup): Moved to alloc.c.
* (xstrdup): Moved here from xfaces.c.Gerd Moellmann2000-03-301-14/+17
| | | | | | (allocating_for_lisp): Variable removed. (lisp_malloc): Block input around the calls to malloc and mem_insert.
* (free_image_cache): Free the cache structure itselfGerd Moellmann2000-03-301-4/+16
| | | | last, after all its members have been freed.
* *** empty log message ***Kenichi Handa2000-03-301-7/+7
|
* Augment the comment of lookup_face.Kenichi Handa2000-03-301-1/+7
|
* * scroll.c (CHECK_BOUNDS): Renamed from CHECK.Ken Raeburn2000-03-293-3/+7
| | | | * emacs.c (main): Fix sense of no-loadup test.
* Stop assuming interval pointers and lisp objects can be distinguished byKen Raeburn2000-03-296-17/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | inspection. Beginnings of support for expensive internal consistency checks. * config.in (ENABLE_CHECKING): Undef. * lisp.h (struct interval): Replace "parent" field with a union of interval pointer and Lisp_Object; add new bitfield to use as discriminant. Change other flag fields to bitfields. (CHECK): New macro for consistency checking. If ENABLE_CHECKING is defined and the supplied test fails, print a message and abort. (eassert): New macro. Use CHECK to provide an assert-like facility. * intervals.h (NULL_INTERVAL_P): Now applies only to real interval pointers; abort if the value looks like a lisp object. (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT, SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT): Modify for new interval parent definition. * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE, UNMARK_BALANCE_INTERVALS): Update references that need an addressable lisp object in the interval structure. (die): New function. (suppress_checking): New variable. * intervals.c (interval_start_pos): Just return 0 if there's no parent object.
* *** empty log message ***Gerd Moellmann2000-03-291-4/+9
|
* (Ftop_level): Cancel busy-cursor.Gerd Moellmann2000-03-291-0/+4
|
* (read1): Accept `.' (period) as symbol start like in CLGerd Moellmann2000-03-291-4/+1
| | | | and earlier Emacs versions.
* (Freplace_match): Adjust multibyteness of the currentKenichi Handa2000-03-291-4/+41
| | | | | buffer and NEWTEXT. Free allocated memory before signaling an error.
* *** empty log message ***Kenichi Handa2000-03-291-0/+6
|
* *** empty log message ***Gerd Moellmann2000-03-291-0/+4
|
* (call_debugger): Cancel busy-cursor.Gerd Moellmann2000-03-291-0/+5
|
* *** empty log message ***Dave Love2000-03-291-10/+0
|
* (analyse_first): New function obtained by ripping out mostStefan Monnier2000-03-292-62/+96
| | | | | | | | | | of re_compile_fastmap and generalizing it a little bit so that it can also just return whether a given (sub)pattern can match the empty string or not. (regex_compile): Use `analyse_first' to decide whether the loop-check needs to be done or not for *, +, *? and +? (the loop check is costly for non-greedy repetition). (re_compile_fastmap): Delegate the actual work to `analyse_first'.