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

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

RE: Should delete-window switch to next buffer when there is only one wi


From: Drew Adams
Subject: RE: Should delete-window switch to next buffer when there is only one window?
Date: Tue, 14 Jan 2014 15:33:26 -0800 (PST)

> No, I think it is doing the right thing. It doesn't make any sense
> for YOUR code to delete the only window that exists. If it just
> switched buffers (to what? what rule should apply in this case? A
> random buffer selection?) then it isn't doing what you requested -
> which is to delete the window.
> 
> I think a bit more thought on your side should be applied rather
> than suggesting that Emacs behaviour change to suit you.

Put it another way, perhaps: Define your own command (i.e., with a
different name), and remap `delete-window' to your command, for
(your own) interactive use.

Two points are important here:

1. `delete-window' is an Emacs function used in many places.  It
is not just a command, and it is not invoked only interactively
(e.g., via `C-x 0').

2. Try it out on yourself before suggesting that Emacs adopt it.
Use it for a while (months? years?).

These are two things to keep in mind whenever you have an idea
about changing the default behavior of some command.



reply via email to

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