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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Maciek Pacut <maciek.pacut@HIDDEN>; dated Wed, 7 Nov 2012 18:41:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Changed bug title to '24.2.50; M-x term, delete-backward-char doesn't delete input when rebound to non-backspace key doesn't' from '24.2.50; M-x term' Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.

Message received at 12826 <at> debbugs.gnu.org:


Received: (at 12826) by debbugs.gnu.org; 8 Nov 2012 04:34:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 07 23:34:01 2012
Received: from localhost ([127.0.0.1]:55190 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TWJoX-0007q1-3f
	for submit <at> debbugs.gnu.org; Wed, 07 Nov 2012 23:34:01 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:53552)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1TWJoV-0007pv-Uq
	for 12826 <at> debbugs.gnu.org; Wed, 07 Nov 2012 23:34:00 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ai0FAG6Zu0/O+LEi/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA4hCmnGBWIMH
X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="206718269"
Received: from 206-248-177-34.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net)
	([206.248.177.34])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	07 Nov 2012 23:33:59 -0500
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
	id 75A46AE59E; Wed,  7 Nov 2012 23:33:59 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Maciek Pacut <maciek.pacut@HIDDEN>
Subject: Re: bug#12826: 24.2.50; M-x term
Message-ID: <jwv625g1zuu.fsf-monnier+emacs@HIDDEN>
References: <CAJag8mpkC=3OwgW2McpRW6GQ3pfXXq_rjaKMEXHe34F+jtDkmg@HIDDEN>
Date: Wed, 07 Nov 2012 23:33:59 -0500
In-Reply-To: <CAJag8mpkC=3OwgW2McpRW6GQ3pfXXq_rjaKMEXHe34F+jtDkmg@HIDDEN>
	(Maciek Pacut's message of "Wed, 7 Nov 2012 19:17:55 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 12826
Cc: 12826 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: 0.8 (/)

> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12826; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Nov 2012 18:40:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 07 13:40:22 2012
Received: from localhost ([127.0.0.1]:54762 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TWAY1-0000g1-P8
	for submit <at> debbugs.gnu.org; Wed, 07 Nov 2012 13:40:22 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53615)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <maciek.pacut@HIDDEN>) id 1TWACQ-00009v-NY
	for submit <at> debbugs.gnu.org; Wed, 07 Nov 2012 13:18:04 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <maciek.pacut@HIDDEN>) id 1TWACO-0004XH-3S
	for submit <at> debbugs.gnu.org; Wed, 07 Nov 2012 13:18:05 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:48926)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <maciek.pacut@HIDDEN>) id 1TWACN-0004XD-WF
	for submit <at> debbugs.gnu.org; Wed, 07 Nov 2012 13:18:00 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52221)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <maciek.pacut@HIDDEN>) id 1TWACM-0000nq-A8
	for bug-gnu-emacs@HIDDEN; Wed, 07 Nov 2012 13:17:59 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <maciek.pacut@HIDDEN>) id 1TWACK-0004Wo-F3
	for bug-gnu-emacs@HIDDEN; Wed, 07 Nov 2012 13:17:58 -0500
Received: from mail-ie0-f169.google.com ([209.85.223.169]:45574)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <maciek.pacut@HIDDEN>) id 1TWACK-0004We-8q
	for bug-gnu-emacs@HIDDEN; Wed, 07 Nov 2012 13:17:56 -0500
Received: by mail-ie0-f169.google.com with SMTP id 10so3512517ied.0
	for <bug-gnu-emacs@HIDDEN>; Wed, 07 Nov 2012 10:17:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=BMhtxGXi+ooIvYAvCnCYvuvtEXx+Qwuzxl2xBDPbek0=;
	b=WbftGLfFlI01UenXQ2SbgV1KSjVNHfHpsr2hZehE85ZQ+19ZTRIemUSIg4MEXyLhWr
	XHq63yZGJYPXi2xkpQXeE/F1YcZpJlZPRI/Ba89mb/s7YcCstaGLMgEqAbRHLAovf6WV
	bwcCfkxMDLU/4GrzJ7n+JKkZKW1MYxtaCK1UgxswL65/OmgfxhVMDFkKRvm5ln31m267
	uypfwcHuA5myjWBykOizzqAyvjQmLCKciiNAdEba2DuVO4UBTxcorHsMH2p086+BFXda
	jLLVZ5mkDJjJ9uLuh+TsEj0EaI/+SdUXPR8EVyp4oDsigzA9M9tnhyzYuSqUHpJAo6Bv
	+0Iw==
MIME-Version: 1.0
Received: by 10.50.16.177 with SMTP id h17mr5530870igd.37.1352312275589; Wed,
	07 Nov 2012 10:17:55 -0800 (PST)
Received: by 10.50.109.135 with HTTP; Wed, 7 Nov 2012 10:17:55 -0800 (PST)
Date: Wed, 7 Nov 2012 19:17:55 +0100
Message-ID: <CAJag8mpkC=3OwgW2McpRW6GQ3pfXXq_rjaKMEXHe34F+jtDkmg@HIDDEN>
Subject: 24.2.50; M-x term
From: Maciek Pacut <maciek.pacut@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 07 Nov 2012 13:40:20 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

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)

In GNU Emacs 24.2.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2012-10-26 on peryton, modified by Debian
 (emacs-snapshot package, version 2:20121025-1~ppa1~precise1)
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
System Description:	Ubuntu 12.04.1 LTS

Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.2.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.2.50/site-lisp:/usr/share/emacs/site-lisp'
 '--without-compress-info' '--with-crt-dir=/usr/lib/x86_64-linux-gnu/'
 '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes'
 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu'
 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g
 -Wl,--as-needed -znocombreloc' 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  global-auto-revert-mode: t
  ido-everywhere: t
  show-paren-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5>
<triple-mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5>
<double-mouse-5> <down-mouse-4> <mouse-4> <double-down-mouse-4>
<double-mouse-4> <triple-down-mouse-4> <triple-mouse-4>
<triple-down-mouse-4> <triple-mouse-4> <down-mouse-5>
<mouse-5> <down-mouse-5> <mouse-5> <down-mouse-5> <mouse-5>
<double-down-mouse-5> <double-mouse-5> <down-mouse-1>
<mouse-movement> <mouse-movement> <drag-mouse-1> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <down-mouse-1> <mouse-1>
<down-mouse-5> <mouse-5> SPC ( b o u n d e d SPC t
e C-. o SPC t h e SPC s a m e SPC <help-echo> <help-echo>
<down-mouse-2> <mouse-2> SPC f u n c t i o n . D C-,
C-, C-. ) . <return> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <down-mouse-1> <mouse-1>
* b i d C-. n d e d SPC t h e SPC t h e SPC s a m e
SPC . . . <return> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> y e s <return> <help-echo>
<help-echo> <help-echo> <help-echo> I SPC a m SPC n
o t SPC a SPC n a t i v e SPC s p e a k e r C-a s e
l l o u t : SPC C-e , SPC I SPC w i l l SPC c h e c
k SPC t h e SPC m e a n d C-. d C-. i n g SPC o f SPC
t h e C-. o s e SPC w o r d s SPC o C-. a d C-. g a
i n SPC : ) <return> I SPC h a v e SPC l a t e s t
SPC E m a c s SPC f r o m SPC n a q u a d a h SPC r
e p o s i t o r y . <return> <down-mouse-4> <mouse-4>
<help-echo> <help-echo> <down-mouse-1> <help-echo>
<drag-mouse-1> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <down-mouse-1> <mouse-1>
H-m r e p o r t <return>

Recent messages:
byte-code: Beginning of buffer [7 times]
byte-code: End of buffer [6 times]
Mark set
byte-code: Text is read-only: #<buffer #emacs> [38 times]
delete-backward-char: Text is read-only [2 times]
Undo! [3 times]
call-interactively: End of buffer
Directory has changed on disk; type g to update Dired [3 times]
byte-code: End of buffer [2 times]
byte-code: Beginning of buffer [3 times]

Load-path shadows:
/usr/share/emacs/24.2.50/site-lisp/cmake-data/cmake-mode hides
/usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs/24.2.50/site-lisp/debian-startup hides
/usr/share/emacs/site-lisp/debian-startup
/home/maciek/.emacs.d/elpa/ruby-mode-1.1/ruby-mode hides
/usr/share/emacs/24.2.50/lisp/progmodes/ruby-mode
/usr/share/emacs-snapshot/site-lisp/latex-cjk-thai/thai-word hides
/usr/share/emacs/24.2.50/lisp/language/thai-word

Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mail-utils debug vc-git misearch
multi-isearch dired-aux mule-util network-stream starttls tls erc-menu
erc-join erc-ring erc-networks erc-pcomplete pcomplete comint ansi-color
ring erc-track erc-match erc-button wid-edit erc-fill erc-stamp
erc-netsplit erc-goodies erc erc-backend erc-compat format-spec
auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util mm-util
mail-prsvr password-cache thingatpt pp startup-layout autorevert
file-options yasnippet help-mode snippets smex ido ido-mode-own
text-mode-own python-mode-own advice help-fns advice-preload
dired-details dired dired-mode-own derived find-file glsl-mode cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs cpp-mode-own latex-mode-own rvm ruby-mode-own modes movement
edmacro kmacro basic-edit-toolkit keybindings misterioso-theme paren
appearance ace-jump-mode-autoloads auctex-autoloads tex-site
coffee-mode-autoloads color-theme-autoloads dired-details-autoloads
feature-mode-autoloads haml-mode-autoloads haskell-mode-autoloads
iy-go-to-char-autoloads magit-autoloads info easymenu
python-mode-autoloads rspec-mode-autoloads mode-compile-autoloads
ruby-mode-autoloads rvm-autoloads smex-autoloads yaml-mode-autoloads
yari-autoloads yasnippet-autoloads package cl-macs gv package-manager cl
cl-lib time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)




Acknowledgement sent to Maciek Pacut <maciek.pacut@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#12826; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 25 Mar 2017 04:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.