Mercurial > hg > xemacs-beta
comparison lisp/ChangeLog @ 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 | ccb0cff115d2 |
| children | 27876789edc5 |
comparison
equal
deleted
inserted
replaced
| 5854:ccb0cff115d2 | 5855:0bddb59072b6 |
|---|---|
| 1 2015-03-11 Aidan Kehoe <kehoea@parhasard.net> | |
| 2 | |
| 3 * isearch-mode.el: | |
| 4 * isearch-mode.el (isearch-fix-case): | |
| 5 Use the new #'no-case-regexp-p function if treating ISEARCH-STRING | |
| 6 as a regular expression; otherwise, use the [[:upper:]] character | |
| 7 class. | |
| 8 * isearch-mode.el (isearch-no-upper-case-p): Removed. | |
| 9 * isearch-mode.el (with-caps-disable-folding): Removed. | |
| 10 These two haven't been used since 1998. | |
| 11 * occur.el (occur-1): | |
| 12 Use #'no-case-regexp-p here. | |
| 13 * replace.el (perform-replace): | |
| 14 Don't use #'no-upper-case-p, use #'no-case-regexp-p or | |
| 15 (string-match "[[:upper:]]" ...) as appropriate. | |
| 16 * simple.el: | |
| 17 * simple.el (no-upper-case-p): Removed. This did two different | |
| 18 things, and its secondary function (examining regular expressions) | |
| 19 just became much more complicated; move the regular expression | |
| 20 functionality to its own function, use character classes when | |
| 21 examining non-regular-expressions instead. | |
| 22 The code to look for character classes, and the design decision | |
| 23 that this should be done, are from GNU, thank you Stefan Monnier. | |
| 24 * simple.el (no-case-regexp-p): New. | |
| 25 Given a REGEXP, return non-nil if it has nothing to suggest an | |
| 26 interactive user wants a case-sensitive search. | |
| 27 * simple.el (with-search-caps-disable-folding): | |
| 28 * simple.el (with-interactive-search-caps-disable-folding): | |
| 29 Update both these macros to use #'no-case-regexp-p. | |
| 30 | |
| 1 2015-03-11 Aidan Kehoe <kehoea@parhasard.net> | 31 2015-03-11 Aidan Kehoe <kehoea@parhasard.net> |
| 2 | 32 |
| 3 Correct #'clear-message and friends so the START and END supplied | 33 Correct #'clear-message and friends so the START and END supplied |
| 4 to #'append-message are reflected when restoring messages from the | 34 to #'append-message are reflected when restoring messages from the |
| 5 message stack. | 35 message stack. |
