emacs-devel
[Top][All Lists]
Advanced

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

Re: split-window as a command


From: Rand
Subject: Re: split-window as a command
Date: Fri, 12 Apr 2013 19:44:31 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Stephen Berman <stephen.berman <at> gmx.net> writes:

> The doc string of split-window says "Interactively, SIZE is the prefix
> argument."  But in fact, invoking split-window with a prefix argument
> has no effect, because its interactive spec is "i".  Maybe this is just
> a doc bug, since, when split-window was still a C function, its doc
> string said "Interactively, all arguments are nil."  But I don't see why
> it is a command at all any more: invoked interactively, it has exactly
> the same effect as invoking split-window-below without a prefix
> argument, and since the latter does not ignore a prefix argument passed
> to it, it does more than interactively called split-window.  So it
> appears to be superfluous for split-window to be a command.  Or am I
> overlooking something?

It may be superfluous but it has always been a command and
removing the interactive form would break existing keybindings
and usage.

I think that:

* Fixing the doc-string would be better than removing the
interactive form.

* Changing the interactive form to use the prefix argument would
be better than fixing the doc-string.

--
Rand





reply via email to

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