diff options
| author | Paul Eggert | 2011-06-11 14:31:32 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-11 14:31:32 -0700 |
| commit | 4475bec4dd51b8da9884816d9ca06e4d60a35e15 (patch) | |
| tree | 1f300450eb2241ec23f1b2d43cde8d1284a45754 | |
| parent | 6198ccd0b2e8cebc14415e13765de6bb758ec786 (diff) | |
| download | emacs-4475bec4dd51b8da9884816d9ca06e4d60a35e15.tar.gz emacs-4475bec4dd51b8da9884816d9ca06e4d60a35e15.zip | |
* buffer.c (Qclone_number): Remove for now, as it's unused.
(record_buffer, Funrecord_buffer): Rename local to avoid shadowing.
(record_buffer): Remove unused local.
* frame.c (other_visible_frames, frame_buffer_list): Now static.
(set_frame_buffer_list): Remove; unused.
* frame.h (other_visible_frames): Remove decl.
* keyboard.h (menu_items_inuse): Declare only if USE_GTK || USE_MOTIF.
* lisp.h (frame_buffer_list, set_frame_buffer_list): Remove decls.
(add_gpm_wait_descriptor, delete_gpm_wait_descriptor): Declare only
if HAVE_GPM.
* menu.c (menu_items_inuse): Now static unless USE_GTK || USE_MOTIF.
* process.c (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
Define only if HAVE_GPM.
* widget.c (EmacsFrameResize, emacsFrameClassRec): Now static.
(update_hints_inhibit): Remove; never set. All uses removed.
* widgetprv.h (emacsFrameClassRec): Remove decl.
* window.c (delete_deletable_window): Now returns void, since it
wasn't returning anything.
(compare_window_configurations): Remove unused locals.
* xfns.c (x_set_scroll_bar_default_width): Remove unused locals.
* xmenu.c (x_menu_set_in_use): Define only if USE_GTK || USE_MOTIF.
Omit no-longer-needed #ifdef USE_X_TOOLKIT, since USE_X_TOOLKIT is
implied by USE_GTK || USE_MOTIF.
(dialog_selection_callback) [!USE_GTK]: Prefer intptr_t for integers
the same widths as pointers. This follows up on the 2011-05-06 patch.
* xterm.c (x_alloc_lighter_color_for_widget): Define only if USE_LUCID.
* xterm.h: Likewise.
(x_menu_set_in_use): Declare only if USE_GTK || USE_MOTIF.
| -rw-r--r-- | src/ChangeLog | 31 | ||||
| -rw-r--r-- | src/buffer.c | 19 | ||||
| -rw-r--r-- | src/frame.c | 12 | ||||
| -rw-r--r-- | src/frame.h | 1 | ||||
| -rw-r--r-- | src/keyboard.h | 2 | ||||
| -rw-r--r-- | src/lisp.h | 4 | ||||
| -rw-r--r-- | src/menu.c | 3 | ||||
| -rw-r--r-- | src/process.c | 4 | ||||
| -rw-r--r-- | src/widget.c | 13 | ||||
| -rw-r--r-- | src/widgetprv.h | 5 | ||||
| -rw-r--r-- | src/window.c | 3 | ||||
| -rw-r--r-- | src/xfns.c | 8 | ||||
| -rw-r--r-- | src/xmenu.c | 10 | ||||
| -rw-r--r-- | src/xterm.c | 4 | ||||
| -rw-r--r-- | src/xterm.h | 6 |
15 files changed, 76 insertions, 49 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e638728a655..a1e5f3a2200 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,34 @@ | |||
| 1 | 2011-06-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * buffer.c (Qclone_number): Remove for now, as it's unused. | ||
| 4 | (record_buffer, Funrecord_buffer): Rename local to avoid shadowing. | ||
| 5 | (record_buffer): Remove unused local. | ||
| 6 | * frame.c (other_visible_frames, frame_buffer_list): Now static. | ||
| 7 | (set_frame_buffer_list): Remove; unused. | ||
| 8 | * frame.h (other_visible_frames): Remove decl. | ||
| 9 | * keyboard.h (menu_items_inuse): Declare only if USE_GTK || USE_MOTIF. | ||
| 10 | * lisp.h (frame_buffer_list, set_frame_buffer_list): Remove decls. | ||
| 11 | (add_gpm_wait_descriptor, delete_gpm_wait_descriptor): Declare only | ||
| 12 | if HAVE_GPM. | ||
| 13 | * menu.c (menu_items_inuse): Now static unless USE_GTK || USE_MOTIF. | ||
| 14 | * process.c (add_gpm_wait_descriptor, delete_gpm_wait_descriptor): | ||
| 15 | Define only if HAVE_GPM. | ||
| 16 | * widget.c (EmacsFrameResize, emacsFrameClassRec): Now static. | ||
| 17 | (update_hints_inhibit): Remove; never set. All uses removed. | ||
| 18 | * widgetprv.h (emacsFrameClassRec): Remove decl. | ||
| 19 | * window.c (delete_deletable_window): Now returns void, since it | ||
| 20 | wasn't returning anything. | ||
| 21 | (compare_window_configurations): Remove unused locals. | ||
| 22 | * xfns.c (x_set_scroll_bar_default_width): Remove unused locals. | ||
| 23 | * xmenu.c (x_menu_set_in_use): Define only if USE_GTK || USE_MOTIF. | ||
| 24 | Omit no-longer-needed #ifdef USE_X_TOOLKIT, since USE_X_TOOLKIT is | ||
| 25 | implied by USE_GTK || USE_MOTIF. | ||
| 26 | (dialog_selection_callback) [!USE_GTK]: Prefer intptr_t for integers | ||
| 27 | the same widths as pointers. This follows up on the 2011-05-06 patch. | ||
| 28 | * xterm.c (x_alloc_lighter_color_for_widget): Define only if USE_LUCID. | ||
| 29 | * xterm.h: Likewise. | ||
| 30 | (x_menu_set_in_use): Declare only if USE_GTK || USE_MOTIF. | ||
| 31 | |||
| 1 | 2011-06-11 Martin Rudalics <rudalics@gmx.at> | 32 | 2011-06-11 Martin Rudalics <rudalics@gmx.at> |
| 2 | 33 | ||
| 3 | * window.c (delete_deletable_window): Re-add. | 34 | * window.c (delete_deletable_window): Re-add. |
diff --git a/src/buffer.c b/src/buffer.c index bd059cdbe14..7030fea1002 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -139,7 +139,7 @@ static Lisp_Object Qoverlayp; | |||
| 139 | 139 | ||
| 140 | Lisp_Object Qpriority, Qbefore_string, Qafter_string; | 140 | Lisp_Object Qpriority, Qbefore_string, Qafter_string; |
| 141 | 141 | ||
| 142 | static Lisp_Object Qclone_number, Qevaporate; | 142 | static Lisp_Object Qevaporate; |
| 143 | 143 | ||
| 144 | Lisp_Object Qmodification_hooks; | 144 | Lisp_Object Qmodification_hooks; |
| 145 | Lisp_Object Qinsert_in_front_hooks; | 145 | Lisp_Object Qinsert_in_front_hooks; |
| @@ -1664,9 +1664,8 @@ with SIGHUP. */) | |||
| 1664 | void | 1664 | void |
| 1665 | record_buffer (Lisp_Object buffer) | 1665 | record_buffer (Lisp_Object buffer) |
| 1666 | { | 1666 | { |
| 1667 | Lisp_Object aelt, link, tem; | 1667 | Lisp_Object aelt, aelt_cons, tem; |
| 1668 | register struct frame *f = XFRAME (selected_frame); | 1668 | register struct frame *f = XFRAME (selected_frame); |
| 1669 | register struct window *w = XWINDOW (FRAME_SELECTED_WINDOW (f)); | ||
| 1670 | 1669 | ||
| 1671 | CHECK_BUFFER (buffer); | 1670 | CHECK_BUFFER (buffer); |
| 1672 | 1671 | ||
| @@ -1676,10 +1675,10 @@ record_buffer (Lisp_Object buffer) | |||
| 1676 | tem = Vinhibit_quit; | 1675 | tem = Vinhibit_quit; |
| 1677 | Vinhibit_quit = Qt; | 1676 | Vinhibit_quit = Qt; |
| 1678 | aelt = Frassq (buffer, Vbuffer_alist); | 1677 | aelt = Frassq (buffer, Vbuffer_alist); |
| 1679 | link = Fmemq (aelt, Vbuffer_alist); | 1678 | aelt_cons = Fmemq (aelt, Vbuffer_alist); |
| 1680 | Vbuffer_alist = Fdelq (aelt, Vbuffer_alist); | 1679 | Vbuffer_alist = Fdelq (aelt, Vbuffer_alist); |
| 1681 | XSETCDR (link, Vbuffer_alist); | 1680 | XSETCDR (aelt_cons, Vbuffer_alist); |
| 1682 | Vbuffer_alist = link; | 1681 | Vbuffer_alist = aelt_cons; |
| 1683 | Vinhibit_quit = tem; | 1682 | Vinhibit_quit = tem; |
| 1684 | 1683 | ||
| 1685 | /* Update buffer list of selected frame. */ | 1684 | /* Update buffer list of selected frame. */ |
| @@ -1714,7 +1713,7 @@ DEFUN ("unrecord-buffer", Funrecord_buffer, Sunrecord_buffer, 1, 1, 0, | |||
| 1714 | Return BUFFER. */) | 1713 | Return BUFFER. */) |
| 1715 | (Lisp_Object buffer) | 1714 | (Lisp_Object buffer) |
| 1716 | { | 1715 | { |
| 1717 | Lisp_Object aelt, link, tem; | 1716 | Lisp_Object aelt, aelt_cons, tem; |
| 1718 | register struct frame *f = XFRAME (selected_frame); | 1717 | register struct frame *f = XFRAME (selected_frame); |
| 1719 | 1718 | ||
| 1720 | CHECK_BUFFER (buffer); | 1719 | CHECK_BUFFER (buffer); |
| @@ -1725,10 +1724,10 @@ Return BUFFER. */) | |||
| 1725 | tem = Vinhibit_quit; | 1724 | tem = Vinhibit_quit; |
| 1726 | Vinhibit_quit = Qt; | 1725 | Vinhibit_quit = Qt; |
| 1727 | aelt = Frassq (buffer, Vbuffer_alist); | 1726 | aelt = Frassq (buffer, Vbuffer_alist); |
| 1728 | link = Fmemq (aelt, Vbuffer_alist); | 1727 | aelt_cons = Fmemq (aelt, Vbuffer_alist); |
| 1729 | Vbuffer_alist = Fdelq (aelt, Vbuffer_alist); | 1728 | Vbuffer_alist = Fdelq (aelt, Vbuffer_alist); |
| 1730 | XSETCDR (link, Qnil); | 1729 | XSETCDR (aelt_cons, Qnil); |
| 1731 | Vbuffer_alist = nconc2 (Vbuffer_alist, link); | 1730 | Vbuffer_alist = nconc2 (Vbuffer_alist, aelt_cons); |
| 1732 | Vinhibit_quit = tem; | 1731 | Vinhibit_quit = tem; |
| 1733 | 1732 | ||
| 1734 | /* Update buffer lists of selected frame. */ | 1733 | /* Update buffer lists of selected frame. */ |
diff --git a/src/frame.c b/src/frame.c index 6baf2d0e671..66e0078d382 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1115,7 +1115,7 @@ Otherwise, include all frames. */) | |||
| 1115 | 0 if all frames aside from F are invisible. | 1115 | 0 if all frames aside from F are invisible. |
| 1116 | (Exception: if F is the terminal frame, and we are using X, return 1.) */ | 1116 | (Exception: if F is the terminal frame, and we are using X, return 1.) */ |
| 1117 | 1117 | ||
| 1118 | int | 1118 | static int |
| 1119 | other_visible_frames (FRAME_PTR f) | 1119 | other_visible_frames (FRAME_PTR f) |
| 1120 | { | 1120 | { |
| 1121 | /* We know the selected frame is visible, | 1121 | /* We know the selected frame is visible, |
| @@ -2012,20 +2012,12 @@ frame_buffer_predicate (Lisp_Object frame) | |||
| 2012 | 2012 | ||
| 2013 | /* Return the buffer-list of the selected frame. */ | 2013 | /* Return the buffer-list of the selected frame. */ |
| 2014 | 2014 | ||
| 2015 | Lisp_Object | 2015 | static Lisp_Object |
| 2016 | frame_buffer_list (Lisp_Object frame) | 2016 | frame_buffer_list (Lisp_Object frame) |
| 2017 | { | 2017 | { |
| 2018 | return XFRAME (frame)->buffer_list; | 2018 | return XFRAME (frame)->buffer_list; |
| 2019 | } | 2019 | } |
| 2020 | 2020 | ||
| 2021 | /* Set the buffer-list of the selected frame. */ | ||
| 2022 | |||
| 2023 | void | ||
| 2024 | set_frame_buffer_list (Lisp_Object frame, Lisp_Object list) | ||
| 2025 | { | ||
| 2026 | XFRAME (frame)->buffer_list = list; | ||
| 2027 | } | ||
| 2028 | |||
| 2029 | /* Discard BUFFER from the buffer-list and buried-buffer-list of each frame. */ | 2021 | /* Discard BUFFER from the buffer-list and buried-buffer-list of each frame. */ |
| 2030 | 2022 | ||
| 2031 | void | 2023 | void |
diff --git a/src/frame.h b/src/frame.h index db57b1be980..8dccfb8540a 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -844,7 +844,6 @@ extern struct frame *make_frame_without_minibuffer (Lisp_Object, | |||
| 844 | struct kboard *, | 844 | struct kboard *, |
| 845 | Lisp_Object); | 845 | Lisp_Object); |
| 846 | #endif /* HAVE_WINDOW_SYSTEM */ | 846 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 847 | extern int other_visible_frames (struct frame *); | ||
| 848 | extern void frame_make_pointer_invisible (void); | 847 | extern void frame_make_pointer_invisible (void); |
| 849 | extern void frame_make_pointer_visible (void); | 848 | extern void frame_make_pointer_visible (void); |
| 850 | extern Lisp_Object delete_frame (Lisp_Object, Lisp_Object); | 849 | extern Lisp_Object delete_frame (Lisp_Object, Lisp_Object); |
diff --git a/src/keyboard.h b/src/keyboard.h index 802c99edb5e..20763c35f3a 100644 --- a/src/keyboard.h +++ b/src/keyboard.h | |||
| @@ -268,7 +268,9 @@ extern Lisp_Object menu_items; | |||
| 268 | 268 | ||
| 269 | /* If non-nil, means that the global vars defined here are already in use. | 269 | /* If non-nil, means that the global vars defined here are already in use. |
| 270 | Used to detect cases where we try to re-enter this non-reentrant code. */ | 270 | Used to detect cases where we try to re-enter this non-reentrant code. */ |
| 271 | #if defined USE_GTK || defined USE_MOTIF | ||
| 271 | extern Lisp_Object menu_items_inuse; | 272 | extern Lisp_Object menu_items_inuse; |
| 273 | #endif | ||
| 272 | 274 | ||
| 273 | /* Number of slots currently allocated in menu_items. */ | 275 | /* Number of slots currently allocated in menu_items. */ |
| 274 | extern int menu_items_allocated; | 276 | extern int menu_items_allocated; |
diff --git a/src/lisp.h b/src/lisp.h index ae9296b4944..8aa36601dd7 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3222,9 +3222,7 @@ EXFUN (Fframe_parameter, 2); | |||
| 3222 | EXFUN (Fmodify_frame_parameters, 2); | 3222 | EXFUN (Fmodify_frame_parameters, 2); |
| 3223 | EXFUN (Fraise_frame, 1); | 3223 | EXFUN (Fraise_frame, 1); |
| 3224 | EXFUN (Fredirect_frame_focus, 2); | 3224 | EXFUN (Fredirect_frame_focus, 2); |
| 3225 | extern Lisp_Object frame_buffer_list (Lisp_Object); | ||
| 3226 | extern void frames_discard_buffer (Lisp_Object); | 3225 | extern void frames_discard_buffer (Lisp_Object); |
| 3227 | extern void set_frame_buffer_list (Lisp_Object, Lisp_Object); | ||
| 3228 | extern void syms_of_frame (void); | 3226 | extern void syms_of_frame (void); |
| 3229 | 3227 | ||
| 3230 | /* Defined in emacs.c */ | 3228 | /* Defined in emacs.c */ |
| @@ -3281,8 +3279,10 @@ extern int wait_reading_process_output (int, int, int, int, | |||
| 3281 | int); | 3279 | int); |
| 3282 | extern void add_keyboard_wait_descriptor (int); | 3280 | extern void add_keyboard_wait_descriptor (int); |
| 3283 | extern void delete_keyboard_wait_descriptor (int); | 3281 | extern void delete_keyboard_wait_descriptor (int); |
| 3282 | #ifdef HAVE_GPM | ||
| 3284 | extern void add_gpm_wait_descriptor (int); | 3283 | extern void add_gpm_wait_descriptor (int); |
| 3285 | extern void delete_gpm_wait_descriptor (int); | 3284 | extern void delete_gpm_wait_descriptor (int); |
| 3285 | #endif | ||
| 3286 | extern void close_process_descs (void); | 3286 | extern void close_process_descs (void); |
| 3287 | extern void init_process (void); | 3287 | extern void init_process (void); |
| 3288 | extern void syms_of_process (void); | 3288 | extern void syms_of_process (void); |
diff --git a/src/menu.c b/src/menu.c index 7eda4c6ebb5..fa31c8a51c1 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -67,6 +67,9 @@ Lisp_Object menu_items; | |||
| 67 | 67 | ||
| 68 | /* If non-nil, means that the global vars defined here are already in use. | 68 | /* If non-nil, means that the global vars defined here are already in use. |
| 69 | Used to detect cases where we try to re-enter this non-reentrant code. */ | 69 | Used to detect cases where we try to re-enter this non-reentrant code. */ |
| 70 | #if ! (defined USE_GTK || defined USE_MOTIF) | ||
| 71 | static | ||
| 72 | #endif | ||
| 70 | Lisp_Object menu_items_inuse; | 73 | Lisp_Object menu_items_inuse; |
| 71 | 74 | ||
| 72 | /* Number of slots currently allocated in menu_items. */ | 75 | /* Number of slots currently allocated in menu_items. */ |
diff --git a/src/process.c b/src/process.c index 51deb1c933f..9ff7dd198dd 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -6593,6 +6593,8 @@ DEFUN ("process-filter-multibyte-p", Fprocess_filter_multibyte_p, | |||
| 6593 | 6593 | ||
| 6594 | 6594 | ||
| 6595 | 6595 | ||
| 6596 | # ifdef HAVE_GPM | ||
| 6597 | |||
| 6596 | void | 6598 | void |
| 6597 | add_gpm_wait_descriptor (int desc) | 6599 | add_gpm_wait_descriptor (int desc) |
| 6598 | { | 6600 | { |
| @@ -6605,6 +6607,8 @@ delete_gpm_wait_descriptor (int desc) | |||
| 6605 | delete_keyboard_wait_descriptor (desc); | 6607 | delete_keyboard_wait_descriptor (desc); |
| 6606 | } | 6608 | } |
| 6607 | 6609 | ||
| 6610 | # endif | ||
| 6611 | |||
| 6608 | # ifdef SIGIO | 6612 | # ifdef SIGIO |
| 6609 | 6613 | ||
| 6610 | /* Return nonzero if *MASK has a bit set | 6614 | /* Return nonzero if *MASK has a bit set |
diff --git a/src/widget.c b/src/widget.c index 3053ceaea13..7d32e30eed7 100644 --- a/src/widget.c +++ b/src/widget.c | |||
| @@ -78,7 +78,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 78 | static void EmacsFrameInitialize (Widget request, Widget new, ArgList dum1, Cardinal *dum2); | 78 | static void EmacsFrameInitialize (Widget request, Widget new, ArgList dum1, Cardinal *dum2); |
| 79 | static void EmacsFrameDestroy (Widget widget); | 79 | static void EmacsFrameDestroy (Widget widget); |
| 80 | static void EmacsFrameRealize (Widget widget, XtValueMask *mask, XSetWindowAttributes *attrs); | 80 | static void EmacsFrameRealize (Widget widget, XtValueMask *mask, XSetWindowAttributes *attrs); |
| 81 | void EmacsFrameResize (Widget widget); | 81 | static void EmacsFrameResize (Widget widget); |
| 82 | static Boolean EmacsFrameSetValues (Widget cur_widget, Widget req_widget, Widget new_widget, ArgList dum1, Cardinal *dum2); | 82 | static Boolean EmacsFrameSetValues (Widget cur_widget, Widget req_widget, Widget new_widget, ArgList dum1, Cardinal *dum2); |
| 83 | static XtGeometryResult EmacsFrameQueryGeometry (Widget widget, XtWidgetGeometry *request, XtWidgetGeometry *result); | 83 | static XtGeometryResult EmacsFrameQueryGeometry (Widget widget, XtWidgetGeometry *request, XtWidgetGeometry *result); |
| 84 | 84 | ||
| @@ -137,7 +137,7 @@ emacsFrameTranslations [] = "\ | |||
| 137 | "; | 137 | "; |
| 138 | */ | 138 | */ |
| 139 | 139 | ||
| 140 | EmacsFrameClassRec emacsFrameClassRec = { | 140 | static EmacsFrameClassRec emacsFrameClassRec = { |
| 141 | { /* core fields */ | 141 | { /* core fields */ |
| 142 | /* superclass */ &widgetClassRec, | 142 | /* superclass */ &widgetClassRec, |
| 143 | /* class_name */ "EmacsFrame", | 143 | /* class_name */ "EmacsFrame", |
| @@ -463,10 +463,6 @@ set_frame_size (EmacsFrame ew) | |||
| 463 | } | 463 | } |
| 464 | } | 464 | } |
| 465 | 465 | ||
| 466 | /* Nonzero tells update_wm_hints not to do anything | ||
| 467 | (the caller should call update_wm_hints explicitly later.) */ | ||
| 468 | int update_hints_inhibit; | ||
| 469 | |||
| 470 | static void | 466 | static void |
| 471 | update_wm_hints (EmacsFrame ew) | 467 | update_wm_hints (EmacsFrame ew) |
| 472 | { | 468 | { |
| @@ -481,9 +477,6 @@ update_wm_hints (EmacsFrame ew) | |||
| 481 | int base_height; | 477 | int base_height; |
| 482 | int min_rows = 0, min_cols = 0; | 478 | int min_rows = 0, min_cols = 0; |
| 483 | 479 | ||
| 484 | if (update_hints_inhibit) | ||
| 485 | return; | ||
| 486 | |||
| 487 | #if 0 | 480 | #if 0 |
| 488 | check_frame_size (ew->emacs_frame.frame, &min_rows, &min_cols); | 481 | check_frame_size (ew->emacs_frame.frame, &min_rows, &min_cols); |
| 489 | #endif | 482 | #endif |
| @@ -703,7 +696,7 @@ EmacsFrameDestroy (Widget widget) | |||
| 703 | UNBLOCK_INPUT; | 696 | UNBLOCK_INPUT; |
| 704 | } | 697 | } |
| 705 | 698 | ||
| 706 | void | 699 | static void |
| 707 | EmacsFrameResize (Widget widget) | 700 | EmacsFrameResize (Widget widget) |
| 708 | { | 701 | { |
| 709 | EmacsFrame ew = (EmacsFrame)widget; | 702 | EmacsFrame ew = (EmacsFrame)widget; |
diff --git a/src/widgetprv.h b/src/widgetprv.h index 5df0976f879..997a70e026c 100644 --- a/src/widgetprv.h +++ b/src/widgetprv.h | |||
| @@ -70,9 +70,4 @@ typedef struct _EmacsFrameClassRec { /* full class record declaration */ | |||
| 70 | EmacsFrameClassPart emacs_frame_class; | 70 | EmacsFrameClassPart emacs_frame_class; |
| 71 | } EmacsFrameClassRec; | 71 | } EmacsFrameClassRec; |
| 72 | 72 | ||
| 73 | extern EmacsFrameClassRec emacsFrameClassRec; /* class pointer */ | ||
| 74 | |||
| 75 | |||
| 76 | |||
| 77 | #endif /* _EmacsFrameP_h */ | 73 | #endif /* _EmacsFrameP_h */ |
| 78 | |||
diff --git a/src/window.c b/src/window.c index ae5798c7ebc..4345a13ea59 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1976,7 +1976,7 @@ recombine_windows (Lisp_Object window) | |||
| 1976 | } | 1976 | } |
| 1977 | 1977 | ||
| 1978 | /* If WINDOW can be deleted, delete it. */ | 1978 | /* If WINDOW can be deleted, delete it. */ |
| 1979 | static Lisp_Object | 1979 | static void |
| 1980 | delete_deletable_window (Lisp_Object window) | 1980 | delete_deletable_window (Lisp_Object window) |
| 1981 | { | 1981 | { |
| 1982 | if (!NILP (call1 (Qwindow_deletable_p, window))) | 1982 | if (!NILP (call1 (Qwindow_deletable_p, window))) |
| @@ -6364,7 +6364,6 @@ compare_window_configurations (Lisp_Object configuration1, Lisp_Object configura | |||
| 6364 | for (i = 0; i < sws1->header.size; i++) | 6364 | for (i = 0; i < sws1->header.size; i++) |
| 6365 | { | 6365 | { |
| 6366 | struct saved_window *sw1, *sw2; | 6366 | struct saved_window *sw1, *sw2; |
| 6367 | int w1_is_current, w2_is_current; | ||
| 6368 | 6367 | ||
| 6369 | sw1 = SAVED_WINDOW_N (sws1, i); | 6368 | sw1 = SAVED_WINDOW_N (sws1, i); |
| 6370 | sw2 = SAVED_WINDOW_N (sws2, i); | 6369 | sw2 = SAVED_WINDOW_N (sws2, i); |
diff --git a/src/xfns.c b/src/xfns.c index 3d74ead330a..8417db7d6e5 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1699,14 +1699,14 @@ void | |||
| 1699 | x_set_scroll_bar_default_width (struct frame *f) | 1699 | x_set_scroll_bar_default_width (struct frame *f) |
| 1700 | { | 1700 | { |
| 1701 | int wid = FRAME_COLUMN_WIDTH (f); | 1701 | int wid = FRAME_COLUMN_WIDTH (f); |
| 1702 | int minw = 16; | ||
| 1703 | int width; | ||
| 1704 | #ifdef USE_TOOLKIT_SCROLL_BARS | 1702 | #ifdef USE_TOOLKIT_SCROLL_BARS |
| 1705 | #ifdef USE_GTK | 1703 | #ifdef USE_GTK |
| 1706 | minw = xg_get_default_scrollbar_width (f); | 1704 | int minw = xg_get_default_scrollbar_width (f); |
| 1705 | #else | ||
| 1706 | int minw = 16; | ||
| 1707 | #endif | 1707 | #endif |
| 1708 | /* A minimum width of 14 doesn't look good for toolkit scroll bars. */ | 1708 | /* A minimum width of 14 doesn't look good for toolkit scroll bars. */ |
| 1709 | width = minw + 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM; | 1709 | int width = minw + 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM; |
| 1710 | FRAME_CONFIG_SCROLL_BAR_COLS (f) = (width + wid - 1) / wid; | 1710 | FRAME_CONFIG_SCROLL_BAR_COLS (f) = (width + wid - 1) / wid; |
| 1711 | FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = width; | 1711 | FRAME_CONFIG_SCROLL_BAR_WIDTH (f) = width; |
| 1712 | #else | 1712 | #else |
diff --git a/src/xmenu.c b/src/xmenu.c index 7d7515a8f25..db1d8823a7e 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -347,6 +347,8 @@ for instance using the window manager, then this produces a quit and | |||
| 347 | 347 | ||
| 348 | #ifndef MSDOS | 348 | #ifndef MSDOS |
| 349 | 349 | ||
| 350 | #if defined USE_GTK || defined USE_MOTIF | ||
| 351 | |||
| 350 | /* Set menu_items_inuse so no other popup menu or dialog is created. */ | 352 | /* Set menu_items_inuse so no other popup menu or dialog is created. */ |
| 351 | 353 | ||
| 352 | void | 354 | void |
| @@ -354,12 +356,12 @@ x_menu_set_in_use (int in_use) | |||
| 354 | { | 356 | { |
| 355 | menu_items_inuse = in_use ? Qt : Qnil; | 357 | menu_items_inuse = in_use ? Qt : Qnil; |
| 356 | popup_activated_flag = in_use; | 358 | popup_activated_flag = in_use; |
| 357 | #ifdef USE_X_TOOLKIT | ||
| 358 | if (popup_activated_flag) | 359 | if (popup_activated_flag) |
| 359 | x_activate_timeout_atimer (); | 360 | x_activate_timeout_atimer (); |
| 360 | #endif | ||
| 361 | } | 361 | } |
| 362 | 362 | ||
| 363 | #endif | ||
| 364 | |||
| 363 | /* Wait for an X event to arrive or for a timer to expire. */ | 365 | /* Wait for an X event to arrive or for a timer to expire. */ |
| 364 | 366 | ||
| 365 | #ifndef USE_MOTIF | 367 | #ifndef USE_MOTIF |
| @@ -1919,9 +1921,9 @@ create_and_show_dialog (FRAME_PTR f, widget_value *first_wv) | |||
| 1919 | static void | 1921 | static void |
| 1920 | dialog_selection_callback (Widget widget, LWLIB_ID id, XtPointer client_data) | 1922 | dialog_selection_callback (Widget widget, LWLIB_ID id, XtPointer client_data) |
| 1921 | { | 1923 | { |
| 1922 | /* The EMACS_INT cast avoids a warning. There's no problem | 1924 | /* Treat the pointer as an integer. There's no problem |
| 1923 | as long as pointers have enough bits to hold small integers. */ | 1925 | as long as pointers have enough bits to hold small integers. */ |
| 1924 | if ((int) (EMACS_INT) client_data != -1) | 1926 | if ((intptr_t) client_data != -1) |
| 1925 | menu_item_selection = (Lisp_Object *) client_data; | 1927 | menu_item_selection = (Lisp_Object *) client_data; |
| 1926 | 1928 | ||
| 1927 | BLOCK_INPUT; | 1929 | BLOCK_INPUT; |
diff --git a/src/xterm.c b/src/xterm.c index d6d6457f522..9673e5e315e 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1446,6 +1446,8 @@ x_frame_of_widget (Widget widget) | |||
| 1446 | } | 1446 | } |
| 1447 | 1447 | ||
| 1448 | 1448 | ||
| 1449 | #ifdef USE_LUCID | ||
| 1450 | |||
| 1449 | /* Allocate a color which is lighter or darker than *PIXEL by FACTOR | 1451 | /* Allocate a color which is lighter or darker than *PIXEL by FACTOR |
| 1450 | or DELTA. Try a color with RGB values multiplied by FACTOR first. | 1452 | or DELTA. Try a color with RGB values multiplied by FACTOR first. |
| 1451 | If this produces the same color as PIXEL, try a color where all RGB | 1453 | If this produces the same color as PIXEL, try a color where all RGB |
| @@ -1461,6 +1463,8 @@ x_alloc_lighter_color_for_widget (Widget widget, Display *display, Colormap cmap | |||
| 1461 | return x_alloc_lighter_color (f, display, cmap, pixel, factor, delta); | 1463 | return x_alloc_lighter_color (f, display, cmap, pixel, factor, delta); |
| 1462 | } | 1464 | } |
| 1463 | 1465 | ||
| 1466 | #endif | ||
| 1467 | |||
| 1464 | 1468 | ||
| 1465 | /* Structure specifying which arguments should be passed by Xt to | 1469 | /* Structure specifying which arguments should be passed by Xt to |
| 1466 | cvt_string_to_pixel. We want the widget's screen and colormap. */ | 1470 | cvt_string_to_pixel. We want the widget's screen and colormap. */ |
diff --git a/src/xterm.h b/src/xterm.h index 2938de9b339..47d7e533769 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -973,10 +973,12 @@ extern void x_delete_terminal (struct terminal *terminal); | |||
| 973 | extern unsigned long x_copy_color (struct frame *, unsigned long); | 973 | extern unsigned long x_copy_color (struct frame *, unsigned long); |
| 974 | #ifdef USE_X_TOOLKIT | 974 | #ifdef USE_X_TOOLKIT |
| 975 | extern XtAppContext Xt_app_con; | 975 | extern XtAppContext Xt_app_con; |
| 976 | extern void x_activate_timeout_atimer (void); | ||
| 977 | #endif | ||
| 978 | #ifdef USE_LUCID | ||
| 976 | extern int x_alloc_lighter_color_for_widget (Widget, Display *, Colormap, | 979 | extern int x_alloc_lighter_color_for_widget (Widget, Display *, Colormap, |
| 977 | unsigned long *, | 980 | unsigned long *, |
| 978 | double, int); | 981 | double, int); |
| 979 | extern void x_activate_timeout_atimer (void); | ||
| 980 | #endif | 982 | #endif |
| 981 | extern int x_alloc_nearest_color (struct frame *, Colormap, XColor *); | 983 | extern int x_alloc_nearest_color (struct frame *, Colormap, XColor *); |
| 982 | extern void x_query_colors (struct frame *f, XColor *, int); | 984 | extern void x_query_colors (struct frame *f, XColor *, int); |
| @@ -1069,7 +1071,9 @@ extern void x_free_dpy_colors (Display *, Screen *, Colormap, | |||
| 1069 | 1071 | ||
| 1070 | /* Defined in xmenu.c */ | 1072 | /* Defined in xmenu.c */ |
| 1071 | 1073 | ||
| 1074 | #if defined USE_GTK || defined USE_MOTIF | ||
| 1072 | extern void x_menu_set_in_use (int); | 1075 | extern void x_menu_set_in_use (int); |
| 1076 | #endif | ||
| 1073 | #ifdef USE_MOTIF | 1077 | #ifdef USE_MOTIF |
| 1074 | extern void x_menu_wait_for_event (void *data); | 1078 | extern void x_menu_wait_for_event (void *data); |
| 1075 | #endif | 1079 | #endif |