bug-bash
[Top][All Lists]
Advanced

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

Re: can't just hold down ^K to clean up history


From: jidanni
Subject: Re: can't just hold down ^K to clean up history
Date: Thu, 17 Oct 2013 12:37:28 +0800

>> Also why can't we just hold down ^K^K^K^K^K^K^K^K^K ?

CD> Why do you expect to be able to do that? C-k in readline deletes to the end 
of
CD> the current line. There's no reason why it should also get the next line.

Ah ha, but there is also no reason why it should not!

I hereby propose that it should.

Let's compare emacs,

    kill-line is an interactive compiled Lisp function in `simple.el'.

    It is bound to C-k, <deleteline>.

    (kill-line &optional ARG)

    Kill the rest of the current line; if no nonblanks there, kill thru 
newline...

    To kill a whole line, when point is not at the beginning, type C-a C-k C-k.

    If option `kill-whole-line' is non-nil, then this command kills the whole 
line
    including its terminating newline, when used at the beginning of a line
    with no argument.  As a consequence, you can always kill a whole line
    by typing C-a C-k.

and

    kill-whole-line is a variable defined in `simple.el'.
    Its value is t
    Original value was nil

    Documentation:
    If non-nil, `kill-line' with no arg at start of line kills the whole line.

Anyway, this all boils down to holding down the ^K for rapid munching of
more than one line, please. Yes, ^P still needed, Greg, but one could
fix up the mess totally via the keyboard, with no need for risky file maneuvers.



reply via email to

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