[Sussex] Emacs help

Rupert Swarbrick rupert.swarbrick at lineone.net
Wed May 11 22:40:34 UTC 2005


Steve Dobson wrote:
> Rupert
>
> On Wed, May 11, 2005 at 10:35:04PM +0100, Rupert Swarbrick wrote:
>
>>Been coding on my laptop using emacs and come up with an irritating
>>problem, namely that both the backspace and delete keys delete the
>>character before the cursor.
>>
>>Ctrl-<bkspc/del> works, but does the opposite to expected - so ctrl-del
>>deletes the word before the cursor, not the one afterwards.
>>
>>Backspace/Delete work fine in e.g. OpenOffice.org, so I assume that it's
>>an emacs config issue.
>>
>>Any ideas would be greatly appreciated as I always remember ctrl-d after
>>moving the cursor to the other side of the word and deleting it that way!
>
>
> Using C-H c (describe-key-briefly) I get the following for DEL & BKSP:
>
> <delete>	delete-char
> <backspace>	backward-delete-char-untabify
> C-<delete>	kill-word
> C-<backspace>	backward-kill-word
> -
> If I then use M-X and enter the command (tab completion works) they
> do the right thing.  Do they for you?
>
> If so then it is definitely the key bindings.  Have a look at your
> ~/.emacs file for any key settings.  I assume they are the
>    (global-set-key ...)
> lines which I have in mine to define the functions of the mouse
> wheel.
>
> Steve
>
Thanks, but it's nothing that clever. See the other post, which shows
what I'd got wrong...

Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 374 bytes
Desc: OpenPGP digital signature
Url : http://mailman.lug.org.uk/pipermail/sussex/attachments/20050511/3b4011fb/attachment.pgp 


More information about the Sussex mailing list