Commit graph

525 commits

Author SHA1 Message Date
Kim F. Storm
7dfe2054bc (Fsafe_get): EXFUN it. 2005-04-19 08:34:33 +00:00
Kenichi Handa
b80785d3d3 (Vascii_upcase_table, Vascii_canon_table,
Vascii_eqv_table): Extern them.
2005-04-01 01:05:05 +00:00
Stefan Monnier
ddf9883e17 (make_number): Make prototype more precise. 2005-03-24 19:53:53 +00:00
Richard M. Stallman
cdf61d83f4 (CHECK_CONS_LIST): New macro (two definitions). 2005-03-06 16:01:37 +00:00
Kim F. Storm
f9e697040d (pos_visible_p): Fix prototype. 2005-01-22 01:41:59 +00:00
Jan Djärv
a2d5fca044 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
(READABLE_EVENTS_FILTER_EVENTS)
(READABLE_EVENTS_IGNORE_SQUEEZABLES): New flags for readable_events.
get_filtered_input_pending, readable_filtered_events): Removed.
(tracking_off): Call readable_events and get_input_pending with
flag READABLE_EVENTS_DO_TIMERS_NOW.
(readable_events): Move code from old readable_filtered_events here,
but check new READABLE_EVENTS_* in argument flags instead of previous
two boolean arguments do_timers_now and filter_events.
If we are doing mouse tracking and the mouse moved, return only if
READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
(swallow_events): Call get_input_pending with flag
READABLE_EVENTS_DO_TIMERS_NOW.
(get_input_pending): Move code from old   get_filtered_input_pending
here.  Replace boolean arguments do_timers_now, filter_events with
flags, and pass flags to readable_events.  Document new
READABLE_EVENTS_* flags.
(detect_input_pending_ignore_squeezables): New function.
(detect_input_pending_run_timers): Call get_input_pending with flag
READABLE_EVENTS_DO_TIMERS_NOW.
(Finput_pending_p): Call get_input_pending with flags
READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.

* dispnew.c (update_window, update_frame_1): Replace calls to
detect_input_pending with detect_input_pending_ignore_squeezables
so that redisplay is not paused if the event queue contains only
mouse movements.

* lisp.h: Declare detect_input_pending_ignore_squeezables.
2005-01-16 09:17:02 +00:00
Richard M. Stallman
92d2947be4 Comment changes. 2004-12-27 16:05:57 +00:00
Richard M. Stallman
8e43e4b2f9 (Vundo_outer_limit): Fix decl. 2004-12-23 00:15:49 +00:00
Richard M. Stallman
f10fffca3f (truncate_undo_list): Update decl. 2004-12-21 11:32:07 +00:00
Richard M. Stallman
08fdede613 (QUIT): Check for Vthrow_on_input.
(Vthrow_on_input): Declare it.
2004-12-13 18:56:52 +00:00
Jan Djärv
aa477689e5 * gtkutil.c: Include signal.h and syssignal.h.
(xg_get_file_name): Block and unblock __SIGRTMIN if defined.

* alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
new variables main_thread and alloc_mutex,
define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
(UN)BLOCK_INPUT.
(emacs_blocked_free, emacs_blocked_malloc)
(emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
(uninterrupt_malloc): Initialize main_thread and alloc_mutex.
(reset_malloc_hooks): New function.

* lisp.h: Declare reset_malloc_hooks.

* emacs.c (Fdump_emacs): Call reset_malloc_hooks.

* keyboard.c: Conditionally include pthread.h
(handle_async_inpu, input_available_signalt): If not in the main
thread, block signal, send signal to main thread and return.
2004-12-07 08:25:43 +00:00
Andreas Schwab
77ea0764f6 Declare string_to_multibyte. 2004-12-01 14:05:15 +00:00
Kim F. Storm
cdcf58d8eb New defines to enable buffer overrun checking.
(GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
(XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
2004-11-30 00:31:38 +00:00
Eli Zaretskii
9bcc29586f (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN is not defined. 2004-11-27 12:24:40 +00:00
Richard M. Stallman
9e48ae9e5b (Fread_from_minibuffer): Add arg in decl. 2004-11-21 00:28:02 +00:00
Stefan Monnier
3c7a4fa359 (NILP): Use EQ rather than XFASTINT. 2004-11-16 15:32:33 +00:00
Kim F. Storm
479440d29c (Fsafe_plist_get): Add EXFUN. 2004-11-15 15:20:57 +00:00
Kim F. Storm
e870dd8926 (Fdelete): Add EXFUN.
(replace_range_2): Add prototype.
2004-11-09 13:24:07 +00:00
Andreas Schwab
b7f3499735 Declare Fmsdos_downcase_filename. 2004-11-07 11:06:32 +00:00
Jan Djärv
f9d64bb358 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
Fx_file_dialog if only directories should be read.

* lisp.h: Fx_file_dialog takes 5 parameters.

* xfns.c (Fx_file_dialog): Both Motif and GTK version:  Add
parameter only_dir_p.
In Motif version, don't put DEFAULT_FILENAME in filter part of the
dialog, just text field part.  Do not add DEFAULT_FILENAME
to list of files if it isn't there.
In GTK version, pass only_dir_p parameter to xg_get_file_name.

* macfns.c (Fx_file_dialog): Add parameter only_dir_p.  Check
only_dir_p instead of comparing prompt to "Dired".  When using
a save dialog, add option kNavDontConfirmReplacement, change title
to "Enter name", change text for save button to "Ok".

* w32fns.c (Fx_file_dialog): Add parameter only_dir_p.  Check
only_dir_p instead of comparing prompt to "Dired".

* gtkutil.c (xg_get_file_with_chooser)
(xg_get_file_with_selection): New functions, only defined ifdef
HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
respectively.
(xg_get_file_name): Add parameter only_dir_p.
Call xg_get_file_with_chooser or xg_get_file_with_selection
depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
(xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.

* gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
2004-11-02 08:21:16 +00:00
Kim F. Storm
c33188d937 (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
(SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
(SAFE_FREE): Test it to determine if we need to unwind to free.
Remove size arg.  All users changed.
(SAFE_FREE_LISP) Remove.  All users changed to use SAFE_FREE.
2004-10-26 22:37:02 +00:00
Kenichi Handa
a0aa1111d9 (fast_string_match_ignore_case): Extern it. 2004-10-18 12:26:02 +00:00
Kim F. Storm
d64b707cb1 Rename wait_reading_process_input to wait_reading_process_output. 2004-08-20 10:34:12 +00:00
Kim F. Storm
bb41f093dd Adapt to new wait_reading_process_input args. 2004-08-19 13:59:28 +00:00
Andreas Schwab
f81b59a3d4 Declare Finit_image_library. 2004-06-30 13:09:05 +00:00
Kim F. Storm
7f5f601be2 (free_misc): Add prototype. 2004-06-24 22:03:52 +00:00
Kim F. Storm
5f5d6c621a (struct Lisp_Save_Value): New member dogc.
(SAFE_ALLOCA_LISP): Change second arg to number of elements.
Set dogc member in Lisp_Save_Value object so it will be GC'ed.
(SAFE_FREE_LISP): New macro.
2004-06-22 13:57:18 +00:00
Kim F. Storm
a9e6baccec (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
in that memory area are unknown to GC.  Add comments.
2004-06-21 22:35:29 +00:00
Kim F. Storm
79518a8dfa (MAX_ALLOCA): Define here.
(safe_alloca_unwind): Add prototype.
(USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2004-06-21 21:51:18 +00:00
Richard M. Stallman
924ee4e288 (truncate_undo_list): Update decl. 2004-05-29 16:18:41 +00:00
Eli Zaretskii
4d0b9a0a45 (DECL_ALIGN): Remove restriction on MS-DOS systems. 2004-05-18 13:52:57 +00:00
Jason Rumney
f9ed303a2c (egetenv) [USE_CRT_DLL]: Remove condition. 2004-05-17 20:59:46 +00:00
Eli Zaretskii
69536a336f (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
__attribute__((__aligned__)), so that USE_LSB_TAG would not become
defined for the MS-DOS build.
2004-05-15 11:50:50 +00:00
Steven Tamm
a433994a5a Various fixes to support USE_LSB_TAG with carbon emacs. Mostly fixing
prototypes and confusions between pointers and lisp objects
2004-05-14 03:07:12 +00:00
Stefan Monnier
f6c741f942 (USE_LSB_TAG): Make it the default when it is known to work. 2004-05-13 17:12:21 +00:00
Andreas Schwab
453d8ee93f Declare Fmake_symbolic_link. 2004-05-10 11:54:54 +00:00
Andreas Schwab
4435a68af6 (BOOL_VECTOR_BITS_PER_CHAR): Define. 2004-04-26 21:26:17 +00:00
Miles Bader
e32d987200 Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-248
src/lisp.h (CYCLE_CHECK): Macro moved from xfaces.c
2004-04-26 00:21:41 +00:00
Stefan Monnier
e0a583f84a (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
Don't make assumptions about the relative place of i and val.
(EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
2004-04-21 22:41:53 +00:00
Kim F. Storm
b1bd813495 (pos_visible_p): Fix prototype. 2004-04-20 22:17:08 +00:00
Stefan Monnier
c2f562eefa (Finteractive_form): Declare. 2004-03-29 00:48:39 +00:00
Masatake YAMATO
abdb9b8306 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
* buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
* editfns.c (Ftranspose_regions): Likewise.
* lisp.h (top_level): Likewise.
2004-03-25 18:05:29 +00:00
Kim F. Storm
49b2acfd63 Image consolidation:
(syms_of_image, init_image): Add protoypes.
(init_xfns): Remove prototype.
2004-03-11 00:27:33 +00:00
Kim F. Storm
a4d0dc1b24 (mark_window_display_accurate): Remove prototype. 2004-02-28 01:02:35 +00:00
Stefan Monnier
b15aa9f9e8 (union Lisp_Object): Give a more precise type for `type'.
Remove unused `gu' alternative.
2004-02-19 20:25:17 +00:00
Kim F. Storm
d5653b7876 (syms_of_fringe, init_fringe, init_fringe_once):
Add prototypes.
2004-02-08 23:19:48 +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
35d3b513d3 (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well. 2004-01-21 05:24:01 +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