* change to query-replace-read-args
@ 2002-03-22 7:04 Colin Walters
2002-03-22 10:24 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Colin Walters @ 2002-03-22 7:04 UTC (permalink / raw)
What is the rationale behind the following change?
2001-12-30 Richard M. Stallman <rms@gnu.org>
* replace.el (query-replace-read-args): Immediate error if read-only.
This breaks ibuffer's multi-buffer query replace functionality, as it
uses `query-replace-read-args' to get the arguments, but the ibuffer
buffer itself is read-only. Admittedly `query-replace-read-args' is
somewhat buried in the internals of replace.el, but if I can use it I'd
like to.
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: change to query-replace-read-args
2002-03-22 7:04 change to query-replace-read-args Colin Walters
@ 2002-03-22 10:24 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2002-03-22 10:24 UTC (permalink / raw)
Cc: emacs-devel
> From: Colin Walters <walters@verbum.org>
> Date: 22 Mar 2002 02:04:40 -0500
>
> What is the rationale behind the following change?
A user complained on gnu.emacs.bug that query-replace, when invoked on
a read-only buffer, only barfs after you are prompted for the FROM and
TO strings, which might take a lot of effort to construct.
> * replace.el (query-replace-read-args): Immediate error if read-only.
>
> This breaks ibuffer's multi-buffer query replace functionality, as it
> uses `query-replace-read-args' to get the arguments, but the ibuffer
> buffer itself is read-only.
This could be solved by splitting `query-replace-read-args' into 2
parts, one that does the real work unconditionally, the other that
tests whether the buffer is read-only and only invokes the real code
if it isn't. You could then use the unconditional part in ibuffer.
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-22 10:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-22 7:04 change to query-replace-read-args Colin Walters
2002-03-22 10:24 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).