# HG changeset patch # User Richard M. Stallman # Date 862708808 0 # Node ID 9ece72836276b0956c88b4637a8b95b576f531f7 # Parent b63c3782cb4cda8deddfd82c984978e8ef9e7518 (occur): If regexp has uppercase in it, match it case-sensitively. diff -r b63c3782cb4c -r 9ece72836276 lisp/replace.el --- 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)