emacs-devel
[Top][All Lists]
Advanced

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

Re: Add function to rotate/transpose all windows


From: Juri Linkov
Subject: Re: Add function to rotate/transpose all windows
Date: Fri, 06 Dec 2024 09:29:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)

> What would you suggest the name for the following transofrmation would
> be:
>
> +-----+    +-----+     
> |  A  |    |  C  | 
> |-----| -> |-----| 
> |B | C|    |A | B| 
> +-----+    +-----+
>
> rotate-windows-reverse sounds off imo.  The alternative to change the
> name to rotate-windows-clockwise for the first transformation would not
> be accurate, as that would be like saying (other-window 1) is
> other-window-clockwise.

Indeed, we don't have a precedent of naming a command for
selecting another window in reverse cyclic ordering of windows.
This is why e.g. other-window-repeat-map has to bind
'(lambda () (interactive) (other-window -1))'

For such a command a more suitable name would be other-window-reverse,
not something associated with a clock's hands rotation, because
other-window doesn't visit windows clockwise.

However, when rotate-windows can be visualized as related to a clock,
then rotate-windows-anticlockwise makes sense.  And for clockwise
could omit the suffix as the default operation: simply rotate-windows.



reply via email to

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