annotate src/dragdrop.h @ 5855:0bddb59072b6

Look for cased character classes when deciding on case-fold-search, #'isearch lisp/ChangeLog addition: 2015-03-11 Aidan Kehoe <kehoea@parhasard.net> * isearch-mode.el: * isearch-mode.el (isearch-fix-case): Use the new #'no-case-regexp-p function if treating ISEARCH-STRING as a regular expression; otherwise, use the [[:upper:]] character class. * isearch-mode.el (isearch-no-upper-case-p): Removed. * isearch-mode.el (with-caps-disable-folding): Removed. These two haven't been used since 1998. * occur.el (occur-1): Use #'no-case-regexp-p here. * replace.el (perform-replace): Don't use #'no-upper-case-p, use #'no-case-regexp-p or (string-match "[[:upper:]]" ...) as appropriate. * simple.el: * simple.el (no-upper-case-p): Removed. This did two different things, and its secondary function (examining regular expressions) just became much more complicated; move the regular expression functionality to its own function, use character classes when examining non-regular-expressions instead. The code to look for character classes, and the design decision that this should be done, are from GNU, thank you Stefan Monnier. * simple.el (no-case-regexp-p): New. Given a REGEXP, return non-nil if it has nothing to suggest an interactive user wants a case-sensitive search. * simple.el (with-search-caps-disable-folding): * simple.el (with-interactive-search-caps-disable-folding): Update both these macros to use #'no-case-regexp-p.
author Aidan Kehoe <kehoea@parhasard.net>
date Wed, 11 Mar 2015 18:06:15 +0000
parents 308d34e9f07d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
1 /* Definitions for the new drag and drop model;
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
2 created 03-may-98 by Oliver Graf <ograf@fga.de>
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
3 Copyright (C) 1998 Oliver Graf
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
4
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
5 This file is part of XEmacs.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
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
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
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
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
11
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
15 for more details.
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
16
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
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
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
19
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
20 /* Synched up with: Not in FSF. */
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
21
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 282
diff changeset
22 #ifndef INCLUDED_dragdrop_h_
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 282
diff changeset
23 #define INCLUDED_dragdrop_h_
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
24
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
25 /* Drag'n'Drop data types known by XEmacs */
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
26 extern Lisp_Object Qdragdrop_MIME;
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
27 extern Lisp_Object Qdragdrop_URL;
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
28
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
29 /* External defined functions to handle Drag'n'Drop */
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
30 extern Lisp_Object Qdragdrop_drop_dispatch;
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
31
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
32 /* some utility functions */
2367
ecf1ebac70d8 [xemacs-hg @ 2004-11-04 23:05:23 by ben]
ben
parents: 398
diff changeset
33 Ibyte *dnd_url_hexify_string (const Ibyte *s, const Ibyte *m);
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
34
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
35 /* emacs interface */
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
36 void syms_of_dragdrop (void);
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents:
diff changeset
37
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 282
diff changeset
38 #endif /* INCLUDED_dragdrop_h_ */