bard@THEORY.LCS.MIT.EDU.UUCP (03/30/87)
One of the few cute tricks that I have found in other editors that is missing from (gnu) emacs is semi-case-sensitive searching, in which lowercase letters match the corresponding uppercase letters, but uppercase letters do not match lowercase ones. This seems like a better default choice than either case-fold-search = nil (which tends to miss words at the beginnings of sentences, or variable names with variant capitalization), or non-nil (which tends to get too many matches). Does anyone understand the C code of "looking-at" well enough to tell me how to add it? Thanks, Bard Bloom (Disclaimer: My employer has, to the best of my knowledge, never thought about this style of searching and probably won't unless I mention it to him.)
thomas@spline.UUCP (04/05/87)
I implemented a variant on this ("semi" case sensitive searches) for gosmacs a long time ago in the incremental search code. If the user typed a capital letter in the search string, then I turned off case-fold-search. Thus, you could search in a case-sensitive way by typing in a case-sensitive way (assuming, of course, that you weren't looking for something that was all lower case). It was really easy to do (modulo the problems of making sure to unwind it properly) and required no C code changes at all. =Spencer ({ihnp4,decvax}!utah-cs!thomas, thomas@cs.utah.edu)