Subject: bug#11202: 24.0.93; shell.el: Documentation for M-x shell sometimes shows wrong keybinding for describe-mode

From: David Röthlisberger <[email-masked]>
Date: Sun, 8 Apr 2012 13:58:21 +0100

If I invoke 'M-x describe-function shell' when I am already in help-mode, the last sentence reads:

> (Type h in the shell buffer for a list of commands.)

(Normally --if describe-function is invoked from outside of help-mode-- it would read "C-h m" instead of "h".)

Patch below. Would you like me to provide a similar patch for all instances of "\\[describe-mode]" in the lisp directory?

Kind regards,
Dave.

From: David Rothlisberger <[email-masked]>
Date: Sun, 8 Apr 2012 13:50:28 +0100
Subject: [PATCH] * shell.el: Correct keybinding for `describe-mode' in
 `shell' docstring.

---
 lisp/shell.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/shell.el b/lisp/shell.el
index 7c5ce49..a9e2113 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -607,7 +607,7 @@ (defun shell (&optional buffer)
 and controlling the subjobs of the shell.  See `shell-mode'.
 See also the variable `shell-prompt-pattern'.
 
-To specify a coding system for converting non-ASCII characters
+\\<shell-mode-map>To specify a coding system for converting non-ASCII characters
 in the input and output to the shell, use \\[universal-coding-system-argument]
 before \\[shell].  You can also specify this with \\[set-buffer-process-coding-system]
 in the shell buffer, after you start the shell.
-- 
1.7.9.2