changeset 17638:9ece72836276

(occur): If regexp has uppercase in it, match it case-sensitively.
author Richard M. Stallman <rms@gnu.org>
date Sun, 04 May 1997 01:20:08 +0000
parents b63c3782cb4c
children 5339baa0a334
files lisp/replace.el
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/replace.el	Sat May 03 22:35:40 1997 +0000
+++ b/lisp/replace.el	Sun May 04 01:20:08 1997 +0000
@@ -348,7 +348,10 @@
 
 The lines are shown in a buffer named `*Occur*'.
 It serves as a menu to find any of the occurrences in this buffer.
-\\[describe-mode] in that buffer will explain how."
+\\[describe-mode] in that buffer will explain how.
+
+If REGEXP contains upper case characters (excluding those preceded by
+\\), the matching is case-sensitive."
   (interactive
    (list (let* ((default (car regexp-history))
 		(input
@@ -371,6 +374,8 @@
 	(dir default-directory)
 	(linenum 1)
 	(prevpos (point-min))
+	(case-fold-search  (and case-fold-search
+				(isearch-no-upper-case-p regexp t)))
 	(final-context-start (make-marker)))
 ;;;	(save-excursion
 ;;;	  (beginning-of-line)