Mercurial > hg > xemacs-beta
annotate src/EmacsManagerP.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 |
rev | line source |
---|---|
0 | 1 /* Copyright (C) 1995 Free Software Foundation, Inc. |
2 Copyright (C) 1993-1995 Sun Microsystems, Inc. | |
3 Copyright (C) 1995 Ben Wing. | |
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:
398
diff
changeset
|
7 XEmacs is free software: you can redistribute it and/or modify it |
0 | 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:
398
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:
398
diff
changeset
|
10 option) any later version. |
0 | 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:
398
diff
changeset
|
18 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
0 | 19 |
20 /* Synched up with: Not in FSF. */ | |
21 | |
22 /* Written by Ben Wing. */ | |
23 | |
398 | 24 #ifndef INCLUDED_EmacsManagerP_h_ |
25 #define INCLUDED_EmacsManagerP_h_ | |
0 | 26 |
27 | |
28 #include "xintrinsicp.h" | |
29 #ifdef LWLIB_USES_MOTIF | |
30 #include "xmmanagerp.h" | |
31 #endif | |
32 #include "EmacsManager.h" | |
33 | |
34 typedef struct { /* new fields for EmacsManager class */ | |
35 int dummy; | |
36 } EmacsManagerClassPart; | |
37 | |
38 typedef struct _EmacsManagerClassRec { /* full class record declaration */ | |
39 CoreClassPart core_class; | |
40 CompositeClassPart composite_class; | |
41 #ifdef LWLIB_USES_MOTIF | |
42 ConstraintClassPart constraint_class; | |
43 XmManagerClassPart manager_class; | |
44 #endif | |
45 EmacsManagerClassPart emacs_manager_class; | |
46 } EmacsManagerClassRec; | |
47 | |
48 typedef struct { /* new fields for EmacsManager widget */ | |
49 XtCallbackList resize_callback; | |
50 XtCallbackList query_geometry_callback; | |
51 XtPointer user_data; | |
52 } EmacsManagerPart; | |
53 | |
54 typedef struct _EmacsManagerRec { /* full instance record */ | |
55 CorePart core; | |
56 CompositePart composite; | |
57 #ifdef LWLIB_USES_MOTIF | |
58 ConstraintPart constraint; | |
59 XmManagerPart manager; | |
60 #endif | |
61 EmacsManagerPart emacs_manager; | |
62 } EmacsManagerRec; | |
63 | |
64 extern EmacsManagerClassRec emacsManagerClassRec; /* class pointer */ | |
65 | |
398 | 66 #endif /* INCLUDED_EmacsManagerP_h_ */ |