Post by kp » Sat, 20 Oct 1990 18:33:56

Here is a quick suggestion for case-fold-search values for GNU emacs
and any other editors that don't have their equivalents already:

        nil     searches don't fold
        'up     searches fold up but not down
        'down   searches fold down but not up
        t       searches fold both directions

With 'up, for example, /aBc/ matches /aBc/ and /ABc/, but not /AbC/.

Another suggestion is to allow quoting in a string or a regexp to have
a character not be folded.

e.g.  /\Abc/ when c-f-s is t matches /Abc/ but not /abc/.

(In GNU emacs 18.55, it's this:)

        case-fold-search's value is t

        *Non-nil if searches should ignore case.
        Automatically becomes local when set in any fashion.

These changes would be nice in grep(1) and elsewhere also.  pc-write
is the only program that I know of that can do 'up.

If you do not receive a reply from me, please resend your mail;
occasionally this site's mail gets delayed.

Neither representing any company nor, necessarily, myself.



Post by Phil Yastr » Sat, 17 Nov 1990 13:16:37

I use emacs regularly and have no clue as to the meaning of this base note.
Am I missing something?


1. How to temporarily toggle case-fold-search for tags searches?

I've defined the following functions (for Epoch 2.0 and GNU Emacs 18.54)
to allow temporary toggling of case sensativity during incremental
searches. However, I'd like to add similar functions for tags-search and
tags-query-replace. I tried the obvious (that is 'letting'
case-fold-search and calling the appropriate function), but the
case-fold-search variable is define buffer local - so this only works on
the buffer where the search originates.

Is there a way to do what I want to do?

Look out! There are llamas!

    Steve Tynor
    Georgia Tech Research Institute

------ cut here -----
;; $Id: case-isearch.el,v 1.2 92/01/13 18:12:10 tynor Exp Locker: tynor $

;; Steve Tynor  13 jan 92

(defun isearch-forward-case (arg)
"Like isearch-forward except a prefix ARG temporarily toggles case-sensativity"  
  (interactive "p")
  (let ((case-fold-search (not case-fold-search)))
(global-set-key "\C-s" 'isearch-forward-case)

(defun isearch-backward-case (arg)
"Like isearch-backward except a prefix ARG temporarily toggles case-sensativity"  
  (interactive "p")
  (let ((case-fold-search (not case-fold-search)))
(global-set-key "\C-r" 'isearch-backward-case)

2. Sequential record blocking

3. case-fold-search in dired

4. HP 200LX/Omnibook IR port control programs?

5. string-match uses minibuffer's value of case-fold-search

6. GCC2.1

7. ksh-mode needs case-fold-search

8. parallel install of OS

9. case-fold-search to default to nil

10. Case-fold-search in multiple buffers

11. Toggling case folding in isearch

12. Case Folding

13. foreign alphabets and case folding