Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!ucbcad!ucbvax!LF-SERVER-2.BBN.COM!jr From: jr@LF-SERVER-2.BBN.COM (John Robinson) Newsgroups: comp.emacs Subject: Re: query-replace anomaly Message-ID: <8711091504.AA25772@ucbvax.Berkeley.EDU> Date: Mon, 9-Nov-87 10:05:09 EST Article-I.D.: ucbvax.8711091504.AA25772 Posted: Mon Nov 9 10:05:09 1987 Date-Received: Wed, 11-Nov-87 06:01:17 EST References: <182@yetti.UUCP> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: jr@ALEXANDER.BBN.COM Organization: The ARPA Internet Lines: 19 No fix should be necessary, according to the documentation: query-replace: Replace some occurrences of FROM-STRING with TO-STRING. As each match is found, the user must type a character saying what to do with it. For directions, type C-h at that time. Preserves case in each replacement if case-replace and case-fold-search are non-nil and FROM-STRING has no uppercase letters. Third arg DELIMITED (prefix arg if interactive) non-nil means replace only matches surrounded by word boundaries. If you set case-replace and case-fold-search and only use lower case in the FROM-STRING (first) argument, capitalization of the replacement should match that of the replaced text. It's always worked fine for me. /jr jr@bbn.com or jr@bbn.uucp