From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: how to delete a line without putting them into yanking? Date: 10 Sep 2004 16:51:11 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87fz5rfaqc.fsf@bach.composers> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1094828087 29807 80.91.224.253 (10 Sep 2004 14:54:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Sep 2004 14:54:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 10 16:54:42 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C5mnS-00014c-00 for ; Fri, 10 Sep 2004 16:54:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5msp-0005dC-GZ for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Sep 2004 11:00:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-X-Trace: news.uni-berlin.de FTvqo+KFkfuKa5i+md5+MwIF6REyf9E7Tr5OEC5Fhcg2z0zCWB User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:125242 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20596 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20596 Rokia writes: > I add this: (global-set-key (kbd "C-c d") 'delete-line) > > when I press "C-c d" , I got this prompt: > > Symbol's defination is void :delete-line > > what's wrong. need I install some additional library? Yes, probably. delete-line is not in a standard Emacs install. At least not in mine (21.3). Try this: 1. Put cursor somewhere on a line 2. C-x ( 3. C-a 4. C-k 5. C-x ) Now you have recorded a macro that you can give a name: 6. M-x name-last-kbd-macro RET my-kill-line RET Insert the macro definition in your .emacs file by opening .emacs and going to the end of the buffer: 7. insert-kbd-macro RET my-kill-line RET Bind the new macro using the method you tried before. /Mathias