Path: utzoo!attcan!uunet!fed!m1tag00
From: m1tag00@fed.FRB.GOV (Tim A. Grunwald)
Newsgroups: comp.emacs
Subject: Re: assorted questions
Summary: Delete-line is better than C-k.
Message-ID: <278@fed.FRB.GOV>
Date: 27 Sep 88 15:00:58 GMT
References:  <38598@yale-celray.yale.UUCP>
Distribution: comp
Organization: Federal Reserve Board, Washington, DC
Lines: 32

In article <38598@yale-celray.yale.UUCP>, spolsky-avram@CS.YALE.EDU (Joel Spolsky) writes:
> ...
> While we're on the subject, when I first started using emacs, I thought
> I would get used to ^K not deleting the newlines. Needless to say I
> still haven't gotten use to this: I generally delete paragraphs and
> other such regions by hitting ^K a few times (which is more
> instinctive, I think, than blocking it off), and the "stutter" effect
> is aggravating. Especially since this means that M-5 C-k does not mean
> the same thing as C-k C-k C-k C-k C-k ... 
> 
> Any suggestions for fixes?
> 

Yes, I wrote a simple delete-line function which I assign to a function
key. 

(defun delete-line (&optional count)
  "Delete line point is on.  With ARG
  delete current line and ARG - 1 more lines"   
    (interactive "P")
    (beginning-of-line)
    (let (
          (beg (point))
          )
      (forward-line count)
      (delete-region beg (point))
    )
 )

 Tim Grunwald
 Federal Reserve Board
 uunet!fed!m1tag00