unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dani Barral <d.barral@staffs.ac.uk>
Subject: Re: unexpected Del behaviour after C-d binding
Date: Tue, 26 Nov 2002 15:20:01 +0000	[thread overview]
Message-ID: <3DE39121.7040101@staffs.ac.uk> (raw)
In-Reply-To: 20021126141644.11922.11637.Mailman@monty-python.gnu.org

> Dani Barral <d.barral@staffs.ac.uk> writes:
> 
> 
>>Hi,
>>
>>I'm trying to configure the keyboard of my laptop into something more
>>confortable for my hands. First I want to rebind some emacs commands
>>and after I'll exchange some control,alt,... keys in X.
>>
>>The problem I having with GNU Emacs 21.2.1 is that the behaviour of
>>the Del key changes after this:
>>
>>(global-unset-key "\C-d")
>>(global-set-key "\C-d" 'next-line)
>>
>>Now everytime I press Del next-line is executed. However C-h Del returns:
>><delete> runs the command "^D"
>>   which is a keyboard macro.
>>
>>Could anybody what's wrong with those two bindings above?
> 
> 
> Nothing. The binding of <delete> assumes a standard
> Emacs keymap. You will have to change that mapping as well. 
> 
> In general, expect to change lots of bindings, and expect changes to
> cascade. You will probably have a small maintenance burden when
> you are done. 
> 

Here is the new binding of <delete> 	is there a nicer way to write it?

(define-key global-map [delete] (lambda () (interactive) 	   	 
(delete-backward-char -1)))

Cheers

       reply	other threads:[~2002-11-26 15:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20021126141644.11922.11637.Mailman@monty-python.gnu.org>
2002-11-26 15:20 ` Dani Barral [this message]
     [not found] ` <mailman.1038324336.1840.help-gnu-emacs@gnu.org>
2002-11-26 16:11   ` unexpected Del behaviour after C-d binding Barry Margolin
     [not found] <20021126161602.1025.15862.Mailman@monty-python.gnu.org>
2002-11-26 16:56 ` Dani Barral
     [not found] ` <mailman.1038329872.24183.help-gnu-emacs@gnu.org>
2002-11-26 23:19   ` Stefan Monnier <foo@acm.com>
     [not found] <mailman.1038309259.17965.help-gnu-emacs@gnu.org>
2002-11-26 12:07 ` Fredrik Staxeng
2002-11-26 15:12 ` Stefan Monnier <foo@acm.com>
2002-11-26 11:12 Dani Barral

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DE39121.7040101@staffs.ac.uk \
    --to=d.barral@staffs.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).