[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 4feb962: * lisp/comint.el (comint-prompt-read-onl
From: |
Artur Malabarba |
Subject: |
[Emacs-diffs] emacs-25 4feb962: * lisp/comint.el (comint-prompt-read-only): Clean tabs in docstring |
Date: |
Sun, 07 Feb 2016 10:40:28 +0000 |
branch: emacs-25
commit 4feb9621980f9534e920a8438e5776e98eefb752
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
* lisp/comint.el (comint-prompt-read-only): Clean tabs in docstring
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 | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/comint.el b/lisp/comint.el
index afbaef1..dcd4a5a 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -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'."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 4feb962: * lisp/comint.el (comint-prompt-read-only): Clean tabs in docstring,
Artur Malabarba <=