aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (RETURN_UNGCPRO): Swallow semicolon.Richard M. Stallman1994-06-221-7/+17
| | | | (GCPRO5): New macro.
* declare init_system_name (replaces get_system_name).Karl Heuer1994-06-151-2/+2
|
* Update copyright.Karl Heuer1994-05-041-1/+1
|
* (Vascii_canon_table, Vascii_eqv_table): Declared.Richard M. Stallman1994-04-231-0/+1
|
* (Fprocess_send_eof, Foverlay_get): Declared.Richard M. Stallman1994-04-151-0/+2
|
* (gc_in_progress): Declared.Richard M. Stallman1994-04-031-0/+1
|
* (Qwholenump): Declared.Richard M. Stallman1994-03-221-2/+3
| | | | (CHECK_NATNUM): Use Qwholenump.
* (MAKE_GLYPH, GLYPH_CHAR, GLYPH_FACE): Handle termcap frames as well as X.Karl Heuer1994-03-191-3/+17
| | | | (FAST_MAKE_GLYPH, FAST_GLYPH_CHAR, FAST_GLYPH_FACE): New macros.
* (GLYPH_MODE_LINE_FACE): New macro.Richard M. Stallman1994-03-101-0/+2
|
* (Qvisible): Declared.Richard M. Stallman1994-03-081-0/+1
|
* (ARRAY_MARK_FLAG): Define here.Richard M. Stallman1994-03-051-0/+27
|
* (struct handler): New field chosen_clause.Richard M. Stallman1994-03-021-0/+5
| | | | (memory_signal_data): Declare it.
* Delete extra backslash on last line of macro.Karl Heuer1994-02-261-1/+1
|
* New variable doc_directory.Karl Heuer1994-02-221-0/+1
|
* (internal_condition_case_1): Declared.Richard M. Stallman1994-02-051-0/+1
|
* (get_system_name): Declared.Karl Heuer1994-02-021-0/+2
|
* (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): New macros.Richard M. Stallman1994-01-201-0/+29
| | | | (Vinstallation_directory): Declared.
* Use WORDS_BIG_ENDIAN, not BIG_ENDIAN.Richard M. Stallman1993-12-231-4/+31
| | | | | | | (Qmenu_bar): Declared. (DEFUN_ARGS_MANY, DEFUN_ARGS_UNEVALLED, DEFUN_ARGS_0,...): New macros. (DEFUN) [__STDC__]: Use those macros.
* Declare Fnext_single_property_change and Fnext_property_change.Richard M. Stallman1993-11-231-0/+2
|
* Format comment.Brian Fox1993-10-051-1/+2
|
* (Vinvocation_directory): Declared.Richard M. Stallman1993-08-101-1/+1
|
* Consistently use the mark bit of the root interval's parent fieldJim Blandy1993-07-181-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | to say whether or not the interval tree has been visited (and skip it when revisited), and the mark bit of the plist field to say whether or not that interval has been visited (and abort if revisited); don't try to use the plist mark bit for both meanings. * alloc.c (mark_interval_tree): Don't test if the interval tree has already been visited here; let the MARK_INTERVAL_TREE macro do that; avoid function call overhead. Mark the interval tree as having been visited by setting TREE->parent's mark bit. (MARK_INTERVAL_TREE): If the tree has been visited (according to I->parent's mark bit), don't call mark_interval_tree. (gc_sweep): Rebalance the interval trees of those large strings which are still alive. This also clears the mark bits of those trees' root intervals' parent fields. (compact_strings): Rebalance the interval tree of each small strings which is still alive. This also clears the mark bits of that tree's root interval's parent field. Since the string has moved, update the root interval's parent pointer to contain the new address. * lisp.h (struct interval): Doc fix; explain the roles of the mark bits of the parent and plist members.
* (Qinsert_in_front_hooks, Qinsert_behind_hooks): Declared.Richard M. Stallman1993-07-131-2/+2
| | | | This replaces part of previous change.
* (Qinsert_before_hooks, Qinsert_after_hooks): Declared.Richard M. Stallman1993-07-131-0/+4
| | | | (Qmodification_hooks): Declared.
* Declare Qmark_inactive.Roland McGrath1993-07-081-0/+1
|
* * emacs.c (Fkill_emacs): Pass third argument to shut_down_emacs.Jim Blandy1993-06-191-1/+1
| | | | * lisp.h (shut_down_emacs): Doc fix.
* Remove decl for Qvisible.Jim Blandy1993-06-171-1/+1
|
* * lisp.h (CHECK_LIST, CHECK_STRING, CHECK_CONS, CHECK_SYMBOL,Jim Blandy1993-06-171-23/+23
| | | | | | | | | CHECK_VECTOR, CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT, CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY): Wrap a do ... while (0) around these compound statements to make them syntactically equivalent to a single statement.
* Don't let the 'B' interactive spec default to buffers viewed inJim Blandy1993-06-171-1/+1
| | | | | | | | | | | | | any visible frame. * buffer.c (Fother_buffer): Pass Qvisible as the second argument to Fget_buffer_window. * window.c (Qvisible): New symbol. (window_loop): In GET_BUFFER_WINDOW case, if frames is Qvisible, ignore non-visible frames. (Fget_buffer_window): Expand doc string to mention that Qvisible is an interesting value for FRAME argument. (syms_of_window): Init and staticpro Qvisible. * lisp.h (Qvisible): New declaration.
* Doc fix.Jim Blandy1993-06-121-1/+1
|
* Apply typo patches from Paul Eggert.Jim Blandy1993-06-091-1/+1
|
* Don't declare malloc or realloc.Richard M. Stallman1993-06-071-2/+1
| | | | (Vinhibit_read_only): Declared.
* (UCHAR): Don't define if _UCHAR_T.Richard M. Stallman1993-05-301-0/+3
|
* * lisp.h (GLYPH_FACE): Remember that the face portion of a glyphJim Blandy1993-05-231-1/+1
| | | | can be 24 bits, not just eight.
* Updated copyright years.Jim Blandy1993-05-221-1/+1
|
* * lisp.h (malloc, realloc): Declare these to return void *, toJim Blandy1993-05-181-1/+2
| | | | avoid conflicts with ANSI header files.
* * lisp.h (Lisp_Overlay): New tag.Jim Blandy1993-05-141-3/+19
| | | | | | | | | | | | | | | | | | | | | | | (OVERLAYP): New predicate. (CHECK_OVERLAY): New type-checker. (Qoverlayp): New extern declaration. * buffer.c (Foverlayp): New function. (Qoverlayp): New atom. (overlays_at, recenter_overlay_lists): Abort if we encounter an invalid overlay. (syms_of_buffer): defsubr Soverlayp; initialize Qoverlayp. (Fdelete_overlay): Set the overlay's markers to point nowhere. Use CHECK_OVERLAY instead of signalling a special error. (Fmove_overlay, Foverlay_put): Use CHECK_OVERLAY instead of signalling a special error. (Foverlay_get): Use CHECK_OVERLAY. * fns.c (internal_equal): Define this for overlays. * buffer.h (OVERLAY_VALID): Define in terms of OVERLAYP. * print.c (print): Give overlays their own print syntax. * alloc.c (mark_object): Treat overlays like conses. * lisp.h (FLOATP): Define this appropriately when LISP_FLOAT_TYPE is not defined.
* * config.h.in: Remove mention of GLYPH datatype; that shouldn't beJim Blandy1993-05-101-0/+22
| | | | | a user option. * lisp.h (GLYPH, MAKE_GLYPH, GLYPH_CHAR, GLYPH_FACE): New macros.
* * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER, CHAR_SHIFT, CHAR_CTL,Jim Blandy1993-05-041-7/+10
| | | | CHAR_META): Shift these all up one bit, back to where they were.
* * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER): New constants, inJim Blandy1993-05-041-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | case we need them. * termhooks.h (alt_modifier, super_modifier, hyper_modifier, shift_modifier, ctrl_modifier, meta_modifier): Define these in terms of the CHAR_mumble macros, to avoid having the same thing defined in two places. Arrange for Fy_or_n_p to put off switch-frame events. * lread.c (read_filtered_char): New function, which contains the code which used to be in Fread_char, Fread_event, and Fread_char_exclusive; there was a lot of common code. (Fread_char, Fread_event, Fread_char_exclusive): Rewrite in terms of read_filtered_char. * lisp.h (read_filtered_char): Declare this extern here. * fns.c (Fy_or_n_p): Call read_filtered_char, arranging to delay switch-frame events. Make the modifier manipulation functions more robust. The old way caused a bug once, and probably would again. * termhooks.h (alt_modifier, super_modifier, hyper_modifier, shift_modifier, ctrl_modifier, meta_modifier): Shift these all down one bit in value, to avoid sign extension problems. * lisp.h (CHAR_META, CHAR_CTL, CHAR_SHIFT): Fix these definitions too. * keyboard.c (lispy_modifier_list): Ignore modifier bits beyond what our table of modifier names can handle. (apply_modifiers): Don't abort if you see extra modifier bits, just remove them. * lisp.h (Qrange_error, Qdomain_error, Qsingularity_error, Qoverflow_error, Qunderflow_error): Add extern to these declarations.
* (LOADHIST_ATTACH): New macro.Richard M. Stallman1993-04-291-0/+5
| | | | (Vcurrent_load_list, Vload_history): Vars declared.
* long_to_cons and cons_to_long are generally useful things; they'reJim Blandy1993-04-101-0/+2
| | | | | | | needed whether or not X is defined. * xselect.c (long_to_cons, cons_to_long): Moved from here... * data.c (long_to_cons, cons_to_long): ... to here. * lisp.h (long_to_cons, cons_to_long): Add extern declaration.
* Put interrupt input blocking in a separate file from xterm.h.Jim Blandy1993-03-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This isn't specific to X, and it allows us to avoid #including xterm.h in files that don't really have anything to do with X. * blockinput.h: New file. * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT, UNBLOCK_INPUT_RESIGNAL): These are now in blockinput.h. (x_input_blocked, x_pending_input): Deleted; there are analogs in blockinput.h called interrupt_input_blocked and interrupt_input_pending. * keyboard.c (interrupt_input_blocked, interrupt_input_pending): New variables, used by the macros in blockinput.h. * xterm.c: #include blockinput.h. (x_input_blocked, x_pending_input): Deleted. (XTread_socket): Test and set interrupt_input_blocked and interrupt_input_pending instead of the old variables. * alloc.c, xfaces.c, xfns.c, xmenu.c, xselect.c, keymap.c: #include blockinput.h. * eval.c: #include blockinput.h instead of xterm.h. * keyboard.c: #include blockinput.h. (input_poll_signal): Just test interrupt_input_blocked, instead of testing HAVE_X_WINDOWS and x_input_blocked. Block the processing of interrupt input while we're manipulating the malloc heap. * alloc.c: (xfree): New function, to make it easy to free things safely. (xmalloc, xrealloc): Block X input while doing the deed. (VALIDATE_LISP_STORAGE, gc_sweep, compact_strings): Use xfree instead of free. (uninterrupt_malloc): New function, to install input-blocking hooks into the GNU malloc routines. * emacs.c [not SYSTEM_MALLOC] (main): Call uninterrupt_malloc on startup. * alloc.c: (make_interval, make_float, Fcons, Fmake_vector, Fmake_symbol, Fmake_marker, make_uninit_string, Fgarbage_collect): Use xmalloc instead of malloc; don't bother to check if out of memory here. (Fgarbage_collect): Call xrealloc instead of realloc. * buffer.c: Use xmalloc and xfree instead of malloc and free; don't bother to check if out of memory here. (Fget_buffer_create): Put BLOCK_INPUT/UNBLOCK_INPUT pair around calls to ralloc routines. * insdel.c: Same. * lisp.h (xfree): New extern declaration. * xfaces.c (xfree): Don't #define this to be free; use the definition in alloc.c. * dispnew.c, doc.c, doprnt.c, fileio.c, lread.c, term.c, xfns.c, xmenu.c, xterm.c: Use xfree instead of free. * hftctl.c: Use xfree and xmalloc instead of free and malloc. * keymap.c (current_minor_maps): BLOCK_INPUT while calling realloc and malloc. * search.c: Since the regexp routines can malloc, BLOCK_INPUT while runing them. #include blockinput.h. * sysdep.c: #include blockinput.h. Call xfree and xmalloc instead of free and malloc. BLOCK_INPUT around routines which we know will call malloc. ymakefile (keyboard.o, keymap.o, search.o, sysdep.o, xfaces.o, xfns.o, xmenu.o, xterm.o, xselect.o, alloc.o, eval.o): Note that these depend on blockinput.h.
* Rename int-to-string to number-to-string, since it can handleJim Blandy1993-03-301-1/+1
| | | | | | | | | | | | floating-point as well as integer arguments. subr.el defines the former as an alias for the latter. * data.c (Fnumber_to_string): Renamed from Fint_to_string. (wrong_type_argument): Adjust caller. (syms_of_data): Adjust defsubr. * fns.c (concat): Adjust caller. * lisp.h (Fnumber_to_string): Adjust extern declaration. * mocklisp.c (Finsert_string): Adjust caller. * process.c (status_message): Adjust caller.
* * emacs.c (Finvocation_name): New function.Jim Blandy1993-03-201-0/+1
| | | | | | | | | | | | | | | | | | (Vinvocation_name): New variable. (init_cmdargs): Set it. (syms_of_emacs): defsubr Finvocation_name, staticpro and initialize Vinvocation_name. * lisp.h (Vinvocation_name): New extern declaration. * xterm.c (invocation_name): Variable deleted; use Vinvocation_name now. (x_text_icon, x_term_init): Use Vinvocation_name now instead of invocation_name. (x_term_init): Don't initialize invocation_name. (syms_of_xterm): Don't initialize or staticpro invocation_name. * xfns.c (invocation_name): Remove extern declaration for this. [HAVE_X11] (Fx_get_resource): Use Vinvocation_name now instead of invocation_name. [not HAVE_X11] (Fx_get_default): Same.
* Rename `live-window-p' to `window-live-p', for consistency withJim Blandy1993-03-161-2/+2
| | | | | | | `frame-live-p'. * window.c (Fwindow_live_p): Renamed from Flive_window_p. * lisp.h (CHECK_LIVE_WINDOW): Change to use Qwindow_live_p. (Qwindow_live_p): Extern declaration renamed fom Qlive_window_p.
* (INTEGERP, SYMBOLP, MARKERP, STRINGP, VECTORP): New macros.Richard M. Stallman1993-03-151-1/+14
| | | | | (COMPILEDP, BUFFERP, SUBRP, PROCESSP, FRAMEP, WINDOWP): New macros. (WINDOW_CONFIGURATIONP, FLOATP): New macros.
* (Qrange_error, Qdomain_error, Qsingularity_error):Richard M. Stallman1993-03-121-0/+3
| | | | (Qoverflow_error, Qunderflow_error): New vars.
* (CHAR_META, CHAR_SHIFT, CHAR_CTL): New macros.Richard M. Stallman1993-03-051-1/+7
|
* Use the term `scroll bar', instead of `scrollbar'.Jim Blandy1993-03-021-5/+7
| | | | | | | | | | | | | | * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h, lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c, xterm.c, xterm.h: Terminology changed. * xterm.c (x_window_to_scrollbar, x_scrollbar_expose, x_scrollbar_handle_click, x_scrollbar_note_movement): Remember that these can be called during GC; we have to ignore mark bits. * lisp.h (GC_NILP, GC_EQ): New macros to help with that. * lisp.h (RETURN_UNGCPRO): Remove "do ... while (0)" wrapper around macro.