Subject: Re: bug#62857: CUA rectangle mode in occur edit mode

From: Daniel Fleischer <[email-masked]>
Date: Sat, 22 Apr 2023 17:14:54 +0300

Eli Zaretskii [2023-04-22 Sat 12:06] wrote:

> Could you please post a recipe for reproducing this problem, starting
> from "emacs -Q"?

Recipe:

 - `find-file` some file with text. 
 - `M-x occur`  and search some string. 
 - Move to the occur results buffer. 
 - `e` to edit it using `occur-edit-mode`. 
 - Call `M-x cua-rectangle-mark-mode`. 
 - Create some multiline block (move cursor down and right).
 - Start inserting text, e.g. `a`. You get "Args out of range". 
 - continue inserting.
 - `M-x cua-rectangle-mark-mode` to exit the mode. 
 - Press C-c C-c to apply the changes. 
 - Now can exit the occur results buffer and/or move to the original file.
 - Original file wasn't changed during occur edit mode. 

-- 
Daniel Fleischer