Mercurial > hg > xemacs-beta
annotate src/console-gtk.h @ 5632:bd80d9103fc8
Integrate CL code better into core, remove obsolete compatibility code.
lisp/ChangeLog addition:
2011-12-30 Aidan Kehoe <kehoea@parhasard.net>
* bytecomp.el:
Call #'cl-compile-time-init explicitly here, don't rely on
bytecomp-load-hook for what is core functionality.
* cl-extra.el:
* cl-extra.el (require):
* cl-extra.el (make-random-state):
* cl-extra.el (random-state-p):
* cl-extra.el (make-hashtable): Removed.
* cl-extra.el (make-weak-hashtable): Removed.
* cl-extra.el (make-key-weak-hashtable): Removed.
* cl-extra.el (make-value-weak-hashtable): Removed.
* cl-extra.el ('hashtablep): Removed.
* cl-extra.el ('hashtable-fullness): Removed.
* cl-extra.el ('hashtable-test-function): Removed.
* cl-extra.el ('hashtable-type): Removed.
* cl-extra.el ('hashtable-size): Removed.
* cl-extra.el ('copy-hashtable): Removed.
* cl-extra.el (cl-builtin-gethash): Removed.
* cl-extra.el (cl-builtin-remhash): Removed.
* cl-extra.el (cl-builtin-clrhash): Removed.
* cl-extra.el (cl-builtin-maphash): Removed.
* cl-extra.el ('cl-gethash): Removed.
* cl-extra.el ('cl-puthash): Removed.
* cl-extra.el ('cl-remhash): Removed.
* cl-extra.el ('cl-clrhash): Removed.
* cl-extra.el ('cl-maphash): Removed.
* cl-extra.el ('cl-make-hash-table): Removed.
* cl-extra.el ('cl-hash-table-p): Removed.
* cl-extra.el ('cl-hash-table-count): Removed.
* cl-extra.el (cl-prettyexpand):
* cl-extra.el (names):
Remove compatibility aliases from this file.
In #'cl-prettyexpand, if FULL is nil, don't expand return-from
either, for symmetry with not expanding block.
Drop cl-extra-load-hook, it's useless when cl-extra is dumped
(since third-party code can't use it, and dumped code shouldn't
use it.)
* cl-macs.el:
* cl-macs.el (cl-pop2):
* cl-macs.el (defun*):
* cl-macs.el (cl-parse-loop-clause):
Remove some no-longer-needed compatibility kludges.
* cl.el:
* cl.el ('cl-map-extents): Removed.
* cl.el (cl-random-time):
* cl.el (list*): New, moved back from subr.el, given a shorter
implementation.
* cl.el ('cl-member): Removed.
* cl.el ('cl-floor): Removed.
* cl.el ('cl-ceiling): Removed.
* cl.el ('cl-truncate): Removed.
* cl.el ('cl-round): Removed.
* cl.el ('cl-mod): Removed.
Remove some compatibility aliases; these may conflict with
package usage, in which case the packages need to be updated, the
new names are available in 21.4, and that's the most recent
version we support.
* cl.el (cl-hacked-flag): Removed.
* cl.el (cl-hack-byte-compiler): Removed.
* subr.el:
* subr.el (list*): Moved back to cl.el.
* update-elc-2.el (batch-update-elc-2):
* update-elc.el (do-autoload-commands):
Add an autoload for cl-compile-time-init in these two files, they
run on bare temacs, auto-autoload isn't available to them, and now
bytecomp calls cl-compile-time-init explicitly.
* cl-compat.el: Removed. This file was long obsolete.
man/ChangeLog addition:
2011-12-30 Aidan Kehoe <kehoea@parhasard.net>
* cl.texi (Top):
* cl.texi (Usage):
* cl.texi (Organization):
* cl.texi (Efficiency Concerns):
* cl.texi (Common Lisp Compatibility):
Remove documentation of cl-compat, now it's deleted.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Fri, 30 Dec 2011 16:05:31 +0000 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
462 | 1 /* Define X specific console, device, and frame object for XEmacs. |
2 Copyright (C) 1989, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. | |
3 Copyright (C) 1994, 1995 Board of Trustees, University of Illinois. | |
1318 | 4 Copyright (C) 2002, 2003 Ben Wing. |
462 | 5 |
6 This file is part of XEmacs. | |
7 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5074
diff
changeset
|
8 XEmacs is free software: you can redistribute it and/or modify it |
462 | 9 under the terms of the GNU General Public License as published by the |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5074
diff
changeset
|
10 Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5074
diff
changeset
|
11 option) any later version. |
462 | 12 |
13 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5074
diff
changeset
|
19 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
462 | 20 |
21 /* Synched up with: Not in FSF. */ | |
22 | |
23 | |
24 /* Authorship: | |
25 | |
26 Ultimately based on FSF, then later on JWZ work for Lemacs. | |
27 Rewritten over time by Ben Wing and Chuck Thompson (original | |
28 multi-device work by Chuck Thompson). | |
29 */ | |
30 | |
31 #ifndef _XEMACS_CONSOLE_GTK_H_ | |
32 #define _XEMACS_CONSOLE_GTK_H_ | |
33 | |
34 #ifdef HAVE_GTK | |
35 | |
36 #include "console.h" | |
4908
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
37 #include "sysgtk.h" |
462 | 38 |
39 /* Variables associated with the X display frame this emacs is using. */ | |
40 | |
41 extern Lisp_Object Vx_gc_pointer_shape; | |
42 extern Lisp_Object Vx_scrollbar_pointer_shape; | |
43 | |
44 /* Number of pixels below each line. */ | |
45 extern int gtk_interline_space; | |
46 | |
47 extern int gtk_selection_timeout; | |
48 | |
2168 | 49 struct frame *gtk_widget_to_frame (GtkWidget *); |
462 | 50 struct frame *gtk_any_window_to_frame (struct device *d, GdkWindow *); |
51 struct frame *gtk_window_to_frame (struct device *d, GdkWindow *); | |
52 struct frame *gtk_any_widget_or_parent_to_frame (struct device *d, GtkWidget *widget); | |
53 struct frame *decode_gtk_frame (Lisp_Object); | |
54 struct device *gtk_any_window_to_device (GdkWindow *); | |
55 struct device *decode_gtk_device (Lisp_Object); | |
56 void gtk_handle_property_notify (GdkEventProperty *event); | |
57 | |
58 void signal_special_gtk_user_event (Lisp_Object channel, Lisp_Object function, | |
59 Lisp_Object object); | |
60 void gtk_output_string (struct window *w, struct display_line *dl, | |
867 | 61 Ichar_dynarr *buf, int xpos, int xoffset, |
462 | 62 int start_pixpos, int width, face_index findex, |
63 int cursor, int cursor_start, int cursor_width, | |
64 int cursor_height); | |
5074
8af6a32b170d
Modify XLIKE_get_gc's prototype
Didier Verna <didier@lrde.epita.fr>
parents:
4908
diff
changeset
|
65 GdkGC *gtk_get_gc (struct frame *f, |
8af6a32b170d
Modify XLIKE_get_gc's prototype
Didier Verna <didier@lrde.epita.fr>
parents:
4908
diff
changeset
|
66 Lisp_Object font, Lisp_Object fg, Lisp_Object bg, |
714 | 67 Lisp_Object bg_pmap, Lisp_Object lwidth); |
462 | 68 |
69 int gtk_initialize_frame_menubar (struct frame *f); | |
70 void gtk_init_modifier_mapping (struct device *d); | |
71 | |
72 void Initialize_Locale (void); | |
73 | |
74 extern Lisp_Object Vgtk_initial_argv_list; /* #### ugh! */ | |
75 | |
76 const char *gtk_event_name (GdkEventType event_type); | |
778 | 77 |
78 void reinit_console_type_create_gtk (void); | |
79 | |
80 void emacs_gtk_selection_handle (GtkWidget *, | |
81 GtkSelectionData *selection_data, | |
82 guint info, | |
83 guint time_stamp, | |
84 gpointer data); | |
85 void emacs_gtk_selection_clear_event_handle (GtkWidget *widget, | |
86 GdkEventSelection *event, | |
87 gpointer data); | |
88 void emacs_gtk_selection_received (GtkWidget *widget, | |
89 GtkSelectionData *selection_data, | |
90 gpointer user_data); | |
91 | |
1346 | 92 typedef unsigned int GUI_ID; |
93 extern GUI_ID new_gui_id (void); | |
94 | |
95 extern void gcpro_popup_callbacks (GUI_ID id, Lisp_Object data); | |
96 extern void ungcpro_popup_callbacks (GUI_ID id); | |
97 extern Lisp_Object get_gcpro_popup_callbacks (GUI_ID id); | |
98 | |
4908
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
99 int gtk_event_to_emacs_event (struct frame *frame, |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
100 GdkEvent *gdk_event, |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
101 struct Lisp_Event *emacs_event); |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
102 |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
103 gint emacs_gtk_key_event_handler(GtkWidget *widget, GdkEventKey *event); |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
104 gint emacs_gtk_button_event_handler(GtkWidget *widget, GdkEventButton *event); |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
105 gint emacs_gtk_motion_event_handler (GtkWidget *widget, GdkEventMotion *event); |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
106 |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
107 gboolean emacs_shell_event_handler (GtkWidget *wid /* unused */, |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
108 GdkEvent *event, |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
109 gpointer closure); |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
110 |
462 | 111 #endif /* HAVE_GTK */ |
112 #endif /* _XEMACS_DEVICE_X_H_ */ |