]> code.delx.au - gnu-emacs/commitdiff
* lisp/comint.el (comint-prompt-read-only): Clean tabs in docstring
authorArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 7 Feb 2016 08:35:49 +0000 (08:35 +0000)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 7 Feb 2016 08:40:17 +0000 (08:40 +0000)
While tabs in code are mostly fine because the Emacs sources have a
.dir-locals file specifying tab-width, the same is not true of tabs in
code examples inside docstrings.  The docstring is printed on a *Help*
buffer, which can be created on any directory and won't necessarily have
the same tab-width set.

lisp/comint.el

index afbaef1baf2d5ab99bccc873cef58278bcb80d15..dcd4a5ae4cfeae0c583472ef1b65567d9488ac43 100644 (file)
@@ -185,10 +185,10 @@ the remaining prompts will be accidentally messed up.  You may
 wish to put something like the following in your init file:
 
 \(add-hook \\='comint-mode-hook
-         (lambda ()
-           (define-key comint-mode-map [remap kill-region] \\='comint-kill-region)
-           (define-key comint-mode-map [remap kill-whole-line]
-             \\='comint-kill-whole-line)))
+          (lambda ()
+            (define-key comint-mode-map [remap kill-region] \\='comint-kill-region)
+            (define-key comint-mode-map [remap kill-whole-line]
+              \\='comint-kill-whole-line)))
 
 If you sometimes use comint-mode on text-only terminals or with `emacs -nw',
 you might wish to use another binding for `comint-kill-whole-line'."