help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: query replace -- error with prompt instead of insert


From: Ian Zimmerman
Subject: Re: query replace -- error with prompt instead of insert
Date: Tue, 13 Sep 2011 14:55:32 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

fork> So if there are two instances of 'foo' and I replace 'foo' with
fork> 'bar' but hit 'y' 10 times, I don't want to insert 8 'y'
fork> characters, but flash and error instead.

Your desires are contradictory.

The very purpose of prompts is to get input from a thinking human before
committing to each action.  If you know in advance you want to always
answer `y', you should use the promptless replace-string.

-- 
Ian Zimmerman
gpg public key: 1024D/C6FF61AD
fingerprint: 66DC D68F 5C1B 4D71 2EE5  BD03 8A00 786C C6FF 61AD
Rule 420: All persons more than eight miles high to leave the court.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]