Mercurial > hg > xemacs-beta
annotate lisp/gtk-mouse.el @ 5553:62edcc6a11ec
Add an assertion about argument order to #'apply-partially compiler macro
lisp/ChangeLog addition:
2011-08-24 Aidan Kehoe <kehoea@parhasard.net>
* cl-macs.el (apply-partially):
Add an assertion to this compiler macro, requiring that the order
of the placeholders corresponding to the arguments in the
constants vector of the constructed compiled function be the same
as the order of the arguments to #'apply-partially.
tests/ChangeLog addition:
2011-08-24 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-tests.el:
Add a test of apply partially that depends on the relative order
of its arguments.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Wed, 24 Aug 2011 11:06:41 +0100 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
462 | 1 ;;; gtk-mouse.el --- Mouse support for GTK window system. |
2 | |
3 ;; Copyright (C) 1985, 1992-4, 1997 Free Software Foundation, Inc. | |
4 ;; Copyright (C) 1995, 1996 Ben Wing. | |
5 ;; Copyright (C) 2000 William Perry | |
6 | |
7 ;; Maintainer: XEmacs Development Team | |
8 ;; Keywords: mouse, dumped | |
9 | |
10 ;; This file is part of XEmacs. | |
11 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
12 ;; XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
13 ;; under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
14 ;; 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:
462
diff
changeset
|
15 ;; option) any later version. |
462 | 16 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
17 ;; XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
18 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
19 ;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
20 ;; for more details. |
462 | 21 |
22 ;; 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:
462
diff
changeset
|
23 ;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
462 | 24 |
25 ;;; Synched up with: Not synched. | |
26 | |
27 ;;; Commentary: | |
28 | |
29 ;; This file is dumped with XEmacs (when GTK support is compiled in). | |
30 | |
31 ;;; Code: | |
32 | |
33 (defvar gtk-pointers-initialized nil) | |
34 | |
35 (defun gtk-init-pointers () | |
36 (if gtk-pointers-initialized | |
37 nil | |
38 (set-glyph-image text-pointer-glyph | |
39 [gtk-resource :resource-type cursor :resource-id xterm] | |
40 'gtk) | |
41 (set-glyph-image nontext-pointer-glyph | |
42 [gtk-resource :resource-type cursor :resource-id xterm] | |
43 'gtk) | |
44 (set-glyph-image selection-pointer-glyph | |
45 [gtk-resource :resource-type cursor :resource-id top-left-arrow] | |
46 'gtk) | |
47 (set-glyph-image modeline-pointer-glyph | |
48 [gtk-resource :resource-type cursor :resource-id sb-v-double-arrow] | |
49 'gtk) | |
50 (set-glyph-image divider-pointer-glyph | |
51 [gtk-resource :resource-type cursor :resource-id sb-h-double-arrow] | |
52 'gtk) | |
53 (set-glyph-image busy-pointer-glyph | |
54 [gtk-resource :resource-type cursor :resource-id watch] | |
55 'gtk) | |
56 (set-glyph-image gc-pointer-glyph | |
57 [gtk-resource :resource-type cursor :resource-id watch] | |
58 'gtk) | |
59 | |
60 (when (featurep 'toolbar) | |
61 (set-glyph-image toolbar-pointer-glyph | |
62 [gtk-resource :resource-type cursor :resource-id top-left-arrow] | |
63 'gtk)) | |
64 | |
65 (when (featurep 'scrollbar) | |
66 (set-glyph-image scrollbar-pointer-glyph | |
67 [gtk-resource :resource-type cursor :resource-id top-left-arrow] | |
68 'gtk)) | |
69 | |
70 (setq gtk-pointers-initialized t))) |