diff options
| author | Richard M. Stallman | 1997-05-04 01:20:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-04 01:20:08 +0000 |
| commit | 9483d601ec99cd2c786d593005653dfab196d7de (patch) | |
| tree | 0dde929e81b1fdf622d02d868f3a0c42dcdc04cc /lisp/replace.el | |
| parent | 9c1db9293cae2b1b0a3b6a5f0e55e75a9bf1bcdf (diff) | |
| download | emacs-9483d601ec99cd2c786d593005653dfab196d7de.tar.gz emacs-9483d601ec99cd2c786d593005653dfab196d7de.zip | |
(occur): If regexp has uppercase in it, match it case-sensitively.
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 24411f4739f..30109b87ba7 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -348,7 +348,10 @@ Interactively it is the prefix arg. | |||
| 348 | 348 | ||
| 349 | The lines are shown in a buffer named `*Occur*'. | 349 | The lines are shown in a buffer named `*Occur*'. |
| 350 | It serves as a menu to find any of the occurrences in this buffer. | 350 | It serves as a menu to find any of the occurrences in this buffer. |
| 351 | \\[describe-mode] in that buffer will explain how." | 351 | \\[describe-mode] in that buffer will explain how. |
| 352 | |||
| 353 | If REGEXP contains upper case characters (excluding those preceded by | ||
| 354 | \\), the matching is case-sensitive." | ||
| 352 | (interactive | 355 | (interactive |
| 353 | (list (let* ((default (car regexp-history)) | 356 | (list (let* ((default (car regexp-history)) |
| 354 | (input | 357 | (input |
| @@ -371,6 +374,8 @@ It serves as a menu to find any of the occurrences in this buffer. | |||
| 371 | (dir default-directory) | 374 | (dir default-directory) |
| 372 | (linenum 1) | 375 | (linenum 1) |
| 373 | (prevpos (point-min)) | 376 | (prevpos (point-min)) |
| 377 | (case-fold-search (and case-fold-search | ||
| 378 | (isearch-no-upper-case-p regexp t))) | ||
| 374 | (final-context-start (make-marker))) | 379 | (final-context-start (make-marker))) |
| 375 | ;;; (save-excursion | 380 | ;;; (save-excursion |
| 376 | ;;; (beginning-of-line) | 381 | ;;; (beginning-of-line) |