Mercurial > hg > xemacs-beta
view src/s/openbsd.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 | 861f2601a38b |
children |
line wrap: on
line source
/* s/ file for openbsd systems. */ /* Synced up with: FSF 23.1.92. */ /* Synced by: Ben Wing, 2-18-10. */ /* Mostly the same as NetBSD. */ #include "netbsd.h" #if 0 /* Following mrb, this stuff is probably unneeded for XEmacs */ /* This very-badly named symbol is conditionally defined in netbsd.h. Better would be either to not need it in the first place, or to choose a more descriptive name. */ #ifndef LD_SWITCH_SYSTEM_tmp #define LD_SWITCH_SYSTEM_tmp /* empty */ #endif #endif /* 0 */ /* TERMINFO, LIBS_TERMCAP deleted */ #if 0 /* Following mrb, this stuff is probably unneeded for XEmacs */ #undef LD_SWITCH_SYSTEM_TEMACS #undef LD_SWITCH_SYSTEM #ifdef __ELF__ /* Han Boetes <han@mijncomputer.nl> says this is necessary, otherwise Emacs dumps core on elf systems. */ #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp "-Z" /* The version of gcc on OpenBSD doesn't search /usr/local/lib by default. */ #define LD_SWITCH_X_DEFAULT "-L/usr/local/lib" #else #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp #define LD_SWITCH_X_DEFAULT "-L/usr/local/lib" #endif #endif /* 0 */ /* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2 (do not change this comment) */