1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00
Commit graph

172 commits

Author SHA1 Message Date
Miles Bader
0896d93184 Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 84-87)

   - Update from CVS
   - Change capitalization of VC backend names for new backends

2007-08-02  Richard M. Stallman  <rms@gnu.org>

   * lisp/mail/rmailsum.el (rmail-make-summary-line): Find end of msg number
   to update deleted flag.

   * lisp/cus-edit.el (customize-apropos, customize-apropos-options)
   (customize-apropos-faces, customize-apropos-groups): Improve prompt.

   * lisp/menu-bar.el (menu-bar-help-menu): Add "About GNU" menu item.

   * lisp/startup.el (fancy-splash-head, startup-echo-area-message):
   Change message text.

   * lisp/emulation/tpu-edt.el (next-line-internal): Setting deleted.
   All callers use line-move.

   * lisp/progmodes/compile.el (compilation-find-buffer): Return current
   buffer immediately if suitable.
   (compile, compilation-buffer-name, compilation-start): Doc fixes.

2007-07-31  Daiki Ueno  <ueno@unixuser.org>

   * lisp/faces.el (face-normalize-spec): New function.
   (frame-set-background-mode): Normalize face-spec before calling
   face-spec-match-p.

2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>

   * lisp/server.el (server-window): Add switch-to-buffer-other-frame option.

2007-08-03  Richard M. Stallman  <rms@gnu.org>

   * src/fileio.c (Fvisited_file_modtime): Use make_time.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-844
2007-08-03 05:49:59 +00:00
Richard M. Stallman
1ad08acd2b Comment change. 2007-08-03 03:38:24 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
684d6f5bcc Switch license to GPLv3 or later. 2007-07-25 05:19:07 +00:00
Juanma Barranquero
8b3ad11270 (Fx_get_atom_name): Use empty_unibyte_string. 2007-06-08 20:07:10 +00:00
Kenichi Handa
99c9e94c87 (Vselection_coding_system): Documentation improved. 2007-03-06 06:11:01 +00:00
Glenn Morris
4e6835dbc4 Add 2007 to copyright years. 2007-01-21 04:57:37 +00:00
Juanma Barranquero
db9cd97ad4 Space/tab mixup. 2006-11-24 10:31:26 +00:00
Romain Francoise
0924e3f6e1 (selection-coding-system): Fix docstring. 2006-11-12 09:55:37 +00:00
Jan Djärv
866f85184a * xselect.c (x_handle_selection_request): If the converted_selection
is NIL or XCDR (converted_selection) is NIL, decline the request.
2006-10-19 07:17:42 +00:00
Jan Djärv
9fc68699c6 * xselect.c (Fx_register_dnd_atom): New function.
(syms_of_xselect): Defsubr it.
 (x_handle_dnd_message): Check that message_type is in
 dpyinfo->x_dnd_atoms before generating lisp event.
2006-08-11 07:30:14 +00:00
Kim F. Storm
4d30ce50e9 (x_get_local_selection, copy_multiple_data)
(x_get_window_property_as_lisp_data)
(lisp_data_to_selection_data, CHECK_CUT_BUFFER)
(Fx_get_cut_buffer_internal): Use signal_error.
2006-07-18 13:30:20 +00:00
Andreas Schwab
6f10509cf6 (x_catch_errors_unwind): Fix missing return value. 2006-03-05 10:46:41 +00:00
Chong Yidong
c525d842f8 * xselect.c (x_catch_errors_unwind): New function.
(x_reply_selection_request): Put x_uncatch_errors in an unwind.
	(Fx_get_atom_name): Call x_uncatch_errors earlier.

	* window.c (Qscroll_up, Qscroll_down): New syms.
	(window_scroll_pixel_based): Make preserve_y static to avoid
	getting point stuck when scrolling 1 line.
2006-02-28 14:52:46 +00:00
Chong Yidong
4545fa2085 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary
argument.

	* xterm.c: (x_load_font, x_term_init, XTmouse_position)
	(handle_one_xevent, x_connection_closed, x_list_fonts): No arg for
	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.
2006-02-27 03:35:31 +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
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
YAMAMOTO Mitsuharu
862c94ca8e (x_handle_dnd_message): Drag-and-drop items are now
stored in member `args' of struct input_event.
2005-12-19 08:31:33 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Kim F. Storm
76e9c4e8ff (intern): Remove dup. intern and staticpro for QTIMESTAMP. 2005-07-12 13:16:44 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Juanma Barranquero
253b22986e (Fx_own_selection_internal): Follow error conventions. 2005-06-23 16:20:05 +00:00
Juanma Barranquero
6e816df595 (lisp_data_to_selection_data): Fix spelling. 2005-06-17 01:06:04 +00:00
Andreas Schwab
31df61d662 (Fx_disown_selection_internal): Use union of struct
input_event and struct selection_input_event to avoid aliasing
issues.
2005-02-17 12:50:08 +00:00
Kenichi Handa
1bd70c6e1d (lisp_data_to_selection_data): If OBJ is a non-ASCII
multibyte string, signal an error instead of aborting.
2005-02-14 00:59:42 +00:00
Jan Djärv
b8d6f4af97 * xselect.c (selection_data_to_lisp_data): For the special case
type == XA_ATOM, data contains array of int, not array of Atom.
(x_property_data_to_lisp, selection_data_to_lisp_data): Comment
update: data must be array of int for format == 32.
2005-02-08 21:27:01 +00:00
Jan Djärv
e22cf39c66 * xselect.c (x_reply_selection_request): Pass long array to
XChangeProperty so that 64 bit longs are handeled correctly.
(x_get_window_property): If format is 32 and long is bigger than 32
bits convert data from XGetWindowProperty from long array to int array.
(lisp_data_to_selection_data): When the input is a vector and the
format is 32, allocate a long array even if long is bigger than 32 bits.
(x_fill_property_data): Use char, short and long as the man page
for XChangeProperty specifies.  This way the data returned is OK for
both 32 and 64 bit machines.
(x_handle_dnd_message): Calculate size correctly even for 64 bit
machines.
(Fx_send_client_event): Undo change from 2005-02-05,
x_fill_property_data now handles that case.
2005-02-07 19:59:36 +00:00
Jan Djärv
31f16913d7 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
the longs in a XClientMessageEvent correctly when long is 64 bits.
2005-02-05 16:41:38 +00:00
Jan Djärv
ff59904afe * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
(xg_tool_bar_callback, xg_tool_bar_help_callback)
(update_frame_tool_bar): Cast to EMACS_INT to avoid compiler
warning.

* xselect.c (x_get_foreign_selection, x_fill_property_data)
(Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
XFLOAT_DATA to get extract number from Lisp object.
2005-01-07 16:59:57 +00:00
Kenichi Handa
3f6b532c90 (Fx_get_cut_buffer_internal): Return a unibyte string. 2004-12-22 06:32:30 +00:00
Kim F. Storm
678b3958be Include <sys/types.h> and <unistd.h> (for getpid).
Fix various comments referring to XEvents instead of input events.
(x_queue_event): Fix format strings.
(x_stop_queuing_selection_requests): Likewise.
2004-11-09 13:26:58 +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
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
Stefan Monnier
c917a8de07 (Vx_lost_selection_functions, Vx_sent_selection_functions):
Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
(x_handle_selection_request, x_handle_selection_clear)
(x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
2004-10-28 23:28:20 +00:00
Jan Djärv
0608b1a02e Must BLOCK/UNBLOCK around x_uncatch_errors. 2004-09-10 18:56:29 +00:00
Jan Djärv
844fc08505 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
x_uncatch_errors so that possible protocol errors are delivered.
2004-09-10 18:04:19 +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
Kim F. Storm
a0ecb2ac8e Update copyright. 2004-06-16 15:10:55 +00:00
Stefan Monnier
d2f1499943 Lisp_Object/int mixup. 2004-02-16 04:53:28 +00:00
Jan Djärv
3a42401d9d * xselect.c (x_get_foreign_selection): Add new optional parameter
time_stamp.
(Fx_get_selection_internal): Ditto, pass time_stamp to
x_get_foreign_selection.
2004-02-10 17:19:14 +00:00
Jan Djärv
5b698285fa * xselect.c: Include stdio,h. 2004-02-05 02:42:14 +00:00
Jan Djärv
1fb3821bbd * xselect.c: Include termhooks.h and X11/Xproto.h
(x_check_property_data, x_fill_property_data)
(x_property_data_to_lisp, mouse_position_for_drop)
(Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
(Fx_send_client_event): Moved here from xfns.c.
(syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
2004-02-03 16:34:57 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Kenichi Handa
e57ad4d894 Don't include cahrset.h, coding.h, composite.h.
(Qforeign_selection): New variable.
(syms_of_xselect): Intern and static it.
(selection_data_to_lisp_data): Return a unibyte string made from
data with `foreign-selection' text property.
2003-06-17 10:51:11 +00:00
Richard M. Stallman
4f06187ff2 (x_handle_selection_request): Move UNGCPRO to very end. 2003-04-06 20:35:06 +00:00
Andreas Schwab
2f51feb82d (selection_data_to_lisp_data): Use int instead of
long for an integer of size 4.
2003-03-12 23:48:40 +00:00
Richard M. Stallman
ceabd2726c Comment change. 2003-01-06 01:10:25 +00:00
Juanma Barranquero
f8f8d46438 (syms_of_xselect): Fix spacing. 2002-09-06 09:05:22 +00:00
Kenichi Handa
5109c8dd99 (QUTF8_STRING): New variable.
(symbol_to_x_atom): Pay attention to QUTF8_STRING.
(x_atom_to_symbol): Likewise.
(x_get_local_selection): New argument local_request.  If it is
nonzero, call handler_fn with the second arg nil.
(x_handle_selection_request): Call x_get_local_selection with
local_request 0.
(lisp_data_to_selection_data): Don't encode the string here.
(Fx_get_selection_internal): Call x_get_local_selection with
local_request 1.
(syms_of_xselect): Intern and staticpro QUTF8_STRING.
2002-08-14 00:58:39 +00:00