Mercurial > hg > xemacs-beta
annotate src/dragdrop.h @ 5502:5b08be74bb53
Be better about recognising side-effect-free forms, byte-optimize.el.
2011-05-07 Aidan Kehoe <kehoea@parhasard.net>
* byte-optimize.el:
* byte-optimize.el (byte-optimize-form-code-walker):
Call #'byte-optimize-side-effect-free-p on the form, rather than
just checking the plist of the form's car.
* byte-optimize.el (side-effect-free-fns):
Move the CL functions into their alphabetical place in the list.
* byte-optimize.el (function):
* byte-optimize.el (byte-optimize-side-effect-free-p): New.
Function returning non-nil if a funcall has no side-effects, which
handles things like (remove* item list :key 'car) and
(remove-if-not #'integerp list).
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 07 May 2011 11:45:20 +0100 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
282 | 1 /* Definitions for the new drag and drop model; |
2 created 03-may-98 by Oliver Graf <ograf@fga.de> | |
3 Copyright (C) 1998 Oliver Graf | |
4 | |
5 This file is part of XEmacs. | |
6 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
7 XEmacs is free software: you can redistribute it and/or modify it |
282 | 8 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:
2367
diff
changeset
|
9 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:
2367
diff
changeset
|
10 option) any later version. |
282 | 11 |
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 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:
2367
diff
changeset
|
18 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
282 | 19 |
20 /* Synched up with: Not in FSF. */ | |
21 | |
398 | 22 #ifndef INCLUDED_dragdrop_h_ |
23 #define INCLUDED_dragdrop_h_ | |
282 | 24 |
25 /* Drag'n'Drop data types known by XEmacs */ | |
26 extern Lisp_Object Qdragdrop_MIME; | |
27 extern Lisp_Object Qdragdrop_URL; | |
28 | |
29 /* External defined functions to handle Drag'n'Drop */ | |
30 extern Lisp_Object Qdragdrop_drop_dispatch; | |
31 | |
32 /* some utility functions */ | |
2367 | 33 Ibyte *dnd_url_hexify_string (const Ibyte *s, const Ibyte *m); |
282 | 34 |
35 /* emacs interface */ | |
36 void syms_of_dragdrop (void); | |
37 | |
398 | 38 #endif /* INCLUDED_dragdrop_h_ */ |