Commit graph

18773 commits

Author SHA1 Message Date
Kim F. Storm
c069fee4e7 (print_object): Print Lisp_Misc_Save_Value objects. 2004-11-05 22:46:17 +00:00
Kim F. Storm
a849088643 *** empty log message *** 2004-11-05 22:45:54 +00:00
Kim F. Storm
d4a42098b2 (Ffile_modes): Doc fix.
(auto_save_1): Check for Ffile_modes nil value.
2004-11-05 12:33:07 +00:00
Kim F. Storm
cc68f410e5 (x_start_queuing_selection_requests)
(x_stop_queuing_selection_requests, x_handle_selection_request)
(x_handle_selection_clear): Remove prototypes.
(x_handle_selection_event): Add prototype.
2004-11-05 11:31:03 +00:00
Kim F. Storm
958f04e8f0 * xterm.c (handle_one_xevent): Don't queue X selection events
here, it may be too late if we start queuing after we have already
stored some selection events into the kbd buffer.
(struct selection_event_queue, queue, x_queue_selection_requests)
(x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
(x_stop_queuing_selection_requests): Remove/move to xselect.c.
(x_catch_errors_unwind): Block input around final XSync.
2004-11-05 11:30:44 +00:00
Kim F. Storm
dd0fe424b2 * xselect.c (struct selection_event_queue, selection_queue)
(x_queue_selection_requests, x_queue_event)
(x_start_queuing_selection_requests)
(x_stop_queuing_selection_requests): Add new queue for selection
input events to replace previous XEvent queue in xterm.c.
(queue_selection_requests_unwind): Adapt to new queue.
(x_reply_selection_request): Adapt to new queue.  Unexpect
wait_object in case of x errors (memory leak).
(x_handle_selection_request, x_handle_selection_clear): Make static.
(x_handle_selection_event): New function.  May queue selection events.
(wait_for_property_change_unwind): Use save_value instead of cons.
Clear property_change_reply_object.
(wait_for_property_change): Abort if already waiting.
Use save_value instead of cons for unwind data.
(x_handle_property_notify): Skip events already arrived, but don't
free them, as "arrived" field is checked by wait_for_property_change,
and it will be freed by unwind or explicit unexpect_property_change.
(x_get_foreign_selection): Add to new queue.
(receive_incremental_selection): Don't unexpect wait_object when done
as it has already been freed by previous wait_for_property_change.
2004-11-05 11:30:31 +00:00
Kim F. Storm
87d78665be (kbd_buffer_unget_event): Add prototype. 2004-11-05 11:30:12 +00:00
Kim F. Storm
e3f6e7c7d0 (kbd_buffer_store_event_hold): Remove obsolete code.
(kbd_buffer_unget_event): New function.
(kbd_buffer_get_event, swallow_events): Combine SELECTION events
and use x_handle_selection_event.
(mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
2004-11-05 11:30:01 +00:00
Kim F. Storm
36a2b04c38 *** empty log message *** 2004-11-05 11:05:08 +00:00
Jan Djärv
9c3ad9e13b * xselect.c (TRACE3): New debug macro.
(x_reply_selection_request): Use it.
(receive_incremental_selection): In call to TRACE0, the name of
a symbol is in xname.
2004-11-05 07:05:13 +00:00
Kim F. Storm
6cc06608ad (fontset_pattern_regexp): Use unsigned char. 2004-11-04 23:12:33 +00:00
Kim F. Storm
a33b89de67 *** empty log message *** 2004-11-04 23:08:07 +00:00
Jan Djärv
88208bb85c * fileio.c (Fnext_read_file_uses_dialog_p): New function. 2004-11-04 15:19:49 +00:00
Jan Djärv
0a4f23f30e * gtkutil.h: Declare use_old_gtk_file_dialog.
* gtkutil.c: Make use_old_gtk_file_dialog non-static.
(xg_initialize): Moved DEFVAR_BOOL for use_old_gtk_file_dialog ...
* xfns.c (syms_of_xfns): ... to here.
2004-11-04 15:05:27 +00:00
Jan Djärv
a872928c52 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
it doesn't start with /.
2004-11-04 14:18:22 +00:00
Richard M. Stallman
89bf74f828 Comment change. 2004-11-04 10:04:16 +00:00
Kenichi Handa
b912921c67 (fontset_pattern_regexp): If '*' is preceded by '\',
treat it as a literal character.
2004-11-04 02:28:51 +00:00
Kim F. Storm
decf402014 (ppt): New function. 2004-11-03 12:49:39 +00:00
Kim F. Storm
c524d9a6da *** empty log message *** 2004-11-03 12:49:24 +00:00
Jan Djärv
a11e1dce8f * xterm.c (x_window_to_scroll_bar): Only call
xg_get_scroll_id_for_window if toolkit scroll bars are used.
2004-11-02 16:25:50 +00:00
Jan Djärv
8cfd0f3669 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
of save.
2004-11-02 15:41:38 +00:00
Andreas Schwab
a93563fdf6 (Fscroll_right): Fix last change. 2004-11-02 14:42:40 +00:00
Kim F. Storm
aba637ec5b From: YAMAMOTO Mitsuharu
(Fcall_process): Block input around vfork.
2004-11-02 10:10:35 +00:00
Kim F. Storm
ae8bc416df (callproc.o): Depend on blockinput.h atimer.h systime.h. 2004-11-02 10:09:50 +00:00
Kim F. Storm
2b2d59d8db *** empty log message *** 2004-11-02 10:09:14 +00:00
Kim F. Storm
4b664e7618 (Fcalled_interactively_p): Rename from Fcall_interactive_p.
(syms_of_eval): Defsubr it.
2004-11-02 10:00:14 +00:00
Kim F. Storm
ca28104dfd *** empty log message *** 2004-11-02 09:59:28 +00:00
Kim F. Storm
b6189c3bda Remove (tiny change) comments for people who have signed papers
which covers the change.
2004-11-02 09:52:15 +00:00
Richard M. Stallman
29bb712734 *** empty log message *** 2004-11-02 09:28:48 +00:00
Richard M. Stallman
085db7de2d (replace_range_2): New function. 2004-11-02 09:14:11 +00:00
Richard M. Stallman
5d19ee8aa5 (casify_region): Handle changes in byte-length using replace_range_2. 2004-11-02 09:12:51 +00:00
Richard M. Stallman
37663086b1 (USAGE3): Delete --horizontal-scroll-bars, -hb. 2004-11-02 09:10:13 +00:00
Richard M. Stallman
d41b17ea2f (back_to_previous_visible_line_start):
Subtract 1 from pos when checking previous newline for invisibility.
2004-11-02 09:08:42 +00:00
Richard M. Stallman
dc297565e7 (window_scroll_pixel_based): Update preserve_y for header line if any.
(Fscroll_left, Fscroll_right): Don't call interactive_p;
use a new second argument instead.
2004-11-02 09:06:06 +00:00
Richard M. Stallman
c63df42bfa (Fcall_interactive_p): New function.
(interactive_p): Don't test INTERACTIVE here.
(Finteractive_p): Doc fix.

(Feval): Abort if INPUT_BLOCKED_P.
2004-11-02 08:59:26 +00:00
Jason Rumney
fe4dcb868e Use fast_string_match_ignore_case for comparing font names. 2004-11-02 08:55:10 +00:00
Jason Rumney
a3fe4aaf37 *** empty log message *** 2004-11-02 08:54:05 +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
Jan Djärv
2a00cdb499 * config.in: Rebuild (added HAVE_GTK_FILE_*). 2004-11-02 07:34:28 +00:00
Kim F. Storm
bad49fc7c2 (connect_wait_mask, num_pending_connects): Only
declare and use them if NON_BLOCKING_CONNECT is defined.
(IF_NON_BLOCKING_CONNECT): New helper macro.
(wait_reading_process_output): Only declare and use local vars
Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
(init_process): Initialize them if NON_BLOCKING_CONNECT defined.
2004-11-01 11:04:37 +00:00
Kim F. Storm
f6749d5d75 *** empty log message *** 2004-11-01 11:03:51 +00:00
Jason Rumney
e8ac5d8824 Delete region objects after use. 2004-11-01 08:52:47 +00:00
Jason Rumney
1a99fe1a39 *** empty log message *** 2004-11-01 08:51:57 +00:00
Jan Djärv
495ef86be2 * xmenu.c: Add prototypes for forward function declarations.
(popup_get_selection): Remove parameter do_timers, remove call to
timer_check.
(create_and_show_popup_menu, create_and_show_dialog): Remove
parameter do_timers from call to popup_get_selection.
2004-10-31 15:29:04 +00:00
Jan Djärv
12e6566a25 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
tool_bar_items and assign the result to f->tool_bar_items if
not equal.  Move BLOCK/UNBLOCK_INPUT from around call to
tool_bar_items to assignment of result.
2004-10-31 15:11:31 +00:00
Jan Djärv
fcdb28b473 * atimer.c (alarm_signal_handler): Do not call set_alarm if
pending_atmers is non-zero.
2004-10-31 12:25:46 +00:00
Kim F. Storm
35ec832e63 (margin_glyphs_to_reserve): Don't use ncols_scale_factor. 2004-10-31 00:05:18 +00:00
Kim F. Storm
1a1a0c4c73 *** empty log message *** 2004-10-31 00:04:52 +00:00
John Wiegley
a36f168006 2004-10-28 Will <will@glozer.net>
* macterm.c: allow user to assign key modifiers to the Mac Option
	key via a 'mac-option-modifier' variable.
2004-10-29 00:00:43 +00:00
Stefan Monnier
2d5864780c *** empty log message *** 2004-10-28 23:35:13 +00:00