From: Bernardo <bernardo.bacic@pobox.com>
To: help-gnu-emacs@gnu.org
Subject: Re: GNU Emacs in console mode -- DELETE key misbehavior
Date: Sat, 01 Aug 2009 15:47:48 +1000 [thread overview]
Message-ID: <4A73D704.1030108@pobox.com> (raw)
In-Reply-To: <p5CdncN9t951lO7XnZ2dnUVZ_vudnZ2d@giganews.com>
> I use Ubuntu Jaunty Linux.
>
> My problem is that when I run emacs -nw, my BACKSPACE key somehow is
> mapped to C-d and deletes forward. This is NOT what I want -- I want
> it to delete backward like regular C-d.
>
> I did run emacs without any custom .emacs file, and still had this
> problem.
>
> When I do describe-key <ENTER> and then his BACKSPACE, I get:
>
> C-d runs the command delete-char
> which is an interactive built-in function in `C source code'.
> It is bound to C-d, <deletechar>.
> (delete-char N &optional KILLFLAG)
>
> I did note that if I say in command line:
>
> stty erase C-v BACKSPACE
>
> then BACKSPACE works as I want, but I would like to see if I can do it
> in emacs only.
>
> i
>
does this do what you want?
(global-set-key [backspace] 'backward-delete-char)
prev parent reply other threads:[~2009-08-01 5:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 15:12 GNU Emacs in console mode -- DELETE key misbehavior Ignoramus21205
2009-08-01 5:47 ` Bernardo [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A73D704.1030108@pobox.com \
--to=bernardo.bacic@pobox.com \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.