Mercurial > hg > xemacs-beta
annotate src/m/powerpc.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 | 1f0b15040456 |
children |
rev | line source |
---|---|
428 | 1 /* machine description file for Power PC |
2 Copyright (C) 1987, 1994 Free Software Foundation, Inc. | |
3 Copyright (C) 1995 Board of Trustees, University of Illinois | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
4 Copyright (C) 2010 Ben Wing. |
428 | 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:
2367
diff
changeset
|
8 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:
2367
diff
changeset
|
9 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:
2367
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:
2367
diff
changeset
|
11 option) any later version. |
428 | 12 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
13 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:
2367
diff
changeset
|
14 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:
2367
diff
changeset
|
15 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:
2367
diff
changeset
|
16 for more details. |
428 | 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:
2367
diff
changeset
|
19 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
428 | 20 |
21 /* The following line tells the configuration script what sort of | |
22 operating system this machine is likely to run. | |
23 USUAL-OPSYS="solaris2-5" */ | |
24 | |
25 #ifdef NOT_C_CODE | |
26 # define POWERPC | |
27 #else | |
28 # ifndef powerpc | |
29 # define powerpc | |
30 # endif | |
31 #endif | |
32 | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
33 /* Delete C_OPTIMIZE_SWITCH stuff, moved (currently brokenly) to |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
34 configure.ac */ |
428 | 35 |
36 #ifndef __linux__ | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
37 |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
38 #ifdef ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
39 |
428 | 40 /* Data type of load average, as read out of kmem. */ |
41 | |
42 #define LOAD_AVE_TYPE long | |
43 | |
44 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
45 | |
46 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | |
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
47 |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
48 #endif /* ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF */ |
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
49 |
428 | 50 #else /* mklinux */ |
51 | |
52 /* Define addresses, macros, change some setup for dump */ | |
53 | |
54 #define NO_REMAP | |
55 | |
56 #define N_BADMAG(x) BADMAG(x) | |
57 #define N_TXTOFF(x) A_TEXTPOS(x) | |
58 #define N_SYMOFF(x) A_SYMPOS(x) | |
59 /* #define A_TEXT_OFFSET(HDR) sizeof(HDR) */ | |
60 /* #define ADJUST_EXEC_HEADER \ | |
61 unexec_text_start += sizeof(hdr); \ | |
62 unexec_data_start = ohdr.a_dbase | |
63 */ | |
64 #undef ADDR_CORRECT | |
65 #define ADDR_CORRECT(x) ((int)(x)) | |
66 | |
67 /* Specify the font for X to use. | |
68 This used to be Rom14.500; that's nice on the X server shipped with | |
69 the RS/6000, but it's not available on other servers. */ | |
70 #define X_DEFAULT_FONT "fixed" | |
71 | |
72 /* Here override various assumptions in ymakefile */ | |
73 | |
74 /* #undef START_FILES */ | |
75 /* #define HAVE_SYSVIPC */ | |
76 | |
77 /* Don't try to include sioctl.h or ptem.h. */ | |
78 #undef NEED_SIOCTL | |
79 #undef NEED_PTEM_H | |
80 | |
81 #define ORDINARY_LINK | |
82 /*#define LD_SWITCH_MACHINE -T ${srcdir}/src/ppc.ldscript*/ | |
83 #endif |