Article View: gnu.emacs.bug
Article #98338query-replace-regexp gets misaligned (18.57)
From: Dan_Jacobson
Date: Sun, 18 Aug 1991 00:27
Date: Sun, 18 Aug 1991 00:27
22 lines
1676 bytes
1676 bytes
>>>>> On Sat, 17 Aug 91 15:43:03 -0400, rms@gnu.ai.mit.edu (Richard Stallman) said: Dan> Put the cursor on the beginning of this line: Dan> a "$Today Dan> Do (query-replace-regexp "[^A-z]" " " nil) Dan> It asks about '"', you say no with the DEL key. Dan> It asks about '$', you say yes with the space bar. Dan> It replaces the '"'!!!! etc. Dan> Emacs 18.57 on SunOS 4.0.3. rms> I do not observe this problem. It asks about the space, then about rms> the double quote, then about the $. If I say no to the first two, rms> then yes for the $, only the $ is replaced. Ah ha, emacs' habit of putting the cursor after the string to be replaced occasionally fools the average person when the string to be replaced is only one character long. One would expect the cursor to be sitting on top of the candidate character, instead of after it. The only way to fix the problem (err, mainly preserve my rumpled bug reporting honor :-) ) is to put a little note about it somewhere in the documentation.
Technical Details
Message-ID:
<1991Aug17Sa192654.Dan_Jacobson@ATT.COM>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!att.com!Dan_JacobsonReferences:
<1991Aug14We083949.Dan_Jacobson@ATT.COM>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,2a066e6e5f5b4a3c X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-08-17 17:27:00 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!att.com!Dan_Jacobson From: Dan_Jacobson@att.com Newsgroups: gnu.emacs.bug Subject: query-replace-regexp gets misaligned (18.57) Message-ID: <1991Aug17Sa192654.Dan_Jacobson@ATT.COM> Date: 18 Aug 91 00:27:00 GMT References: <1991Aug14We083949.Dan_Jacobson@ATT.COM> Sender: gnulists@ai.mit.edu Reply-To: Dan_Jacobson@ihlpz.att.com Distribution: gnu Organization: GNUs Not Usenet Lines: 22 Approved: bug-gnu-emacs@prep.ai.mit.edu