From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: seberino@spawar.navy.mil Newsgroups: gmane.emacs.help Subject: Re: Why function works but *not* in *C-language mode*??? Date: Tue, 24 Sep 2002 13:23:43 -0700 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <20020924202343.GB16684@spawar.navy.mil> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032899060 18082 127.0.0.1 (24 Sep 2002 20:24:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 24 Sep 2002 20:24:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17twEE-0004hW-00 for ; Tue, 24 Sep 2002 22:24:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17twEJ-0000We-00; Tue, 24 Sep 2002 16:24:23 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17twDi-0000Qh-00 for help-gnu-emacs@gnu.org; Tue, 24 Sep 2002 16:23:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17twDg-0000QI-00 for help-gnu-emacs@gnu.org; Tue, 24 Sep 2002 16:23:45 -0400 Original-Received: from seberino.spawar.navy.mil ([128.49.22.159]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17twDf-0000Py-00 for help-gnu-emacs@gnu.org; Tue, 24 Sep 2002 16:23:44 -0400 Original-Received: from seberino by seberino.spawar.navy.mil with local (Exim 4.10) id 17twDf-0004LG-00; Tue, 24 Sep 2002 13:23:43 -0700 Original-To: Barry Margolin Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1813 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1813 Apparently I can just override whatever c-mode sets C-d to be. I didn't realize that c-mode defines key combos until your email. Thanks for the help. Chris On Tue, Sep 24, 2002 at 05:58:40PM +0000, Barry Margolin wrote: > In article , > wrote: > >The following function deletes a line when I type > >C-d and works great but I noticed it behaves > >differently in C language mode where it deletes > >one character rather than one *line*. Why??? > > C mode is probably creating a local key binding that's overriding your > global binding. What does 'C-h c C-d' show in C mode? > > -- > Barry Margolin, barmar@genuity.net > Genuity, Woburn, MA > *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. > Please DON'T copy followups to me -- I'll assume it wasn't posted to the group. > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs -- _______________________________________ Dr. Christian Seberino SPAWAR Systems Center San Diego Code 2363 49590 Lassing Rd. Rm. A339 San Diego, CA 92152-6147 U.S.A. Phone: (619) 553-7940 Fax: (619) 553-1269 Email: seberino@spawar.navy.mil _______________________________________