GNU bug report logs -
#12826
24.2.50; M-x term, delete-backward-char doesn't delete input when rebound to non-backspace key doesn't
Previous Next
Reported by: Maciek Pacut <maciek.pacut <at> gmail.com>
Date: Wed, 7 Nov 2012 18:41:01 UTC
Severity: minor
Found in version 24.2.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 12826 <at> debbugs.gnu.org (full text, mbox):
> I binded delete-backward-char to other key than backspace and deleting
> text in M-x term doesn't work as it should. when I write e.g.
> "aoeui" and then remove "aoeui" and type "ls" terminal tries to launch
> command "aoeuils". This is an issue also with emacs -q and running
> command (global-set-key (kbd "C-.") 'delete-backward-char)
That's because the way to perform a "backspace" in such a terminal is to
send the DEL char to the application (e.g. `backspace' is bound to
term-send-backspace in term.el).
Not sure how term.el could better handle your situation. I guess it
could try to prevent you from running the delete-backward-char command
(so at least you get to learn about the problem more directly).
or maybe it could remap delete-backward-char to term-send-backspace.
Stefan
This bug report was last modified 4 years and 8 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.