All the region-based functions that prompt for arguments in the
minibuffer I can think of suffer from the same problem, which is that
the region is lost if while entering an argument in the minibuffer you
happen to use C-y (yank) or jump out of the minibuffer with C-o,
problem being that the region extent is not grabbed until after the
interactive arguments are read.
For example, highlight a region and use any of the {query-,}replace-*
commands. When prompted for the string to replace, yank the text you
just copied and the region is lost and now the operation applies to
the rest of the file rather than the intended region. The same
happens if you leave the minibuffer, for example to copy the string
you want to enter.
Similarly, if you try to prefix-region and yank the prefix string, you
get an error because the region is not active by the time it's needed.
Is there some general solution which would allow the region to be
saved and restored while evaluating the interactive declaration?
Greg
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta