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

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

bug#20070: 24.3; have commands such as downcase-region act on a rectangl


From: Juri Linkov
Subject: bug#20070: 24.3; have commands such as downcase-region act on a rectangle region
Date: Thu, 12 Mar 2015 21:23:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu)

> While this is not the same bug as bug#19829, it's fundamentally the same
> issue, and they should be fixed in the same way.

Currently, `downcase-region' is defined with the interactive spec 'r'
that calls the function with point and mark as 2 args.

For backward-compatibility reasons this can't be changed.  So maybe
a new interactive spec e.g. 'R' should call the function with 2 lists
where the first list will contain a list of beginnings of all intervals
in the rectangular region, and the second list of endings of intervals?

Then a command using it will need to add another outermost loop to pop
interval boundaries from both list arguments `begs' and `ends' to process
intervals using the same logic like it processes a single region now.





reply via email to

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