🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99099

case-fold-search

#99099
From: LUSYSNZ
Date: Fri, 26 Oct 1990 21:37
44 lines
2119 bytes
Relay-Version: VMS News - V5.9C 19/12/89 VAX/VMS V5.3; site vax1.cc.lehigh.edu
Path: vax1.cc.lehigh.edu!vax1.cc.lehigh.edu!netnews.upenn.edu!rutgers!tut.cis.ohio-state.edu!juts.ccc.amdahl.com!kpc00
Newsgroups: gnu.emacs.bug
Subject: case-fold-search
Message-ID: <KPC00.90Oct19021822@JUTS.ccc.amdahl.com>
From: kpc00@juts.ccc.amdahl.com (kpc)
Date: 19 Oct 90 09:18:22 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: my-organization
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 31

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

	Documentation:
	*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.
Technical Details
Message-ID: <138E480083DF800042@VAX1.CC.LEHIGH.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!VAX1.CC.LEHIGH.EDU!LUSYSNZ

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,4f19d4a890460155,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-10-26 14:37:00 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!VAX1.CC.LEHIGH.EDU!LUSYSNZ
From: LUSYSNZ@VAX1.CC.LEHIGH.EDU
Newsgroups: gnu.emacs.bug
Subject: case-fold-search
Message-ID: <138E480083DF800042@VAX1.CC.LEHIGH.EDU>
Date: 26 Oct 90 21:37:00 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: Gnus Not Usenet
Lines: 44
Approved: bug-gnu-emacs@prep.ai.mit.edu
Posted: Fri Oct 26 22:37:00 1990