GNU bug report logs -
#12842
24.2.50; ansi-term does not recognize escape sequence
Previous Next
Reported by: Marcelo Lacerda <marceloslacerda <at> gmail.com>
Date: Fri, 9 Nov 2012 16:57:02 UTC
Severity: important
Found in version 24.2.50
Fixed in version 24.3
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12842 in the body.
You can then email your comments to 12842 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12842
; Package
emacs
.
(Fri, 09 Nov 2012 16:57:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Marcelo Lacerda <marceloslacerda <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 09 Nov 2012 16:57:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Whenever I try to use a escape sequence in ansi-term "C-c" it is sent
immediatelly to the shell.
Steps:
emacs -Q RET
M-x ansi-term RET
C-c
In GNU Emacs 24.2.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
of 2012-09-14 on cho-clotho
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
Configured using:
`configure '--prefix=/home/marcelo/bin/emacs_prefix''
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
M-x <up> a n s i - t e r m <return> <return> C-c M-x
C-x b <return> M-x a n <backspace> <backspace> r e
<tab> p <tab> o r <tab> <return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
user-error: Beginning of history; no preceding item
Making completion list... [2 times]
call-interactively: End of buffer
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-mode term disp-table easymenu ehelp electric
ring 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 files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)
--
Marcelo Lacerda
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12842
; Package
emacs
.
(Fri, 09 Nov 2012 19:01:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 12842 <at> debbugs.gnu.org (full text, mbox):
Marcelo Lacerda wrote:
> Whenever I try to use a escape sequence in ansi-term "C-c" it is sent
> immediatelly to the shell.
>
> Steps:
>
> emacs -Q RET
> M-x ansi-term RET
> C-c
Thanks for the report. I think this is due to the 2012-05-11 changes to
term-set-escape-char.
term.el does this at top-level:
(term-set-escape-char (or term-escape-char ?\C-c))
M-x ansi-term does this:
(term-set-escape-char ?\C-x)
In Emacs 24.2, the net result is that both C-x and C-c acts as escape
chars in ansi-term. In 24.2.50, the C-x binding replaces the C-c one.
I don't know what the intended ansi-term behaviour was.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12842
; Package
emacs
.
(Fri, 09 Nov 2012 19:46:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 12842 <at> debbugs.gnu.org (full text, mbox):
I suppose this change will bring back the traditional ansi-term
behaviour. The other option is to remove this term-set-escape-char call
altogether (then we get the same bug report from someone used to the C-x
binding).
*** lisp/term.el 2012-09-27 07:05:37 +0000
--- lisp/term.el 2012-11-09 19:41:36 +0000
***************
*** 4180,4186 ****
;; your mileage may definitely vary, maybe it's better to put this in your
;; .emacs ...
! (term-set-escape-char ?\C-x)
(switch-to-buffer term-ansi-buffer-name))
--- 4180,4187 ----
;; your mileage may definitely vary, maybe it's better to put this in your
;; .emacs ...
! (let (term-escape-char)
! (term-set-escape-char ?\C-x))
(switch-to-buffer term-ansi-buffer-name))
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Thu, 15 Nov 2012 06:20:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Marcelo Lacerda <marceloslacerda <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 15 Nov 2012 06:20:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 12842-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.3
No comments, so I installed my suggestion in emacs-24.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 13 Dec 2012 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 129 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.