aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1996-12-07 22:17:50 +0000
committerRichard M. Stallman1996-12-07 22:17:50 +0000
commit590571980ed1a8f415c927fd7c728f1e2fa11fb6 (patch)
treefdb87bc752b17e4ae74908ab95251fb93fe5f219 /lisp
parentc8553837cd0a1b0a87e4e46363d81bb99459f0ff (diff)
downloademacs-590571980ed1a8f415c927fd7c728f1e2fa11fb6.tar.gz
emacs-590571980ed1a8f415c927fd7c728f1e2fa11fb6.zip
(isearch-no-upper-case-p): Use downcase
so that we handle arbitrary kinds of casification.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/isearch.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 1da6f0d9f65..327ec264cc8 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1417,11 +1417,15 @@ If there is no completion possible, say so and continue searching."
1417 "Return t if there are no upper case chars in STRING. 1417 "Return t if there are no upper case chars in STRING.
1418If REGEXP-FLAG is non-nil, disregard letters preceded by `\\' (but not `\\\\') 1418If REGEXP-FLAG is non-nil, disregard letters preceded by `\\' (but not `\\\\')
1419since they have special meaning in a regexp." 1419since they have special meaning in a regexp."
1420 (let ((case-fold-search nil)) 1420 (let (quote-flag (i 0) (len (length string)) found)
1421 (not (string-match (if regexp-flag "\\(^\\|\\\\\\\\\\|[^\\]\\)[A-Z]" 1421 (while (and (not found) (< i len))
1422 "[A-Z]") 1422 (let ((char (aref string i)))
1423 string)))) 1423 (if (and regexp-flag (eq char ?\\))
1424 1424 (setq quote-flag (not quote-flag))
1425 (if (and (not quote-flag) (not (eq char (downcase char))))
1426 (setq found t))))
1427 (setq i (1+ i)))
1428 (not found)))
1425 1429
1426;; Portability functions to support various Emacs versions. 1430;; Portability functions to support various Emacs versions.
1427 1431