diff options
| author | Stefan Monnier | 2007-01-17 13:20:47 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-01-17 13:20:47 +0000 |
| commit | c5f847b6b3c1733731e079c3adaca0c30ed69522 (patch) | |
| tree | e32082f660271821c02758af47f22bd095d7c1ab | |
| parent | 4186606c8d157a59db2d5d8ab8a66b5c36add8af (diff) | |
| download | emacs-c5f847b6b3c1733731e079c3adaca0c30ed69522.tar.gz emacs-c5f847b6b3c1733731e079c3adaca0c30ed69522.zip | |
(isearch-no-upper-case-p): Look for [:upper:] as well.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/isearch.el | 15 |
2 files changed, 17 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index db05c6b76e8..517dc9dd962 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-01-17 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * isearch.el (isearch-no-upper-case-p): Look for [:upper:] as well. | ||
| 4 | |||
| 1 | 2007-01-16 martin rudalics <rudalics@gmx.at> | 5 | 2007-01-16 martin rudalics <rudalics@gmx.at> |
| 2 | 6 | ||
| 3 | * textmodes/ispell.el (ispell-dictionary-alist-3): Replace "---" | 7 | * textmodes/ispell.el (ispell-dictionary-alist-3): Replace "---" |
diff --git a/lisp/isearch.el b/lisp/isearch.el index ca569eeff16..28d309f88c4 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; isearch.el --- incremental search minor mode | 1 | ;;; isearch.el --- incremental search minor mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, | 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, |
| 4 | ;; 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | 4 | ;; 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> | 6 | ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -2235,7 +2235,18 @@ since they have special meaning in a regexp." | |||
| 2235 | (setq found t)) | 2235 | (setq found t)) |
| 2236 | (setq quote-flag nil))) | 2236 | (setq quote-flag nil))) |
| 2237 | (setq i (1+ i))) | 2237 | (setq i (1+ i))) |
| 2238 | (not found))) | 2238 | (not (or found |
| 2239 | ;; Even if there's no uppercase char, we want to detect the use | ||
| 2240 | ;; of [:upper:] or [:lower:] char-class, which indicates | ||
| 2241 | ;; clearly that the user cares about case distinction. | ||
| 2242 | (and regexp-flag (string-match "\\[:\\(upp\\|low\\)er:]" string) | ||
| 2243 | (condition-case err | ||
| 2244 | (progn | ||
| 2245 | (string-match (substring string 0 (match-beginning 0)) | ||
| 2246 | "") | ||
| 2247 | nil) | ||
| 2248 | (invalid-regexp | ||
| 2249 | (equal "Unmatched [ or [^" (cadr err))))))))) | ||
| 2239 | 2250 | ||
| 2240 | ;; Portability functions to support various Emacs versions. | 2251 | ;; Portability functions to support various Emacs versions. |
| 2241 | 2252 | ||