aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/tutorial.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/tutorial.el')
-rw-r--r--lisp/tutorial.el26
1 files changed, 19 insertions, 7 deletions
diff --git a/lisp/tutorial.el b/lisp/tutorial.el
index 4856d178056..384b9b8415c 100644
--- a/lisp/tutorial.el
+++ b/lisp/tutorial.el
@@ -155,9 +155,9 @@ options:
155 " RET instead.")) 155 " RET instead."))
156 (insert "\n\nWith your current key bindings" 156 (insert "\n\nWith your current key bindings"
157 " you can use " 157 " you can use "
158 (if (string-equal "the menus" where) 158 (if (string-match "^the .*menus?$" where)
159 "" 159 ""
160 "the key ") 160 "the key")
161 where 161 where
162 " to get the function `" 162 " to get the function `"
163 (format "%s" db) 163 (format "%s" db)
@@ -406,7 +406,7 @@ where
406 WHERE is a text describing the key sequences to which DEF-FUN is 406 WHERE is a text describing the key sequences to which DEF-FUN is
407 bound now (or, if it is remapped, a key sequence 407 bound now (or, if it is remapped, a key sequence
408 for the function it is remapped to) 408 for the function it is remapped to)
409 REMARK is a list with info about rebinding. It has either of 409 REMARK is a list with info about rebinding. It has either of
410 these formats: 410 these formats:
411 411
412 \(TEXT cua-mode) 412 \(TEXT cua-mode)
@@ -434,14 +434,26 @@ where
434 (key-fun (if (eq def-fun 'ESC-prefix) 434 (key-fun (if (eq def-fun 'ESC-prefix)
435 (lookup-key global-map [27]) 435 (lookup-key global-map [27])
436 (key-binding key))) 436 (key-binding key)))
437 (where (where-is-internal (if rem-fun rem-fun def-fun)))) 437 (where (where-is-internal (if rem-fun rem-fun def-fun)))
438 cwhere)
438 (if where 439 (if where
439 (progn 440 (progn
440 (setq where (key-description (car where))) 441 (setq cwhere (car where)
442 where (key-description cwhere))
441 (when (and (< 10 (length where)) 443 (when (and (< 10 (length where))
442 (string= (substring where 0 (length "<menu-bar>")) 444 (string= (substring where 0 (length "<menu-bar>"))
443 "<menu-bar>")) 445 "<menu-bar>"))
444 (setq where "the menus"))) 446 (setq where
447 (if (and (vectorp cwhere)
448 (setq cwhere (elt cwhere 1))
449 (setq cwhere
450 (cadr
451 (assoc cwhere
452 (lookup-key global-map
453 [menu-bar]))))
454 (stringp cwhere))
455 (format "the `%s' menu" cwhere)
456 "the menus"))))
445 (setq where "")) 457 (setq where ""))
446 (setq remark nil) 458 (setq remark nil)
447 (unless 459 (unless
@@ -915,7 +927,7 @@ See `get-lang-string' for more information.")
915In certain places Emacs can replace a string shown to the user with 927In certain places Emacs can replace a string shown to the user with
916a language specific string. This function retrieves such strings. 928a language specific string. This function retrieves such strings.
917 929
918LANG is the language specification. It should be one of those 930LANG is the language specification. It should be one of those
919strings that can be returned by `read-language-name'. STRINGID 931strings that can be returned by `read-language-name'. STRINGID
920is a symbol that specifies the string to retrieve. 932is a symbol that specifies the string to retrieve.
921 933