unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* GNU Emacs in console mode -- DELETE key misbehavior
@ 2009-07-31 15:12 Ignoramus21205
  2009-08-01  5:47 ` Bernardo
  0 siblings, 1 reply; 2+ messages in thread
From: Ignoramus21205 @ 2009-07-31 15:12 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GNU Emacs in console mode -- DELETE key misbehavior
  2009-07-31 15:12 GNU Emacs in console mode -- DELETE key misbehavior Ignoramus21205
@ 2009-08-01  5:47 ` Bernardo
  0 siblings, 0 replies; 2+ messages in thread
From: Bernardo @ 2009-08-01  5:47 UTC (permalink / raw)
  To: help-gnu-emacs

> 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)




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-01  5:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-31 15:12 GNU Emacs in console mode -- DELETE key misbehavior Ignoramus21205
2009-08-01  5:47 ` Bernardo

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).