help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs question


From: kgold
Subject: Re: emacs question
Date: 15 Dec 2004 15:20:19 GMT

"Villa, Maria (HBO)" <address@hidden> writes:
> 
> I have few users that uses regular emacs on our aix unix servers.
> 
> They have a problem when want to delete a character or word, the backspace
> key does not work.
> how can we map a key to work with e-macs or how can we solve this problem
> 
This is a FAQ:

124: Why does the "Backspace" key invoke help?

  The "Backspace" key (on most keyboards) generates ASCII code 8.  `C-h'
  sends the same code.  In Emacs by default `C-h' invokes help-command.
  This is intended to be easy to remember since the first letter of "help"
  is `h'.  The easiest solution to this problem is to use `C-h' (and
  Backspace) for help and DEL (the Delete key) for deleting the previous
  character.

  For many people this solution may be problematic:

  * They normally use Backspace outside of Emacs for deleting the previous
    character.  This can be solved by making DEL the command for deleting
    the previous character outside of Emacs.  On many Unix systems, this
    command will remap DEL:

      stty erase `^?'

  * The person may prefer using the Backspace key for deleting the previous
    character because it is more conveniently located on their keyboard or
    because they don't even have a separate Delete key.  In this case, the
    Backspace key should be made to behave like Delete.  There are several
    methods.

  * Some terminals (e.g., VT3## terminals) allow the character generated by
    the Backspace key to be changed from a setup menu.

  * You may be able to get a keyboard that is completely programmable.

  * Under X or on a dumb terminal, it is possible to swap the Backspace and
    Delete keys inside Emacs:

      (keyboard-translate ?\C-h ?\C-?)

    See question 126 for further details of "keyboard-translate".

  * Another approach is to switch key bindings and put help on "C-x h"
    instead:

      (global-set-key "\C-h" 'delete-backward-char)
      (global-set-key "\C-xh" 'help-command) ;; overrides mark-whole-buffer

    Other popular key bindings for help are M-? and "C-x ?".

    NOTE: * Don't try to bind DEL to help-command, because there are many
            modes that have local bindings of DEL that will interfere.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]