Juanma Barranquero
1d632ccfe8
(Fcatch): Doc fix.
2006-11-01 20:23:44 +00:00
Stefan Monnier
b70e1a2bdc
Include xterm.h for x_fully_uncatch_errors and friends.
2006-10-10 14:39:23 +00:00
Richard M. Stallman
d799329b41
(find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
2006-09-08 12:12:39 +00:00
Eli Zaretskii
eaa1e5ed0f
(apply1, call2) [__GNUC__]: Declare with `__attribute__((noinline))'.
2006-09-02 13:40:16 +00:00
Dan Nicolaescu
2381d38d0a
* ebrowse.c (usage, version): Mark as NO_RETURN.
...
* emacsclient.c (print_help_and_exit): Likewise.
* xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
* textprop.c (text_read_only): Likewise.
* lread.c (end_of_file_error): Likewise.
* lisp.h (circular_list_error, memory_full, buffer_memory_full):
Likewise.
* eval.c (unwind_to_catch): Likewise.
* buffer.h (buffer_slot_type_mismatch): Likewise.
2006-07-18 16:33:45 +00:00
Kim F. Storm
734d55a2bd
* eval.c (xsignal): New func. Like Fsignal, but marked no-return.
...
(xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
(signal_error): New no-return function (from xfaces.c).
(Fthrow): Use xsignal2 instead of Fsignal + abort.
(error): Use xsignal1 instead of Fsignal + abort.
(FletX, Flet, grow_specpdl): Use signal_error.
(Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
* xfaces.c (signal_error): Move to eval.c.
(resolve_face_name): Use xsignal1.
2006-07-18 13:26:38 +00:00
Kim F. Storm
8788120ff4
(Fthrow): Remove loop around Fsignal.
...
(Feval, Fapply, Ffuncall): Optimize for no function indirection.
Use original function name in all signaled errors.
Simplify Fsignal calls (no return).
(funcall_lambda): Simplify Fsignal calls (no return).
2006-07-13 13:43:50 +00:00
Richard M. Stallman
e102f0d8c4
(Fdefvaralias): Doc fix.
2006-07-03 15:41:26 +00:00
Richard M. Stallman
873759d5d8
(Fdefconst): Mark variable as risky.
2006-06-13 23:09:17 +00:00
Thien-Thi Nguyen
6588243de7
Comment munging wrt max-specpdl-size; nfc.
2006-04-18 21:00:44 +00:00
Eli Zaretskii
a2a103bbe1
(unwind_to_catch): Call x_fully_uncatch_errors only if HAVE_X_WINDOWS.
...
(internal_condition_case, internal_condition_case_1)
(internal_condition_case_2): Call x_catching_errors only if HAVE_X_WINDOWS.
2006-03-11 16:00:50 +00:00
Richard M. Stallman
88019a6328
(unwind_to_catch): Call x_fully_uncatch_errors.
...
(internal_condition_case_1, internal_condition_case_2):
Abort if within unclosed x_catch_errors.
2006-03-11 15:19:31 +00:00
Luc Teirlinck
ab83782857
(specpdl_ptr): Remove volatile qualifier for consistency with lisp.h.
2006-02-26 18:08:02 +00:00
Chong Yidong
9ba8e10d99
* xterm.h (x_catch_errors) Return value changed to void.
...
(x_uncatch_errors): Unused count argument deleted.
* xterm.c (x_catch_errors): Don't use record_unwind_protect, since
it can be called in a signal handler.
(x_catch_errors_unwind): Function deleted.
(x_uncatch_errors): Deallocate last x_error_message_stack struct.
(x_check_errors): Call x_uncatch_errors before signalling error.
(x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
(x_connection_closed, x_list_fonts): Use new versions of
x_catch_errors and x_uncatch_errors.
* xselect.c (x_own_selection, x_decline_selection_request)
(x_reply_selection_request, x_get_foreign_selection)
(Fx_get_atom_name, Fx_send_client_event): Likewise.
* xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
Likewise.
* eval.c (record_unwind_protect): Add an assertion.
2006-02-25 23:20:10 +00:00
Kim F. Storm
a7f96a358b
* data.c (Findirect_function): Add NOERROR arg. All callers changed
...
to pass Qnil for NOERROR.
* keymap.c (current_minor_maps_error): Remove.
(current_minor_maps): Pass Qt for NOERROR to Findirect_function
instead of using internal_condition_case_1+current_minor_maps_error.
2006-02-10 00:00:31 +00:00
Thien-Thi Nguyen
aaef169dc6
Update years in copyright notice; nfc.
2006-02-06 15:23:23 +00:00
Richard M. Stallman
fe5195e82e
(do_autoload): Ignore elements of Vautoload_queue where car is not symbol.
2005-12-28 02:09:45 +00:00
Richard M. Stallman
47b82df943
(un_autoload): Expect (0 . OFEATURES) in Vautoload_queue to undo a `provide'.
2005-12-26 04:46:06 +00:00
Richard M. Stallman
ee830945cc
(internal_lisp_condition_case): New function.
...
(Fcondition_case): Use internal_lisp_condition_case.
(Feval): Test Vmemory_full and memory_full_cons_threshold.
(Ffuncall): Likewise.
2005-10-29 19:34:12 +00:00
Thien-Thi Nguyen
0b5538bd85
Update years in copyright notice; nfc.
2005-08-07 12:33:19 +00:00
Stefan Monnier
1c9916a1f9
(Fdefvar): Allow (defvar enable-multibyte-characters).
2005-07-26 16:28:44 +00:00
Richard M. Stallman
8f6bda75fb
(Feval, Ffuncall): Test gc_cons_threshold and
...
gc_relative_threshold, one by one.
2005-07-23 19:09:09 +00:00
Andreas Schwab
538f78c3a8
(restore_stack_limits): Return a value.
2005-07-21 15:03:51 +00:00
Juanma Barranquero
2935784733
(Fdefvar): Doc fix.
2005-07-20 15:51:52 +00:00
Juanma Barranquero
82fc29a186
(Fprog2, Fcalled_interactively_p), (syms_of_eval) <debug-on-quit>: Doc fixes.
...
(Finteractive_p), (syms_of_eval) <max-specpdl-size>: Fix typos in docstrings.
2005-07-19 11:34:17 +00:00
Stefan Monnier
856163dbe8
(Feval, Ffuncall): Use gc_cons_combined_threshold.
2005-07-13 05:31:35 +00:00
Richard M. Stallman
ed6cefb42c
(Fdefvar): Allow defvaring a constant to itself quoted.
2005-07-09 03:42:43 +00:00
Lute Kamstra
4fc5845fe8
Update FSF's address.
2005-07-04 16:49:24 +00:00
Juanma Barranquero
606cdb8902
(user_variable_p_eh): New function.
...
(Fuser_variable_p): Use it. Clarify docstring.
Return t for aliases of user options, nil for alias loops.
2005-06-29 02:08:32 +00:00
Richard M. Stallman
3a1f1d792b
(Fdefvar): Improve error message.
2005-06-28 02:27:46 +00:00
Juanma Barranquero
69410484f2
(Fdefvar): Don't try to set constant symbols.
2005-06-27 06:00:54 +00:00
Richard M. Stallman
9f5903bb77
(call_debugger): Take full care of extending stack limits
...
to make space for the debugger, and restore the change afterward.
Bind debug-on-error to nil.
(restore_stack_limits): New subroutine.
(Fsignal): Extend specpdl bound along with eval depth bound,
for calling edebug. Don't do either one, for calling debugger.
(find_handler_clause): Don't bind debug-on-error here.
Don't unbind anything either.
Temporarily advance max_specpdl_size for calling
internal_with_output_to_temp_buffer.
(grow_specpdl): Don't alter max_specpdl_size before signaling an error.
(syms_of_eval) <max-specpdl-size>: Doc fix.
2005-06-25 14:37:47 +00:00
Juanma Barranquero
921baa95ba
(Fdefvar, Fdefconst, Feval, Ffuncall): Follow error conventions.
2005-06-23 16:07:51 +00:00
Juanma Barranquero
4a9308b8e2
(Fdefvaralias): Rename arguments SYMBOL and ALIASED to NEW-ALIAS and
...
BASE-VARIABLE, respectively.
2005-06-14 00:39:32 +00:00
Kim F. Storm
89f2614d96
* composite.c (compose_chars_in_text):
...
* eval.c (do_autoload):
* macmenu.c (set_frame_menubar):
* process.c (read_process_output, exec_sentinel):
* xmenu.c (set_frame_menubar):
* xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
* w32menu.c (set_frame_menubar):
Use record_unwind_save_match_data.
Rename restore_match_data to restore_search_regs.
2005-06-08 22:33:36 +00:00
Kim F. Storm
5a073f5075
(unbind_to): Preserve value of Vquit_flag.
2005-06-03 23:02:21 +00:00
Lute Kamstra
9f68525868
(Frun_hooks): Mention run-mode-hooks in docstring.
2005-05-26 09:32:15 +00:00
Luc Teirlinck
bd81fcf8db
(Fdefvaralias): Remove any pre-existing variable-documentation
...
property of the alias.
2005-05-08 16:30:13 +00:00
Luc Teirlinck
b0c68b63ae
(Fdefvaralias): Doc fix.
2005-05-05 22:40:56 +00:00
Lute Kamstra
f4cfd81af9
(do_autoload): Record only autoloads in the autoload property of symbols.
2005-04-28 08:38:35 +00:00
Kim F. Storm
fff3ff9c18
(Ffuncall): Always call CHECK_CONS_LIST on entry.
...
Call it again after autoload.
2005-04-03 22:08:58 +00:00
Richard M. Stallman
c1788fbc8b
(unwind_to_catch): Use UNBLOCK_INPUT_TO.
...
(Feval, Ffuncall): Use CHECK_CONS_LIST.
2005-03-06 16:02:47 +00:00
Richard M. Stallman
d5e2c90c44
(Frun_hook_with_args)
...
(Frun_hook_with_args_until_success)
(Frun_hook_with_args_until_failure): Doc fixes.
2005-02-06 11:23:38 +00:00
Richard M. Stallman
6fd797f5b6
(Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
...
(Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
(Qdefvar): Var deleted.
(syms_of_eval): Don't initialze it.
2004-12-27 16:02:24 +00:00
Richard M. Stallman
69bbd6bd04
(unwind_to_catch): Clear immediate_quit.
2004-12-21 11:33:57 +00:00
Richard M. Stallman
42ed718e49
(syms_of_eval) <quit-flag>: Doc fix.
2004-12-13 19:05:42 +00:00
Stefan Monnier
a4547405f5
(init_eval_once): Increase max_specpdl_size to 1000.
2004-12-07 16:52:18 +00:00
Richard M. Stallman
0b31741cdc
(Fcalled_interactively_p): Don't check INTERACTIVE.
...
(interactive_p): Skip Scalled_interactively_p frames
like Sinteractive_p frames.
2004-12-02 23:36:53 +00:00
Eli Zaretskii
b28d0d9a8f
(Fdefvar): Declare pdl from last change as `volatile' to prevent
...
compiler warnings.
2004-11-26 11:47:20 +00:00
Stefan Monnier
d0bce91e9c
(Fdefvar): Warn when var is let-bound but globally void.
2004-11-22 05:26:50 +00:00