unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12842: 24.2.50; ansi-term does not recognize escape sequence
@ 2012-11-09  9:35 Marcelo Lacerda
  2012-11-09 19:00 ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Marcelo Lacerda @ 2012-11-09  9:35 UTC (permalink / raw)
  To: 12842

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12842: 24.2.50; ansi-term does not recognize escape sequence
  2012-11-09  9:35 bug#12842: 24.2.50; ansi-term does not recognize escape sequence Marcelo Lacerda
@ 2012-11-09 19:00 ` Glenn Morris
  2012-11-09 19:45   ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2012-11-09 19:00 UTC (permalink / raw)
  To: Marcelo Lacerda; +Cc: 12842

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12842: 24.2.50; ansi-term does not recognize escape sequence
  2012-11-09 19:00 ` Glenn Morris
@ 2012-11-09 19:45   ` Glenn Morris
  2012-11-15  6:18     ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2012-11-09 19:45 UTC (permalink / raw)
  To: Marcelo Lacerda; +Cc: 12842


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))





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12842: 24.2.50; ansi-term does not recognize escape sequence
  2012-11-09 19:45   ` Glenn Morris
@ 2012-11-15  6:18     ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2012-11-15  6:18 UTC (permalink / raw)
  To: 12842-done

Version: 24.3

No comments, so I installed my suggestion in emacs-24.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-15  6:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-09  9:35 bug#12842: 24.2.50; ansi-term does not recognize escape sequence Marcelo Lacerda
2012-11-09 19:00 ` Glenn Morris
2012-11-09 19:45   ` Glenn Morris
2012-11-15  6:18     ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).