Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>On some systems, the <code>delete</code> key is defined as an alias to <code>C-d</code>. This is done through <code>function-key-map</code> on GNU Emacs &lt;23 and <code>local-function-key-map</code> on GNU Emacs 23. (I've observed this behavior on Debian and Ubuntu 10.04 under X.) The purpose of such translations is to isolate people who code modes from the terminal intricacies: a mode that wants to shadow the delete command only needs to rebind <code>C-d</code> and not wonder if it should rebind <code>delete</code> (is that a delete left or delete right?) or <code>deletechar</code> or something else.</p> <p>If there is a global or local binding for <code>delete</code>, it shadows this translation to <code>C-d</code>. However, if you press <code>ESC delete</code>, if there is no global or local binding for <code>ESC delete</code>, the second key is translated to <code>C-d</code>. This translation has precedence over the interpretation of <code>ESC delete</code> as <code>M-delete</code>. So <code>ESC delete</code> becomes equivalent to <code>C-M-d</code>.</p> <p>This is arguably a bug in Emacs: the effect of <code>ESC delete</code> should be the same as <code>M-delete</code>, and there is no reason why <code>ESC delete</code> would run <code>down-list</code> which has nothing to do with deletion.</p> <p>There are several possible fixes; I don't know which is best. One that should work with any version of Emacs is</p> <pre><code>(global-set-key [?\e delete] 'backward-kill-word) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload