aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-11-14 22:17:56 -0800
committerGlenn Morris2012-11-14 22:17:56 -0800
commite2e13f1831a71b558b3625c4ecf3d35100236870 (patch)
tree300e01d10285bac7af5316dd2c9da458bdc799eb
parentc79c7f2f4f3967ec03120cdc53e0e864e1ff7176 (diff)
downloademacs-e2e13f1831a71b558b3625c4ecf3d35100236870.tar.gz
emacs-e2e13f1831a71b558b3625c4ecf3d35100236870.zip
ansi-term escape-char fix
* lisp/term.el (ansi-term): Don't let C-x escape-char binding clobber the more standard C-c binding. Fixes: debbugs:12842
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/term.el15
2 files changed, 15 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f78240cdced..01ccb886434 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-11-15 Glenn Morris <rgm@gnu.org>
2
3 * term.el (ansi-term): Don't let C-x escape-char binding
4 clobber the more standard C-c binding. (Bug#12842)
5
12012-11-15 Stefan Monnier <monnier@iro.umontreal.ca> 62012-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * emacs-lisp/gv.el (setf): Fix debug spec for multiple assignments 8 * emacs-lisp/gv.el (setf): Fix debug spec for multiple assignments
diff --git a/lisp/term.el b/lisp/term.el
index e6466b8fa95..d6acaef1ae9 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -4178,11 +4178,16 @@ the process. Any more args are arguments to PROGRAM."
4178 (term-mode) 4178 (term-mode)
4179 (term-char-mode) 4179 (term-char-mode)
4180 4180
4181 ;; I wanna have find-file on C-x C-f -mm 4181 ;; Historical baggage. A call to term-set-escape-char used to not
4182 ;; your mileage may definitely vary, maybe it's better to put this in your 4182 ;; undo any previous call to t-s-e-c. Because of this, ansi-term
4183 ;; .emacs ... 4183 ;; ended up with both C-x and C-c as escape chars. Who knows what
4184 4184 ;; the original intention was, but people could have become used to
4185 (term-set-escape-char ?\C-x) 4185 ;; either. (Bug#12842)
4186 (let (term-escape-char)
4187 ;; I wanna have find-file on C-x C-f -mm
4188 ;; your mileage may definitely vary, maybe it's better to put this in your
4189 ;; .emacs ...
4190 (term-set-escape-char ?\C-x))
4186 4191
4187 (switch-to-buffer term-ansi-buffer-name)) 4192 (switch-to-buffer term-ansi-buffer-name))
4188 4193