aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2007-07-15 18:40:19 +0000
committerRichard M. Stallman2007-07-15 18:40:19 +0000
commit0e01e4afb99f8d278de0fea3270649e7ab46d652 (patch)
treed1ed2e19e61645b56dce4ead2d38716e835244b6
parentf9b9868496ff25dabafcd3c35b6bb5600dbdd2fd (diff)
downloademacs-0e01e4afb99f8d278de0fea3270649e7ab46d652.tar.gz
emacs-0e01e4afb99f8d278de0fea3270649e7ab46d652.zip
(tutorial--find-changed-keys): Handle C-x specially like ESC.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/tutorial.el8
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fc755882a6b..322c00b6660 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-07-15 Richard Stallman <rms@gnu.org>
2
3 * tutorial.el (tutorial--find-changed-keys):
4 Handle C-x specially like ESC.
5
12007-07-15 Roland McGrath <roland@frob.com> 62007-07-15 Roland McGrath <roland@frob.com>
2 7
3 * add-log.el (add-change-log-entry): Check add-log-full-name 8 * add-log.el (add-change-log-entry): Check add-log-full-name
diff --git a/lisp/tutorial.el b/lisp/tutorial.el
index 4856d178056..feaabbbb19e 100644
--- a/lisp/tutorial.el
+++ b/lisp/tutorial.el
@@ -431,10 +431,16 @@ where
431 (def-fun (nth 0 kdf)) 431 (def-fun (nth 0 kdf))
432 (def-fun-txt (format "%s" def-fun)) 432 (def-fun-txt (format "%s" def-fun))
433 (rem-fun (command-remapping def-fun)) 433 (rem-fun (command-remapping def-fun))
434 ;; Handle prefix definitions specially
435 ;; so that a mode that rebinds some subcommands
436 ;; won't make it appear that the whole prefix is gone.
434 (key-fun (if (eq def-fun 'ESC-prefix) 437 (key-fun (if (eq def-fun 'ESC-prefix)
435 (lookup-key global-map [27]) 438 (lookup-key global-map [27])
436 (key-binding key))) 439 (if (eq def-fun 'Control-X-prefix)
440 (lookup-key global-map [24])
441 (key-binding key))))
437 (where (where-is-internal (if rem-fun rem-fun def-fun)))) 442 (where (where-is-internal (if rem-fun rem-fun def-fun))))
443
438 (if where 444 (if where
439 (progn 445 (progn
440 (setq where (key-description (car where))) 446 (setq where (key-description (car where)))