diff options
| author | Karoly Lorentey | 2004-06-03 16:45:20 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-06-03 16:45:20 +0000 |
| commit | bf2d7b586bf6add7527739fcbdc007e921259397 (patch) | |
| tree | acf06ea1cb8dd626d6a1e746f0306e315838a068 /src | |
| parent | 190a56d6e02f134591a9d8861b8c4aa55bbec79b (diff) | |
| parent | 52deb19f2472448f319e96b627bc8d84d86134fe (diff) | |
| download | emacs-bf2d7b586bf6add7527739fcbdc007e921259397.tar.gz emacs-bf2d7b586bf6add7527739fcbdc007e921259397.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-357
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-358
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-359
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-360
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-361
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-362
Support " [...]" style defaults in minibuffer-electric-default-mode
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-363
(read-number): Use canonical format for default in prompt.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-364
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-365
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-184
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 26 | ||||
| -rw-r--r-- | src/eval.c | 6 | ||||
| -rw-r--r-- | src/image.c | 20 | ||||
| -rw-r--r-- | src/mem-limits.h | 6 | ||||
| -rw-r--r-- | src/w32fns.c | 113 |
5 files changed, 105 insertions, 66 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4be50d1108d..fd108641f22 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2004-06-03 Juanma Barranquero <lektu@terra.es> | ||
| 2 | |||
| 3 | * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command) | ||
| 4 | (Vw32_color_map): Fix typo in docstring. | ||
| 5 | (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip) | ||
| 6 | (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key): | ||
| 7 | Make argument names match their use in docstring. | ||
| 8 | |||
| 9 | 2004-06-02 Juanma Barranquero <lektu@terra.es> | ||
| 10 | |||
| 11 | Work around bugs/problems with MinGW builds of graphics libraries | ||
| 12 | called from MSVC builds of Emacs. | ||
| 13 | |||
| 14 | * image.c (lookup_image): Make pointer to img static. | ||
| 15 | (png_read_from_memory): Disable "global" optimization. | ||
| 16 | |||
| 17 | 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 18 | |||
| 19 | * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true. | ||
| 20 | |||
| 1 | 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 21 | 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 22 | ||
| 3 | * macfns.c: Don't include ccl.h. | 23 | * macfns.c: Don't include ccl.h. |
| @@ -13,7 +33,7 @@ | |||
| 13 | (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c. | 33 | (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c. |
| 14 | (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size, | 34 | (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size, |
| 15 | and last_show_tip_args. | 35 | and last_show_tip_args. |
| 16 | 36 | ||
| 17 | * macgui.h [!MAC_OSX]: Include Gestalt.h. | 37 | * macgui.h [!MAC_OSX]: Include Gestalt.h. |
| 18 | (Cursor, No_Cursor): New defines. | 38 | (Cursor, No_Cursor): New defines. |
| 19 | [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility | 39 | [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility |
| @@ -2012,7 +2032,7 @@ | |||
| 2012 | completion-regexp-list. Define Qcase_fold_search and staticpro it. | 2032 | completion-regexp-list. Define Qcase_fold_search and staticpro it. |
| 2013 | (read_minibuf): Fix initial comment. | 2033 | (read_minibuf): Fix initial comment. |
| 2014 | (Ftry_completion, Fall_completions, Ftest_completion): Bind | 2034 | (Ftry_completion, Fall_completions, Ftest_completion): Bind |
| 2015 | case-fold-serach to the value of completion-ignore-case when | 2035 | case-fold-search to the value of completion-ignore-case when |
| 2016 | checking completion-regexp-list. | 2036 | checking completion-regexp-list. |
| 2017 | (Fdisplay_completion_list): Make it handle arguments that are | 2037 | (Fdisplay_completion_list): Make it handle arguments that are |
| 2018 | symbols. Doc fix. | 2038 | symbols. Doc fix. |
| @@ -8620,7 +8640,7 @@ | |||
| 8620 | 8640 | ||
| 8621 | 2002-08-19 Kim F. Storm <storm@cua.dk> | 8641 | 2002-08-19 Kim F. Storm <storm@cua.dk> |
| 8622 | 8642 | ||
| 8623 | * keyboard.c (Fclear_this_command_keys): Added optional arg | 8643 | * keyboard.c (Fclear_this_command_keys): Add optional arg |
| 8624 | KEEP-RECORD to avoid clearing lossage when we just want to clear | 8644 | KEEP-RECORD to avoid clearing lossage when we just want to clear |
| 8625 | the current key sequence (kmacro needs this). | 8645 | the current key sequence (kmacro needs this). |
| 8626 | 8646 | ||
diff --git a/src/eval.c b/src/eval.c index 921a7533a60..e1da1def446 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -1220,7 +1220,7 @@ VAR may be nil; then you do not get access to the signal information. | |||
| 1220 | 1220 | ||
| 1221 | The value of the last BODY form is returned from the condition-case. | 1221 | The value of the last BODY form is returned from the condition-case. |
| 1222 | See also the function `signal' for more info. | 1222 | See also the function `signal' for more info. |
| 1223 | usage: (condition-case VAR BODYFORM HANDLERS...) */) | 1223 | usage: (condition-case VAR BODYFORM &rest HANDLERS) */) |
| 1224 | (args) | 1224 | (args) |
| 1225 | Lisp_Object args; | 1225 | Lisp_Object args; |
| 1226 | { | 1226 | { |
| @@ -1235,10 +1235,10 @@ usage: (condition-case VAR BODYFORM HANDLERS...) */) | |||
| 1235 | handlers = Fcdr (Fcdr (args)); | 1235 | handlers = Fcdr (Fcdr (args)); |
| 1236 | CHECK_SYMBOL (var); | 1236 | CHECK_SYMBOL (var); |
| 1237 | 1237 | ||
| 1238 | for (val = handlers; ! NILP (val); val = Fcdr (val)) | 1238 | for (val = handlers; CONSP (val); val = XCDR (val)) |
| 1239 | { | 1239 | { |
| 1240 | Lisp_Object tem; | 1240 | Lisp_Object tem; |
| 1241 | tem = Fcar (val); | 1241 | tem = XCAR (val); |
| 1242 | if (! (NILP (tem) | 1242 | if (! (NILP (tem) |
| 1243 | || (CONSP (tem) | 1243 | || (CONSP (tem) |
| 1244 | && (SYMBOLP (XCAR (tem)) | 1244 | && (SYMBOLP (XCAR (tem)) |
diff --git a/src/image.c b/src/image.c index 700ab3fa2d9..3c53903b4b4 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -213,7 +213,7 @@ XDestroyImage (ximg) | |||
| 213 | { | 213 | { |
| 214 | UnlockPixels (GetGWorldPixMap (ximg)); | 214 | UnlockPixels (GetGWorldPixMap (ximg)); |
| 215 | } | 215 | } |
| 216 | #endif | 216 | #endif /* MAC_OS */ |
| 217 | 217 | ||
| 218 | 218 | ||
| 219 | /* Functions to access the contents of a bitmap, given an id. */ | 219 | /* Functions to access the contents of a bitmap, given an id. */ |
| @@ -1596,6 +1596,11 @@ lookup_image (f, spec) | |||
| 1596 | Lisp_Object spec; | 1596 | Lisp_Object spec; |
| 1597 | { | 1597 | { |
| 1598 | struct image_cache *c = FRAME_X_IMAGE_CACHE (f); | 1598 | struct image_cache *c = FRAME_X_IMAGE_CACHE (f); |
| 1599 | #ifdef _MSC_VER | ||
| 1600 | /* Work around a problem with MinGW builds of graphics libraries | ||
| 1601 | not honoring calling conventions. */ | ||
| 1602 | static | ||
| 1603 | #endif | ||
| 1599 | struct image *img; | 1604 | struct image *img; |
| 1600 | int i; | 1605 | int i; |
| 1601 | unsigned hash; | 1606 | unsigned hash; |
| @@ -4238,7 +4243,7 @@ xpm_load (f, img) | |||
| 4238 | } | 4243 | } |
| 4239 | 4244 | ||
| 4240 | #endif /* MAC_OS */ | 4245 | #endif /* MAC_OS */ |
| 4241 | 4246 | ||
| 4242 | 4247 | ||
| 4243 | 4248 | ||
| 4244 | /*********************************************************************** | 4249 | /*********************************************************************** |
| @@ -5688,6 +5693,12 @@ struct png_memory_storage | |||
| 5688 | PNG_PTR is a pointer to the PNG control structure. Copy LENGTH | 5693 | PNG_PTR is a pointer to the PNG control structure. Copy LENGTH |
| 5689 | bytes from the input to DATA. */ | 5694 | bytes from the input to DATA. */ |
| 5690 | 5695 | ||
| 5696 | #ifdef _MSC_VER | ||
| 5697 | /* Work around a problem with MinGW builds of graphics libraries | ||
| 5698 | not honoring calling conventions. */ | ||
| 5699 | #pragma optimize("g", off) | ||
| 5700 | #endif | ||
| 5701 | |||
| 5691 | static void | 5702 | static void |
| 5692 | png_read_from_memory (png_ptr, data, length) | 5703 | png_read_from_memory (png_ptr, data, length) |
| 5693 | png_structp png_ptr; | 5704 | png_structp png_ptr; |
| @@ -5704,6 +5715,11 @@ png_read_from_memory (png_ptr, data, length) | |||
| 5704 | tbr->index = tbr->index + length; | 5715 | tbr->index = tbr->index + length; |
| 5705 | } | 5716 | } |
| 5706 | 5717 | ||
| 5718 | #ifdef _MSC_VER | ||
| 5719 | /* Restore normal optimization, as specified on the command line. */ | ||
| 5720 | #pragma optimize("", on) | ||
| 5721 | #endif | ||
| 5722 | |||
| 5707 | /* Load PNG image IMG for use on frame F. Value is non-zero if | 5723 | /* Load PNG image IMG for use on frame F. Value is non-zero if |
| 5708 | successful. */ | 5724 | successful. */ |
| 5709 | 5725 | ||
diff --git a/src/mem-limits.h b/src/mem-limits.h index 578cf59f12e..57a79863a1b 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Includes for memory limit warnings. | 1 | /* Includes for memory limit warnings. |
| 2 | Copyright (C) 1990, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. | 2 | Copyright (C) 1990, 93, 94, 95, 1996, 2004 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -81,7 +81,9 @@ typedef unsigned long SIZE; | |||
| 81 | #define NULL ((POINTER) 0) | 81 | #define NULL ((POINTER) 0) |
| 82 | 82 | ||
| 83 | extern POINTER start_of_data (); | 83 | extern POINTER start_of_data (); |
| 84 | #ifdef DATA_SEG_BITS | 84 | #if defined USE_LSB_TAG |
| 85 | #define EXCEEDS_LISP_PTR(ptr) 0 | ||
| 86 | #elif defined DATA_SEG_BITS | ||
| 85 | #define EXCEEDS_LISP_PTR(ptr) \ | 87 | #define EXCEEDS_LISP_PTR(ptr) \ |
| 86 | (((EMACS_UINT) (ptr) & ~DATA_SEG_BITS) >> VALBITS) | 88 | (((EMACS_UINT) (ptr) & ~DATA_SEG_BITS) >> VALBITS) |
| 87 | #else | 89 | #else |
diff --git a/src/w32fns.c b/src/w32fns.c index c0c66a9591e..e7ead136ced 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Graphical user interface functions for the Microsoft W32 API. | 1 | /* Graphical user interface functions for the Microsoft W32 API. |
| 2 | Copyright (C) 1989, 92, 93, 94, 95, 96, 97, 98, 1999, 2000, 01, 2004 | 2 | Copyright (C) 1989, 1992, 93, 94, 95, 96, 97, 98, 99, 2000, 01, 04 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -4045,15 +4045,15 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, | |||
| 4045 | 1, 1, 0, | 4045 | 1, 1, 0, |
| 4046 | doc: /* Make a new window, which is called a \"frame\" in Emacs terms. | 4046 | doc: /* Make a new window, which is called a \"frame\" in Emacs terms. |
| 4047 | Returns an Emacs frame object. | 4047 | Returns an Emacs frame object. |
| 4048 | ALIST is an alist of frame parameters. | 4048 | PARAMETERS is an alist of frame parameters. |
| 4049 | If the parameters specify that the frame should not have a minibuffer, | 4049 | If the parameters specify that the frame should not have a minibuffer, |
| 4050 | and do not specify a specific minibuffer window to use, | 4050 | and do not specify a specific minibuffer window to use, |
| 4051 | then `default-minibuffer-frame' must be a frame whose minibuffer can | 4051 | then `default-minibuffer-frame' must be a frame whose minibuffer can |
| 4052 | be shared by the new frame. | 4052 | be shared by the new frame. |
| 4053 | 4053 | ||
| 4054 | This function is an internal primitive--use `make-frame' instead. */) | 4054 | This function is an internal primitive--use `make-frame' instead. */) |
| 4055 | (parms) | 4055 | (parameters) |
| 4056 | Lisp_Object parms; | 4056 | Lisp_Object parameters; |
| 4057 | { | 4057 | { |
| 4058 | struct frame *f; | 4058 | struct frame *f; |
| 4059 | Lisp_Object frame, tem; | 4059 | Lisp_Object frame, tem; |
| @@ -4074,7 +4074,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4074 | until we know if this frame has a specified name. */ | 4074 | until we know if this frame has a specified name. */ |
| 4075 | Vx_resource_name = Vinvocation_name; | 4075 | Vx_resource_name = Vinvocation_name; |
| 4076 | 4076 | ||
| 4077 | display = w32_get_arg (parms, Qdisplay, 0, 0, RES_TYPE_STRING); | 4077 | display = w32_get_arg (parameters, Qdisplay, 0, 0, RES_TYPE_STRING); |
| 4078 | if (EQ (display, Qunbound)) | 4078 | if (EQ (display, Qunbound)) |
| 4079 | display = Qnil; | 4079 | display = Qnil; |
| 4080 | dpyinfo = check_x_display_info (display); | 4080 | dpyinfo = check_x_display_info (display); |
| @@ -4084,7 +4084,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4084 | kb = &the_only_kboard; | 4084 | kb = &the_only_kboard; |
| 4085 | #endif | 4085 | #endif |
| 4086 | 4086 | ||
| 4087 | name = w32_get_arg (parms, Qname, "name", "Name", RES_TYPE_STRING); | 4087 | name = w32_get_arg (parameters, Qname, "name", "Name", RES_TYPE_STRING); |
| 4088 | if (!STRINGP (name) | 4088 | if (!STRINGP (name) |
| 4089 | && ! EQ (name, Qunbound) | 4089 | && ! EQ (name, Qunbound) |
| 4090 | && ! NILP (name)) | 4090 | && ! NILP (name)) |
| @@ -4094,7 +4094,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4094 | Vx_resource_name = name; | 4094 | Vx_resource_name = name; |
| 4095 | 4095 | ||
| 4096 | /* See if parent window is specified. */ | 4096 | /* See if parent window is specified. */ |
| 4097 | parent = w32_get_arg (parms, Qparent_id, NULL, NULL, RES_TYPE_NUMBER); | 4097 | parent = w32_get_arg (parameters, Qparent_id, NULL, NULL, RES_TYPE_NUMBER); |
| 4098 | if (EQ (parent, Qunbound)) | 4098 | if (EQ (parent, Qunbound)) |
| 4099 | parent = Qnil; | 4099 | parent = Qnil; |
| 4100 | if (! NILP (parent)) | 4100 | if (! NILP (parent)) |
| @@ -4104,8 +4104,8 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4104 | /* No need to protect DISPLAY because that's not used after passing | 4104 | /* No need to protect DISPLAY because that's not used after passing |
| 4105 | it to make_frame_without_minibuffer. */ | 4105 | it to make_frame_without_minibuffer. */ |
| 4106 | frame = Qnil; | 4106 | frame = Qnil; |
| 4107 | GCPRO4 (parms, parent, name, frame); | 4107 | GCPRO4 (parameters, parent, name, frame); |
| 4108 | tem = w32_get_arg (parms, Qminibuffer, "minibuffer", "Minibuffer", | 4108 | tem = w32_get_arg (parameters, Qminibuffer, "minibuffer", "Minibuffer", |
| 4109 | RES_TYPE_SYMBOL); | 4109 | RES_TYPE_SYMBOL); |
| 4110 | if (EQ (tem, Qnone) || NILP (tem)) | 4110 | if (EQ (tem, Qnone) || NILP (tem)) |
| 4111 | f = make_frame_without_minibuffer (Qnil, kb, display); | 4111 | f = make_frame_without_minibuffer (Qnil, kb, display); |
| @@ -4135,7 +4135,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4135 | record_unwind_protect (unwind_create_frame, frame); | 4135 | record_unwind_protect (unwind_create_frame, frame); |
| 4136 | 4136 | ||
| 4137 | f->icon_name | 4137 | f->icon_name |
| 4138 | = w32_get_arg (parms, Qicon_name, "iconName", "Title", RES_TYPE_STRING); | 4138 | = w32_get_arg (parameters, Qicon_name, "iconName", "Title", RES_TYPE_STRING); |
| 4139 | if (! STRINGP (f->icon_name)) | 4139 | if (! STRINGP (f->icon_name)) |
| 4140 | f->icon_name = Qnil; | 4140 | f->icon_name = Qnil; |
| 4141 | 4141 | ||
| @@ -4177,7 +4177,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4177 | { | 4177 | { |
| 4178 | Lisp_Object font; | 4178 | Lisp_Object font; |
| 4179 | 4179 | ||
| 4180 | font = w32_get_arg (parms, Qfont, "font", "Font", RES_TYPE_STRING); | 4180 | font = w32_get_arg (parameters, Qfont, "font", "Font", RES_TYPE_STRING); |
| 4181 | 4181 | ||
| 4182 | BLOCK_INPUT; | 4182 | BLOCK_INPUT; |
| 4183 | /* First, try whatever font the caller has specified. */ | 4183 | /* First, try whatever font the caller has specified. */ |
| @@ -4201,49 +4201,49 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4201 | if (! STRINGP (font)) | 4201 | if (! STRINGP (font)) |
| 4202 | font = build_string ("Fixedsys"); | 4202 | font = build_string ("Fixedsys"); |
| 4203 | 4203 | ||
| 4204 | x_default_parameter (f, parms, Qfont, font, | 4204 | x_default_parameter (f, parameters, Qfont, font, |
| 4205 | "font", "Font", RES_TYPE_STRING); | 4205 | "font", "Font", RES_TYPE_STRING); |
| 4206 | } | 4206 | } |
| 4207 | 4207 | ||
| 4208 | x_default_parameter (f, parms, Qborder_width, make_number (2), | 4208 | x_default_parameter (f, parameters, Qborder_width, make_number (2), |
| 4209 | "borderWidth", "BorderWidth", RES_TYPE_NUMBER); | 4209 | "borderWidth", "BorderWidth", RES_TYPE_NUMBER); |
| 4210 | /* This defaults to 2 in order to match xterm. We recognize either | 4210 | /* This defaults to 2 in order to match xterm. We recognize either |
| 4211 | internalBorderWidth or internalBorder (which is what xterm calls | 4211 | internalBorderWidth or internalBorder (which is what xterm calls |
| 4212 | it). */ | 4212 | it). */ |
| 4213 | if (NILP (Fassq (Qinternal_border_width, parms))) | 4213 | if (NILP (Fassq (Qinternal_border_width, parameters))) |
| 4214 | { | 4214 | { |
| 4215 | Lisp_Object value; | 4215 | Lisp_Object value; |
| 4216 | 4216 | ||
| 4217 | value = w32_get_arg (parms, Qinternal_border_width, | 4217 | value = w32_get_arg (parameters, Qinternal_border_width, |
| 4218 | "internalBorder", "InternalBorder", RES_TYPE_NUMBER); | 4218 | "internalBorder", "InternalBorder", RES_TYPE_NUMBER); |
| 4219 | if (! EQ (value, Qunbound)) | 4219 | if (! EQ (value, Qunbound)) |
| 4220 | parms = Fcons (Fcons (Qinternal_border_width, value), | 4220 | parameters = Fcons (Fcons (Qinternal_border_width, value), |
| 4221 | parms); | 4221 | parameters); |
| 4222 | } | 4222 | } |
| 4223 | /* Default internalBorderWidth to 0 on Windows to match other programs. */ | 4223 | /* Default internalBorderWidth to 0 on Windows to match other programs. */ |
| 4224 | x_default_parameter (f, parms, Qinternal_border_width, make_number (0), | 4224 | x_default_parameter (f, parameters, Qinternal_border_width, make_number (0), |
| 4225 | "internalBorderWidth", "InternalBorder", RES_TYPE_NUMBER); | 4225 | "internalBorderWidth", "InternalBorder", RES_TYPE_NUMBER); |
| 4226 | x_default_parameter (f, parms, Qvertical_scroll_bars, Qright, | 4226 | x_default_parameter (f, parameters, Qvertical_scroll_bars, Qright, |
| 4227 | "verticalScrollBars", "ScrollBars", RES_TYPE_SYMBOL); | 4227 | "verticalScrollBars", "ScrollBars", RES_TYPE_SYMBOL); |
| 4228 | 4228 | ||
| 4229 | /* Also do the stuff which must be set before the window exists. */ | 4229 | /* Also do the stuff which must be set before the window exists. */ |
| 4230 | x_default_parameter (f, parms, Qforeground_color, build_string ("black"), | 4230 | x_default_parameter (f, parameters, Qforeground_color, build_string ("black"), |
| 4231 | "foreground", "Foreground", RES_TYPE_STRING); | 4231 | "foreground", "Foreground", RES_TYPE_STRING); |
| 4232 | x_default_parameter (f, parms, Qbackground_color, build_string ("white"), | 4232 | x_default_parameter (f, parameters, Qbackground_color, build_string ("white"), |
| 4233 | "background", "Background", RES_TYPE_STRING); | 4233 | "background", "Background", RES_TYPE_STRING); |
| 4234 | x_default_parameter (f, parms, Qmouse_color, build_string ("black"), | 4234 | x_default_parameter (f, parameters, Qmouse_color, build_string ("black"), |
| 4235 | "pointerColor", "Foreground", RES_TYPE_STRING); | 4235 | "pointerColor", "Foreground", RES_TYPE_STRING); |
| 4236 | x_default_parameter (f, parms, Qcursor_color, build_string ("black"), | 4236 | x_default_parameter (f, parameters, Qcursor_color, build_string ("black"), |
| 4237 | "cursorColor", "Foreground", RES_TYPE_STRING); | 4237 | "cursorColor", "Foreground", RES_TYPE_STRING); |
| 4238 | x_default_parameter (f, parms, Qborder_color, build_string ("black"), | 4238 | x_default_parameter (f, parameters, Qborder_color, build_string ("black"), |
| 4239 | "borderColor", "BorderColor", RES_TYPE_STRING); | 4239 | "borderColor", "BorderColor", RES_TYPE_STRING); |
| 4240 | x_default_parameter (f, parms, Qscreen_gamma, Qnil, | 4240 | x_default_parameter (f, parameters, Qscreen_gamma, Qnil, |
| 4241 | "screenGamma", "ScreenGamma", RES_TYPE_FLOAT); | 4241 | "screenGamma", "ScreenGamma", RES_TYPE_FLOAT); |
| 4242 | x_default_parameter (f, parms, Qline_spacing, Qnil, | 4242 | x_default_parameter (f, parameters, Qline_spacing, Qnil, |
| 4243 | "lineSpacing", "LineSpacing", RES_TYPE_NUMBER); | 4243 | "lineSpacing", "LineSpacing", RES_TYPE_NUMBER); |
| 4244 | x_default_parameter (f, parms, Qleft_fringe, Qnil, | 4244 | x_default_parameter (f, parameters, Qleft_fringe, Qnil, |
| 4245 | "leftFringe", "LeftFringe", RES_TYPE_NUMBER); | 4245 | "leftFringe", "LeftFringe", RES_TYPE_NUMBER); |
| 4246 | x_default_parameter (f, parms, Qright_fringe, Qnil, | 4246 | x_default_parameter (f, parameters, Qright_fringe, Qnil, |
| 4247 | "rightFringe", "RightFringe", RES_TYPE_NUMBER); | 4247 | "rightFringe", "RightFringe", RES_TYPE_NUMBER); |
| 4248 | 4248 | ||
| 4249 | 4249 | ||
| @@ -4255,16 +4255,16 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4255 | happen. */ | 4255 | happen. */ |
| 4256 | init_frame_faces (f); | 4256 | init_frame_faces (f); |
| 4257 | 4257 | ||
| 4258 | x_default_parameter (f, parms, Qmenu_bar_lines, make_number (1), | 4258 | x_default_parameter (f, parameters, Qmenu_bar_lines, make_number (1), |
| 4259 | "menuBar", "MenuBar", RES_TYPE_NUMBER); | 4259 | "menuBar", "MenuBar", RES_TYPE_NUMBER); |
| 4260 | x_default_parameter (f, parms, Qtool_bar_lines, make_number (1), | 4260 | x_default_parameter (f, parameters, Qtool_bar_lines, make_number (1), |
| 4261 | "toolBar", "ToolBar", RES_TYPE_NUMBER); | 4261 | "toolBar", "ToolBar", RES_TYPE_NUMBER); |
| 4262 | 4262 | ||
| 4263 | x_default_parameter (f, parms, Qbuffer_predicate, Qnil, | 4263 | x_default_parameter (f, parameters, Qbuffer_predicate, Qnil, |
| 4264 | "bufferPredicate", "BufferPredicate", RES_TYPE_SYMBOL); | 4264 | "bufferPredicate", "BufferPredicate", RES_TYPE_SYMBOL); |
| 4265 | x_default_parameter (f, parms, Qtitle, Qnil, | 4265 | x_default_parameter (f, parameters, Qtitle, Qnil, |
| 4266 | "title", "Title", RES_TYPE_STRING); | 4266 | "title", "Title", RES_TYPE_STRING); |
| 4267 | x_default_parameter (f, parms, Qfullscreen, Qnil, | 4267 | x_default_parameter (f, parameters, Qfullscreen, Qnil, |
| 4268 | "fullscreen", "Fullscreen", RES_TYPE_SYMBOL); | 4268 | "fullscreen", "Fullscreen", RES_TYPE_SYMBOL); |
| 4269 | 4269 | ||
| 4270 | f->output_data.w32->dwStyle = WS_OVERLAPPEDWINDOW; | 4270 | f->output_data.w32->dwStyle = WS_OVERLAPPEDWINDOW; |
| @@ -4277,13 +4277,13 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4277 | f->output_data.w32->hourglass_cursor = w32_load_cursor (IDC_WAIT); | 4277 | f->output_data.w32->hourglass_cursor = w32_load_cursor (IDC_WAIT); |
| 4278 | f->output_data.w32->horizontal_drag_cursor = w32_load_cursor (IDC_SIZEWE); | 4278 | f->output_data.w32->horizontal_drag_cursor = w32_load_cursor (IDC_SIZEWE); |
| 4279 | 4279 | ||
| 4280 | window_prompting = x_figure_window_size (f, parms, 1); | 4280 | window_prompting = x_figure_window_size (f, parameters, 1); |
| 4281 | 4281 | ||
| 4282 | tem = w32_get_arg (parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); | 4282 | tem = w32_get_arg (parameters, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); |
| 4283 | f->no_split = minibuffer_only || EQ (tem, Qt); | 4283 | f->no_split = minibuffer_only || EQ (tem, Qt); |
| 4284 | 4284 | ||
| 4285 | w32_window (f, window_prompting, minibuffer_only); | 4285 | w32_window (f, window_prompting, minibuffer_only); |
| 4286 | x_icon (f, parms); | 4286 | x_icon (f, parameters); |
| 4287 | 4287 | ||
| 4288 | x_make_gc (f); | 4288 | x_make_gc (f); |
| 4289 | 4289 | ||
| @@ -4293,16 +4293,16 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4293 | 4293 | ||
| 4294 | /* We need to do this after creating the window, so that the | 4294 | /* We need to do this after creating the window, so that the |
| 4295 | icon-creation functions can say whose icon they're describing. */ | 4295 | icon-creation functions can say whose icon they're describing. */ |
| 4296 | x_default_parameter (f, parms, Qicon_type, Qnil, | 4296 | x_default_parameter (f, parameters, Qicon_type, Qnil, |
| 4297 | "bitmapIcon", "BitmapIcon", RES_TYPE_SYMBOL); | 4297 | "bitmapIcon", "BitmapIcon", RES_TYPE_SYMBOL); |
| 4298 | 4298 | ||
| 4299 | x_default_parameter (f, parms, Qauto_raise, Qnil, | 4299 | x_default_parameter (f, parameters, Qauto_raise, Qnil, |
| 4300 | "autoRaise", "AutoRaiseLower", RES_TYPE_BOOLEAN); | 4300 | "autoRaise", "AutoRaiseLower", RES_TYPE_BOOLEAN); |
| 4301 | x_default_parameter (f, parms, Qauto_lower, Qnil, | 4301 | x_default_parameter (f, parameters, Qauto_lower, Qnil, |
| 4302 | "autoLower", "AutoRaiseLower", RES_TYPE_BOOLEAN); | 4302 | "autoLower", "AutoRaiseLower", RES_TYPE_BOOLEAN); |
| 4303 | x_default_parameter (f, parms, Qcursor_type, Qbox, | 4303 | x_default_parameter (f, parameters, Qcursor_type, Qbox, |
| 4304 | "cursorType", "CursorType", RES_TYPE_SYMBOL); | 4304 | "cursorType", "CursorType", RES_TYPE_SYMBOL); |
| 4305 | x_default_parameter (f, parms, Qscroll_bar_width, Qnil, | 4305 | x_default_parameter (f, parameters, Qscroll_bar_width, Qnil, |
| 4306 | "scrollBarWidth", "ScrollBarWidth", RES_TYPE_NUMBER); | 4306 | "scrollBarWidth", "ScrollBarWidth", RES_TYPE_NUMBER); |
| 4307 | 4307 | ||
| 4308 | /* Dimensions, especially FRAME_LINES (f), must be done via change_frame_size. | 4308 | /* Dimensions, especially FRAME_LINES (f), must be done via change_frame_size. |
| @@ -4340,7 +4340,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4340 | { | 4340 | { |
| 4341 | Lisp_Object visibility; | 4341 | Lisp_Object visibility; |
| 4342 | 4342 | ||
| 4343 | visibility = w32_get_arg (parms, Qvisibility, 0, 0, RES_TYPE_SYMBOL); | 4343 | visibility = w32_get_arg (parameters, Qvisibility, 0, 0, RES_TYPE_SYMBOL); |
| 4344 | if (EQ (visibility, Qunbound)) | 4344 | if (EQ (visibility, Qunbound)) |
| 4345 | visibility = Qt; | 4345 | visibility = Qt; |
| 4346 | 4346 | ||
| @@ -6181,10 +6181,10 @@ w32_find_bdf_fonts_in_dir (Lisp_Object directory) | |||
| 6181 | 6181 | ||
| 6182 | DEFUN ("w32-find-bdf-fonts", Fw32_find_bdf_fonts, Sw32_find_bdf_fonts, | 6182 | DEFUN ("w32-find-bdf-fonts", Fw32_find_bdf_fonts, Sw32_find_bdf_fonts, |
| 6183 | 1, 1, 0, | 6183 | 1, 1, 0, |
| 6184 | doc: /* Return a list of BDF fonts in DIR. | 6184 | doc: /* Return a list of BDF fonts in DIRECTORY. |
| 6185 | The list is suitable for appending to w32-bdf-filename-alist. Fonts | 6185 | The list is suitable for appending to `w32-bdf-filename-alist'. |
| 6186 | which do not contain an xlfd description will not be included in the | 6186 | Fonts which do not contain an xlfd description will not be included |
| 6187 | list. DIR may be a list of directories. */) | 6187 | in the list. DIRECTORY may be a list of directories. */) |
| 6188 | (directory) | 6188 | (directory) |
| 6189 | Lisp_Object directory; | 6189 | Lisp_Object directory; |
| 6190 | { | 6190 | { |
| @@ -6265,7 +6265,7 @@ DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, | |||
| 6265 | 6265 | ||
| 6266 | DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, | 6266 | DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, |
| 6267 | Sx_display_grayscale_p, 0, 1, 0, | 6267 | Sx_display_grayscale_p, 0, 1, 0, |
| 6268 | doc: /* Return t if the X display supports shades of gray. | 6268 | doc: /* Return t if DISPLAY supports shades of gray. |
| 6269 | Note that color displays do support shades of gray. | 6269 | Note that color displays do support shades of gray. |
| 6270 | The optional argument DISPLAY specifies which display to ask about. | 6270 | The optional argument DISPLAY specifies which display to ask about. |
| 6271 | DISPLAY should be either a frame or a display name (a string). | 6271 | DISPLAY should be either a frame or a display name (a string). |
| @@ -6338,9 +6338,9 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 6338 | 6338 | ||
| 6339 | hdc = GetDC (dpyinfo->root_window); | 6339 | hdc = GetDC (dpyinfo->root_window); |
| 6340 | if (dpyinfo->has_palette) | 6340 | if (dpyinfo->has_palette) |
| 6341 | cap = GetDeviceCaps (hdc,SIZEPALETTE); | 6341 | cap = GetDeviceCaps (hdc, SIZEPALETTE); |
| 6342 | else | 6342 | else |
| 6343 | cap = GetDeviceCaps (hdc,NUMCOLORS); | 6343 | cap = GetDeviceCaps (hdc, NUMCOLORS); |
| 6344 | 6344 | ||
| 6345 | /* We force 24+ bit depths to 24-bit, both to prevent an overflow | 6345 | /* We force 24+ bit depths to 24-bit, both to prevent an overflow |
| 6346 | and because probably is more meaningful on Windows anyway */ | 6346 | and because probably is more meaningful on Windows anyway */ |
| @@ -7394,7 +7394,7 @@ used to change the tooltip's appearance. | |||
| 7394 | Automatically hide the tooltip after TIMEOUT seconds. TIMEOUT nil | 7394 | Automatically hide the tooltip after TIMEOUT seconds. TIMEOUT nil |
| 7395 | means use the default timeout of 5 seconds. | 7395 | means use the default timeout of 5 seconds. |
| 7396 | 7396 | ||
| 7397 | If the list of frame parameters PARAMS contains a `left' parameter, | 7397 | If the list of frame parameters PARMS contains a `left' parameter, |
| 7398 | the tooltip is displayed at that x-position. Otherwise it is | 7398 | the tooltip is displayed at that x-position. Otherwise it is |
| 7399 | displayed at the mouse position, with offset DX added (default is 5 if | 7399 | displayed at the mouse position, with offset DX added (default is 5 if |
| 7400 | DX isn't specified). Likewise for the y-position; if a `top' frame | 7400 | DX isn't specified). Likewise for the y-position; if a `top' frame |
| @@ -7875,7 +7875,7 @@ Returns an X font string corresponding to the selection. */) | |||
| 7875 | DEFUN ("w32-send-sys-command", Fw32_send_sys_command, | 7875 | DEFUN ("w32-send-sys-command", Fw32_send_sys_command, |
| 7876 | Sw32_send_sys_command, 1, 2, 0, | 7876 | Sw32_send_sys_command, 1, 2, 0, |
| 7877 | doc: /* Send frame a Windows WM_SYSCOMMAND message of type COMMAND. | 7877 | doc: /* Send frame a Windows WM_SYSCOMMAND message of type COMMAND. |
| 7878 | Some useful values for command are #xf030 to maximise frame (#xf020 | 7878 | Some useful values for COMMAND are #xf030 to maximize frame (#xf020 |
| 7879 | to minimize), #xf120 to restore frame to original size, and #xf100 | 7879 | to minimize), #xf120 to restore frame to original size, and #xf100 |
| 7880 | to activate the menubar for keyboard access. #xf140 activates the | 7880 | to activate the menubar for keyboard access. #xf140 activates the |
| 7881 | screen saver if defined. | 7881 | screen saver if defined. |
| @@ -8070,7 +8070,7 @@ The return value is the hotkey-id if registered, otherwise nil. */) | |||
| 8070 | 8070 | ||
| 8071 | DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key, | 8071 | DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key, |
| 8072 | Sw32_unregister_hot_key, 1, 1, 0, | 8072 | Sw32_unregister_hot_key, 1, 1, 0, |
| 8073 | doc: /* Unregister HOTKEY as a hot-key combination. */) | 8073 | doc: /* Unregister KEY as a hot-key combination. */) |
| 8074 | (key) | 8074 | (key) |
| 8075 | Lisp_Object key; | 8075 | Lisp_Object key; |
| 8076 | { | 8076 | { |
| @@ -8112,7 +8112,8 @@ DEFUN ("w32-registered-hot-keys", Fw32_registered_hot_keys, | |||
| 8112 | 8112 | ||
| 8113 | DEFUN ("w32-reconstruct-hot-key", Fw32_reconstruct_hot_key, | 8113 | DEFUN ("w32-reconstruct-hot-key", Fw32_reconstruct_hot_key, |
| 8114 | Sw32_reconstruct_hot_key, 1, 1, 0, | 8114 | Sw32_reconstruct_hot_key, 1, 1, 0, |
| 8115 | doc: /* Convert hot-key ID to a lisp key combination. */) | 8115 | doc: /* Convert hot-key ID to a lisp key combination. |
| 8116 | usage: (w32-reconstruct-hot-key ID) */) | ||
| 8116 | (hotkeyid) | 8117 | (hotkeyid) |
| 8117 | Lisp_Object hotkeyid; | 8118 | Lisp_Object hotkeyid; |
| 8118 | { | 8119 | { |
| @@ -8351,7 +8352,7 @@ DEFUN ("default-printer-name", Fdefault_printer_name, Sdefault_printer_name, | |||
| 8351 | Initialization | 8352 | Initialization |
| 8352 | ***********************************************************************/ | 8353 | ***********************************************************************/ |
| 8353 | 8354 | ||
| 8354 | /* Keep this list in the same order as frame_parms in frame.c. | 8355 | /* Keep this list in the same order as frame_parms in frame.c. |
| 8355 | Use 0 for unsupported frame parameters. */ | 8356 | Use 0 for unsupported frame parameters. */ |
| 8356 | 8357 | ||
| 8357 | frame_parm_handler w32_frame_parm_handlers[] = | 8358 | frame_parm_handler w32_frame_parm_handlers[] = |
| @@ -8436,7 +8437,7 @@ syms_of_w32fns () | |||
| 8436 | w32_grabbed_keys = Qnil; | 8437 | w32_grabbed_keys = Qnil; |
| 8437 | 8438 | ||
| 8438 | DEFVAR_LISP ("w32-color-map", &Vw32_color_map, | 8439 | DEFVAR_LISP ("w32-color-map", &Vw32_color_map, |
| 8439 | doc: /* An array of color name mappings for windows. */); | 8440 | doc: /* An array of color name mappings for Windows. */); |
| 8440 | Vw32_color_map = Qnil; | 8441 | Vw32_color_map = Qnil; |
| 8441 | 8442 | ||
| 8442 | DEFVAR_LISP ("w32-pass-alt-to-system", &Vw32_pass_alt_to_system, | 8443 | DEFVAR_LISP ("w32-pass-alt-to-system", &Vw32_pass_alt_to_system, |