aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-07-23 07:50:27 +0000
committerYAMAMOTO Mitsuharu2005-07-23 07:50:27 +0000
commit99f963e4ea6fa3ca4498731c271d07914e86ea1d (patch)
tree4bc9c4cc1bc6862e57f9dfd799418bc0113f9b76 /src
parent50971a123a9ccca43497c008305de55cb2203fa1 (diff)
downloademacs-99f963e4ea6fa3ca4498731c271d07914e86ea1d.tar.gz
emacs-99f963e4ea6fa3ca4498731c271d07914e86ea1d.zip
(Fx_own_selection_internal): Follow error conventions.
(Fx_get_selection_internal, Fx_selection_owner_p) (Fx_selection_exists_p): Doc fixes. (syms_of_macselect) <selection-converter-alist>: Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog36
-rw-r--r--src/macselect.c12
2 files changed, 42 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 97b29b8cb6a..1a08ec8c81e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,39 @@
12005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * mac.c: Don't include stdlib.h or string.h.
4 (Fdo_applescript, Fmac_file_name_to_posix)
5 (Fmac_file_name_to_posix): Doc fixes.
6 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
7 (Fmac_code_convert_string): Likewise.
8 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
9 if the executable is not contained in a bundle.
10
11 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
12 (gray_width, gray_height): Remove defines.
13 (gray_bits, gray_bitmap_width, gray_bitmap_height)
14 (gray_bitmap_bits): Remove variables.
15 (lispy_function_keys): Remove extern.
16 (free_frame_menubar): Add extern.
17 (x_window_to_frame): Remove function.
18 (unwind_create_tip_frame): Add declaration.
19 (x_set_name_internal): New function.
20 (x_set_name, x_set_title): Use it.
21 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
22 (Fx_display_pixel_height, Fx_display_planes)
23 (Fx_display_color_cells, Fx_server_max_request_size)
24 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25 (Fx_display_mm_height, Fx_display_mm_width)
26 (Fx_display_backing_store, Fx_display_visual_class)
27 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
28
29 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
30
31 * macselect.c (Fx_own_selection_internal): Follow error
32 conventions.
33 (Fx_get_selection_internal, Fx_selection_owner_p)
34 (Fx_selection_exists_p): Doc fixes.
35 (syms_of_macselect) <selection-converter-alist>: Likewise.
36
12005-07-21 Juanma Barranquero <lekktu@gmail.com> 372005-07-21 Juanma Barranquero <lekktu@gmail.com>
2 38
3 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix. 39 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
diff --git a/src/macselect.c b/src/macselect.c
index 94fe591a206..63221ba3a90 100644
--- a/src/macselect.c
+++ b/src/macselect.c
@@ -712,7 +712,7 @@ anything that the functions on `selection-converter-alist' know about. */)
712{ 712{
713 check_mac (); 713 check_mac ();
714 CHECK_SYMBOL (selection_name); 714 CHECK_SYMBOL (selection_name);
715 if (NILP (selection_value)) error ("selection-value may not be nil"); 715 if (NILP (selection_value)) error ("SELECTION-VALUE may not be nil");
716 x_own_selection (selection_name, selection_value); 716 x_own_selection (selection_name, selection_value);
717 return selection_value; 717 return selection_value;
718} 718}
@@ -724,11 +724,11 @@ anything that the functions on `selection-converter-alist' know about. */)
724 724
725DEFUN ("x-get-selection-internal", Fx_get_selection_internal, 725DEFUN ("x-get-selection-internal", Fx_get_selection_internal,
726 Sx_get_selection_internal, 2, 3, 0, 726 Sx_get_selection_internal, 2, 3, 0,
727 doc: /* Return text selected from some Mac window. 727 doc: /* Return text selected from some Mac application.
728SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. 728SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
729TYPE is the type of data desired, typically `STRING'. 729TYPE is the type of data desired, typically `STRING'.
730TIME_STAMP is ignored on Mac. */) 730TIME_STAMP is ignored on Mac. */)
731 (selection_symbol, target_type, time_stamp) 731 (selection_symbol, target_type, time_stamp)
732 Lisp_Object selection_symbol, target_type, time_stamp; 732 Lisp_Object selection_symbol, target_type, time_stamp;
733{ 733{
734 Lisp_Object val = Qnil; 734 Lisp_Object val = Qnil;
@@ -821,7 +821,7 @@ Disowning it means there is no such selection. */)
821 821
822DEFUN ("x-selection-owner-p", Fx_selection_owner_p, Sx_selection_owner_p, 822DEFUN ("x-selection-owner-p", Fx_selection_owner_p, Sx_selection_owner_p,
823 0, 1, 0, 823 0, 1, 0,
824 doc: /* Whether the current Emacs process owns the given Selection. 824 doc: /* Whether the current Emacs process owns the given SELECTION.
825The arg should be the name of the selection in question, typically one of 825The arg should be the name of the selection in question, typically one of
826the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'. 826the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
827For convenience, the symbol nil is the same as `PRIMARY', 827For convenience, the symbol nil is the same as `PRIMARY',
@@ -866,7 +866,7 @@ and t is the same as `SECONDARY'. */)
866 866
867DEFUN ("x-selection-exists-p", Fx_selection_exists_p, Sx_selection_exists_p, 867DEFUN ("x-selection-exists-p", Fx_selection_exists_p, Sx_selection_exists_p,
868 0, 1, 0, 868 0, 1, 0,
869 doc: /* Whether there is an owner for the given Selection. 869 doc: /* Whether there is an owner for the given SELECTION.
870The arg should be the name of the selection in question, typically one of 870The arg should be the name of the selection in question, typically one of
871the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'. 871the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
872For convenience, the symbol nil is the same as `PRIMARY', 872For convenience, the symbol nil is the same as `PRIMARY',
@@ -1077,7 +1077,7 @@ a desired type to which the selection should be converted;
1077and the local selection value (whatever was given to `x-own-selection'). 1077and the local selection value (whatever was given to `x-own-selection').
1078 1078
1079The function should return the value to send to the Scrap Manager 1079The function should return the value to send to the Scrap Manager
1080\(a string). A return value of nil 1080\(must be a string). A return value of nil
1081means that the conversion could not be done. 1081means that the conversion could not be done.
1082A return value which is the symbol `NULL' 1082A return value which is the symbol `NULL'
1083means that a side-effect was executed, 1083means that a side-effect was executed,